diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-09-16 22:26:23 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-09-16 22:26:23 -0400 |
commit | 662da62eb7cba808e98fe8ea65f6bbf55fa50f1e (patch) | |
tree | 95e2e2b286336f5cde1c75e86689236c0e5a2ccf /src/linux/clock_adjtime.c | |
parent | bd261bf25e000a1b754616db0b2ee1e14835a75d (diff) | |
download | musl-662da62eb7cba808e98fe8ea65f6bbf55fa50f1e.tar.gz musl-662da62eb7cba808e98fe8ea65f6bbf55fa50f1e.tar.bz2 musl-662da62eb7cba808e98fe8ea65f6bbf55fa50f1e.tar.xz musl-662da62eb7cba808e98fe8ea65f6bbf55fa50f1e.zip |
add clock_adjtime, remap_file_pages, and syncfs syscall wrappers
patch by Justin Cormack, with slight modification
Diffstat (limited to 'src/linux/clock_adjtime.c')
-rw-r--r-- | src/linux/clock_adjtime.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/linux/clock_adjtime.c b/src/linux/clock_adjtime.c new file mode 100644 index 00000000..1fc9bef4 --- /dev/null +++ b/src/linux/clock_adjtime.c @@ -0,0 +1,9 @@ +#define _GNU_SOURCE +#include <time.h> +#include <sys/timex.h> +#include "syscall.h" + +int clock_adjtime (clockid_t clock_id, struct timex *utx) +{ + return syscall(SYS_clock_adjtime, clock_id, utx); +} |