Skip to content

Commit 530b4ca

Browse files
committed
Add clock_adjtime() to linux-gnu
1 parent 8f8d294 commit 530b4ca

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

libc-test/semver/linux-gnu.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,7 @@ __rlimit_resource_t
525525
__timeval
526526
adjtimex
527527
backtrace
528+
clock_adjtime
528529
copy_file_range
529530
dlinfo
530531
dlmopen

src/unix/linux_like/linux/gnu/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,6 +1223,8 @@ extern "C" {
12231223
pub fn ntp_adjtime(buf: *mut timex) -> ::c_int;
12241224
#[link_name = "ntp_gettimex"]
12251225
pub fn ntp_gettime(buf: *mut ntptimeval) -> ::c_int;
1226+
pub fn clock_adjtime(clk_id: ::clockid_t, buf: *mut ::timex) -> ::c_int;
1227+
12261228
pub fn copy_file_range(
12271229
fd_in: ::c_int,
12281230
off_in: *mut ::off64_t,

0 commit comments

Comments
 (0)