summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/poll.c
AgeCommit message (Collapse)Author
2007-10-23Poll with zero timeoutJoakim Tjernlund
Jean-Christian de Rivaz writes: The attached patch solve an issue I faced while using the libdbus-glib waiting for a D-Bus message or the end of a glib timer at the same time. This specific case of use generate a poll call with a zero timeout. On platformes with the glibc a zero timeout poll return immetiately even if there is no file descriptor event. But on platformes with uClibc a zero timeout poll block until a file descriptor event occurs.
2007-05-25Jean-Christian de Rivaz writes:Mike Frysinger
I actually suspect this code into the file uClibc/libc/sysdeps/linux/common/poll.c: tval.tv_nsec = (timeout % 1000) *1000; <==== make only usec! From milisecond this really needs a * 1000000 to make nanosecond. Without this a 1100 milisecond timeout is converted into a 1 seconde and 100 microsecond timeout! This can explain the weird result of the test code.
2007-02-28add support for ppoll() and emulate poll() with it when __NR_poll does not existMike Frysinger
2006-12-08Take Mike Frysinger's comments into account -- make certain that userEric Andersen
applications stop using _syscall#() and use syscall() instead. Cleanup internal handling of syscall includes to use the correct header file.
2006-08-23psm updates: add __libc symbols for signal cancellationMike Frysinger
2006-01-14make DODEBUG=y happy, update sysdeps/common/* copyrightPeter S. Mazinger
2006-01-14hidden_def/hidden_proto: convert all users (I hope) termios split, add some ↵Peter S. Mazinger
missing headers, other jump relocs removed
2005-12-09Implement hidden poll, switch user to hidden *printf/*scanf/pollPeter S. Mazinger
2005-12-08Implement more hiddenPeter S. Mazinger
2005-12-03More hiding, including __mempcpyPeter S. Mazinger
2005-12-01Hide mostly used functionsPeter S. Mazinger
2004-03-18Based on a patch from Alexandre Oliva, remove all reference to 'bzero' (whichEric Andersen
is not a SuSv3 symbol). Rather than using __bzero internally per Alexandre's original patch, use memset instead.
2004-02-11Fix bug from the syscall reorganization, detected by python's test_poll.py.Manuel Novoa III
The #ifdef __NR_poll test was failing because it was done before any includes. Hence, the emulation was always being used. NOTE: The emulation fails a couple of tests in test_poll.py!
2004-01-21Move poll to its own file, rather than being only half in its own fileEric Andersen
2003-10-22Per suggestion and patch from Ken Staton, emulates poll usingEric Andersen
select for older 2.0 kernels where poll is missing.