search for: 8ad93a4b

Displaying 2 results from an estimated 2 matches for "8ad93a4b".

2023 Jan 26
0
[klibc:time64] select: Fix handling of NULL timeout when wrapping pselect()
...g pselect() passes an uninitialised timespec buffer to pselect(). It should pass NULL. Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/klibc/select.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/klibc/select.c b/usr/klibc/select.c index 7af28fee..8ad93a4b 100644 --- a/usr/klibc/select.c +++ b/usr/klibc/select.c @@ -21,7 +21,8 @@ int select(int nfds, fd_set *readfds, fd_set *writefds, ts.tv_nsec = timeout->tv_usec * 1000; } - result = __pselect6(nfds, readfds, writefds, exceptfds, &ts, NULL); + result = __pselect6(nfds, readfds, writefd...
2023 Jan 26
0
[klibc:time64] select: Make all select calls wrappers for pselect6()
...lect6(int, fd_set *, fd_set *, fd_set *, struct timespec *, const struct __pselect6 *); <?> int poll(struct pollfd *, nfds_t, long); <?> int ppoll::__ppoll(struct pollfd *, nfds_t, struct timespec *, const sigset_t *, size_t); diff --git a/usr/klibc/select.c b/usr/klibc/select.c index 8ad93a4b..11e71543 100644 --- a/usr/klibc/select.c +++ b/usr/klibc/select.c @@ -4,8 +4,6 @@ #include <errno.h> #include <sys/syscall.h> -#if !defined(__NR_select) && !defined(__NR__newselect) - struct __pselect6; __extern int __pselect6(int, fd_set *, fd_set *, fd_set *, const...