[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commits] r5120 - in /fsf/trunk/libc: ./ sysdeps/unix/sysv/linux/ sysdeps/unix/sysv/linux/sys/
- To: commits@xxxxxxxxxx
- Subject: [commits] r5120 - in /fsf/trunk/libc: ./ sysdeps/unix/sysv/linux/ sysdeps/unix/sysv/linux/sys/
- From: eglibc@xxxxxxxxxx
- Date: Mon, 11 Feb 2008 08:07:00 -0000
Author: eglibc
Date: Mon Feb 11 00:06:52 2008
New Revision: 5120
Log:
Import glibc-mainline for 2008-02-11
Added:
fsf/trunk/libc/sysdeps/unix/sysv/linux/sys/timerfd.h
Modified:
fsf/trunk/libc/ChangeLog
fsf/trunk/libc/sysdeps/unix/sysv/linux/Makefile
fsf/trunk/libc/sysdeps/unix/sysv/linux/Versions
fsf/trunk/libc/sysdeps/unix/sysv/linux/syscalls.list
Modified: fsf/trunk/libc/ChangeLog
==============================================================================
--- fsf/trunk/libc/ChangeLog (original)
+++ fsf/trunk/libc/ChangeLog Mon Feb 11 00:06:52 2008
@@ -1,3 +1,13 @@
+2008-02-10 Ulrich Drepper <drepper@xxxxxxxxxx>
+
+ * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
+ * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
+ sys/timerfd.h.
+ * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
+ timerfd_gettime, timerfd_settime.
+ * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
+ timerfd_gettime, timerfd_settime for GLIBC_2.8.
+
2008-02-08 Roland McGrath <roland@xxxxxxxxxx>
* elf/elf.h (NT_PPC_SPE): New macro.
Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/Makefile
==============================================================================
Binary files - no diff available.
Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/Versions
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/Versions (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/Versions Mon Feb 11 00:06:52 2008
@@ -132,6 +132,9 @@
GLIBC_2.7 {
eventfd; eventfd_read; eventfd_write; signalfd;
}
+ GLIBC_2.8 {
+ timerfd_create; timerfd_settime; timerfd_gettime;
+ }
GLIBC_PRIVATE {
# functions used in other libraries
__syscall_rt_sigqueueinfo;
Added: fsf/trunk/libc/sysdeps/unix/sysv/linux/sys/timerfd.h
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/sys/timerfd.h (added)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/sys/timerfd.h Mon Feb 11 00:06:52 2008
@@ -1,0 +1,50 @@
+/* Copyright (C) 2008 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
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, write to the Free
+ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307 USA. */
+
+#ifndef _SYS_TIMERFD_H
+#define _SYS_TIMERFD_H 1
+
+#include <time.h>
+
+
+/* Bits to be set in the FLAGS parameter of `timerfd_settime'. */
+enum
+ {
+ TFD_TIMER_ABSTIME = 1 << 0
+#define TFD_TIMER_ABSTIME TFD_TIMER_ABSTIME
+ };
+
+
+__BEGIN_DECLS
+
+/* Return file descriptor for new interval timer source. */
+extern int timerfd_create (clockid_t __clock_id, int __flags) __THROW;
+
+/* Set next expiration time of interval timer source UFD to UTMR. If
+ FLAGS has the TFD_TIMER_ABSTIME flag set the timeout value is
+ absolute. Optionally return the old expiration time in OTMR. */
+extern int timerfd_settime (int __ufd, int __flags,
+ __const struct itimerspec *__utmr,
+ struct itimerspec *__otmr) __THROW;
+
+/* Return the next expiration time of UFD. */
+extern int timerfd_gettime (int __ufd, struct itimerspec *__otmr) __THROW;
+
+__END_DECLS
+
+#endif /* sys/timerfd.h */
Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/syscalls.list
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/syscalls.list (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/syscalls.list Mon Feb 11 00:06:52 2008
@@ -94,3 +94,7 @@
mq_timedsend - mq_timedsend Ci:ipiip __GI_mq_timedsend mq_timedsend
mq_timedreceive - mq_timedreceive Ci:ipipp __GI_mq_timedreceive mq_timedreceive
mq_setattr - mq_getsetattr i:ipp __GI_mq_setattr mq_setattr
+
+timerfd_create EXTRA timerfd_create i:ii timerfd_create
+timerfd_settime EXTRA timerfd_settime i:iipp timerfd_settime
+timerfd_gettime EXTRA timerfd_gettime i:ip timerfd_gettime