diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-23 18:24:11 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-23 18:24:11 +0000 |
commit | 2d2ddf507bf1ae2f4cc595b23b8e018398cbe8dd (patch) | |
tree | a63d3b3b1c89018b5419358eed5c2bb0acf1cd92 /main/uclibc/ppoll.patch | |
parent | e374901731eb35599bd6735de4dd38560e3a79b8 (diff) | |
download | aports-2d2ddf507bf1ae2f4cc595b23b8e018398cbe8dd.tar.bz2 aports-2d2ddf507bf1ae2f4cc595b23b8e018398cbe8dd.tar.xz |
move core/* to main/
added maintainer to several packages as well
Diffstat (limited to 'main/uclibc/ppoll.patch')
-rw-r--r-- | main/uclibc/ppoll.patch | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/main/uclibc/ppoll.patch b/main/uclibc/ppoll.patch new file mode 100644 index 0000000000..e73733e216 --- /dev/null +++ b/main/uclibc/ppoll.patch @@ -0,0 +1,59 @@ +commit f82635e74a7e174f71f955eaa4f5dc788e596cc0 +Author: Denis Vlasenko <vda.linux@googlemail.com> +Date: Wed Jan 28 23:42:01 2009 +0000 + + fix ppoll. we forgot to pass 5th parameter to the syscall + +diff --git a/libc/sysdeps/linux/common/ppoll.c b/libc/sysdeps/linux/common/ppoll.c +index edcb1dc..d550ae8 100644 +--- a/libc/sysdeps/linux/common/ppoll.c ++++ b/libc/sysdeps/linux/common/ppoll.c +@@ -17,6 +17,7 @@ + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307 USA. */ + ++#include <signal.h> + #include <sys/syscall.h> + #include <sys/poll.h> + +@@ -26,24 +27,26 @@ + + # define __NR___libc_ppoll __NR_ppoll + static __always_inline +-_syscall4(int, __libc_ppoll, struct pollfd *, fds, +- nfds_t, nfds, const struct timespec *, timeout, +- const __sigset_t *, sigmask) ++_syscall5(int, __libc_ppoll, ++ struct pollfd *, fds, ++ nfds_t, nfds, ++ const struct timespec *, timeout, ++ const __sigset_t *, sigmask, ++ size_t, sigsetsize) + + int +-ppoll (struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, ++ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, + const __sigset_t *sigmask) + { +- /* The Linux kernel can in some situations update the timeout value. +- We do not want that so use a local variable. */ +- struct timespec tval; +- if (timeout != NULL) +- { +- tval = *timeout; +- timeout = &tval; +- } +- +- return __libc_ppoll(fds, nfds, timeout, sigmask); ++ /* The Linux kernel can in some situations update the timeout value. ++ We do not want that so use a local variable. */ ++ struct timespec tval; ++ if (timeout != NULL) { ++ tval = *timeout; ++ timeout = &tval; ++ } ++ ++ return __libc_ppoll(fds, nfds, timeout, sigmask, _NSIG / 8); + } + libc_hidden_def(ppoll) + |