Hi, -------- Original-Nachricht -------- > Datum: Wed, 11 May 2011 08:40:59 +0200 > Von: Thierry Reding <[email protected]> > An: [email protected] > Betreff: [PATCH 2/2] Implement pipe2 system call.
> Signed-off-by: Thierry Reding <[email protected]> > --- > include/unistd.h | 3 +++ > libc/sysdeps/linux/common/pipe.c | 3 +++ > 2 files changed, 6 insertions(+), 0 deletions(-) > > diff --git a/include/unistd.h b/include/unistd.h > index c421cb3..00fbbb5 100644 > --- a/include/unistd.h > +++ b/include/unistd.h > @@ -389,6 +389,9 @@ extern ssize_t pwrite64 (int __fd, __const void > *__buf, size_t __n, > extern int pipe (int __pipedes[2]) __THROW __wur; > libc_hidden_proto(pipe) > > +extern int pipe2 (int __pipedes[2], int flags) __THROW __wur; > +libc_hidden_proto(pipe2) why is libc_hidden_* needed? Is pipe2() reused anywhere else in your future patches? > + > /* Schedule an alarm. In SECONDS seconds, the process will get a > SIGALRM. > If SECONDS is zero, any currently scheduled alarm will be cancelled. > The function returns the number of seconds remaining until the last > diff --git a/libc/sysdeps/linux/common/pipe.c > b/libc/sysdeps/linux/common/pipe.c > index 8eae27c..29d9bfb 100644 > --- a/libc/sysdeps/linux/common/pipe.c > +++ b/libc/sysdeps/linux/common/pipe.c > @@ -13,3 +13,6 @@ > > _syscall1(int, pipe, int *, filedes) > libc_hidden_def(pipe) > + > +_syscall2(int, pipe2, int *, filedes, int, flags) > +libc_hidden_def(pipe2) you should for now remove both *proto and *def Peter > -- > 1.7.5.1 > > _______________________________________________ > uClibc mailing list > [email protected] > http://lists.busybox.net/mailman/listinfo/uclibc -- NEU: FreePhone - kostenlos mobil telefonieren und surfen! Jetzt informieren: http://www.gmx.net/de/go/freephone _______________________________________________ uClibc mailing list [email protected] http://lists.busybox.net/mailman/listinfo/uclibc
