timerfd support
Bernhard Fischer
rep.dot.nop at gmail.com
Tue Jul 24 11:16:26 UTC 2007
On Mon, Jul 23, 2007 at 08:56:31PM -0700, Ulrich Drepper wrote:
>This patch adds timerfd support and is relative to the signalfd patch.
> The actual function code reuses functions, nothing fancy.
>
>The patch contains a bug fix, too. Somebody mistook C for Python and
>thought indenting is enough to start a block.
>
>2007-02-23 Ulrich Drepper <drepper at redhat.com>
>
> * time.c (printitv_bitness): Add missing braces to enclose
> conditional code.
> (TDF_TIMER_ABSTIME): Define if not already.
> (timerfdflags): New variable.
> (sys_timerfd): New function.
> * linux/syscall.h: Declare sys_timerfd.
> * linux/syscallent.h: Add timerfd entry.
> * linux/x86_64/syscallent.h: Likewise.
>
>--
>??? Ulrich Drepper ??? Red Hat, Inc. ??? 444 Castro St ??? Mountain View, CA ???
>Index: time.c
>===================================================================
>RCS file: /cvsroot/strace/strace/time.c,v
>retrieving revision 1.21
>diff -u -p -r1.21 time.c
>--- time.c 24 Jul 2007 01:58:52 -0000 1.21
>+++ time.c 24 Jul 2007 03:50:00 -0000
>@@ -288,22 +288,24 @@ printitv_bitness(struct tcb *tcp, long a
>+static const struct xlat timerfdflags[] = {
>+ { TFD_TIMER_ABSTIME, "TFD_TIMER_ABSTIME" },
>+ { 0, NULL }
>+};
>+
>+int
>+sys_timerfd(tcp)
>+struct tcb *tcp;
>+{
I'm curious as to why you use an old-style function definition here?
More information about the Strace-devel
mailing list