This is the mail archive of the libc-hacker@sourceware.org mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
2011-03-30 Andreas Schwab <schwab@redhat.com> * sysdeps/unix/sysv/linux/Versions: Add clock_adjtime. * sysdeps/unix/sysv/linux/sys/timex.h: Declare clock_adjtime. * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime. --- sysdeps/unix/sysv/linux/Versions | 3 +++ sysdeps/unix/sysv/linux/sys/timex.h | 6 +++++- sysdeps/unix/sysv/linux/syscalls.list | 2 ++ 3 files changed, 10 insertions(+), 1 deletions(-) diff --git a/sysdeps/unix/sysv/linux/Versions b/sysdeps/unix/sysv/linux/Versions index c66e04f..24ea75e 100644 --- a/sysdeps/unix/sysv/linux/Versions +++ b/sysdeps/unix/sysv/linux/Versions @@ -154,6 +154,9 @@ libc { fanotify_init; fanotify_mark; } + GLIBC_2.14 { + clock_adjtime; + } GLIBC_PRIVATE { # functions used in other libraries __syscall_rt_sigqueueinfo; diff --git a/sysdeps/unix/sysv/linux/sys/timex.h b/sysdeps/unix/sysv/linux/sys/timex.h index 13b94d6..f53fb87 100644 --- a/sysdeps/unix/sysv/linux/sys/timex.h +++ b/sysdeps/unix/sysv/linux/sys/timex.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1995-1997, 1999, 2007, 2009 Free Software Foundation, Inc. +/* Copyright (C) 1995-1997, 1999, 2007, 2009, 2011 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -21,6 +21,8 @@ #include <features.h> #include <sys/time.h> +#define __need_clockid_t +#include <time.h> /* These definitions from linux/timex.h as of 2.6.30. */ @@ -149,6 +151,8 @@ extern int ntp_gettimex (struct ntptimeval *__ntv) __THROW; #endif extern int ntp_adjtime (struct timex *__tntx) __THROW; +extern int clock_adjtime (clockid_t __clock_id, struct timex *__ntx) __THROW; + __END_DECLS #endif /* sys/timex.h */ diff --git a/sysdeps/unix/sysv/linux/syscalls.list b/sysdeps/unix/sysv/linux/syscalls.list index 0f33454..4872250 100644 --- a/sysdeps/unix/sysv/linux/syscalls.list +++ b/sysdeps/unix/sysv/linux/syscalls.list @@ -103,3 +103,5 @@ timerfd_settime EXTRA timerfd_settime i:iipp timerfd_settime timerfd_gettime EXTRA timerfd_gettime i:ip timerfd_gettime fanotify_init EXTRA fanotify_init i:ii fanotify_init + +clock_adjtime EXTRA clock_adjtime i:ip clock_adjtime -- 1.7.4 -- Andreas Schwab, schwab@redhat.com GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E "And now for something completely different."
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |