summaryrefslogtreecommitdiff
path: root/lib/poll.c
Commit message (Collapse)AuthorAgeFilesLines
...
* poll: suppress a warningJim Meyering2009-01-161-0/+5
| | | | | * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits" to ignore "...unsigned expression < 0 is always false" warnings.
* poll: remove declarations of unused variablesDaniel P. Berrange2009-01-161-2/+0
| | | | | * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused sockbuf and optlen.
* poll: filter through cppiJim Meyering2009-01-071-25/+25
| | | | * lib/poll.c: Indent cpp directives to reflect nesting.
* poll: don't return uninitializedDaniel P. Berrange2009-01-071-2/+2
| | | | * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
* remove trailing spacesJim Meyering2008-10-011-1/+1
| | | | | | | | | | | * NEWS: Likewise. * lib/poll.c (poll): Likewise. * lib/sys_socket.in.h (SHUT_RDWR): Likewise. * lib/winsock.c (rpl_close): Likewise. * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise. * modules/yield: Likewise. * tests/test-poll.c (connect_to_socket, poll1): Likewise. * tests/test-sys_select.c (connect_to_socket): Likewise.
* implement a native version of poll for Win32Paolo Bonzini2008-09-231-52/+393
| | | | | | | 2008-09-22 Paolo Bonzini <bonzini@gnu.org> * lib/poll.c: Rewrite. * modules/poll: Depend on alloca.
* poll: fix polling unconnected server sockets on WIN32Yoann Vandoorselaere2008-09-111-0/+6
| | | | | | 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com> * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
* Revert "poll-win32"Paolo Bonzini2008-08-291-350/+40
| | | | | This reverts commit 4ced5d92be93b997c280be8d436e8a49b3b5e0dc which was merged in by mistake.
* poll-win32Paolo Bonzini2008-08-191-40/+350
|
* Further micro-optimization.Bruno Haible2008-08-071-2/+6
|
* microoptimization of lib/poll.cPaolo Bonzini2008-08-061-10/+20
| | | | | | | 2008-08-06 Paolo Bonzini <bonzini@gnu.org> * lib/poll.c (poll): Avoid division when timeout is 0, cache _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
* Use module 'EOVERFLOW' rather than defining an EOVERFLOW replacement in the CBruno Haible2008-03-301-4/+0
| | | | code.
* Prefer <config.h> over "config.h". See autoconf doc for explanation.Jim Meyering2008-01-251-3/+3
| | | | | * lib/poll.c: Include <config.h>, not "config.h". * tests/test-getaddrinfo.c: Likewise.
* Fix compilation error on BeOS.Bruno Haible2007-03-231-0/+5
|
* 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>Paolo Bonzini2007-01-221-0/+5
| | | | * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
* * lib/poll.c: Include sys/time.h and time.h unconditionally,Paul Eggert2007-01-201-17/+9
| | | | | | | since we now assume the sys_time module. * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or check for sys/time.h; no longer needed. * modules/poll (Depends-on): Depend on sys_time.
* 2007-01-03 Paolo Bonzini <bonzini@gnu.org>Paolo Bonzini2007-01-031-58/+53
| | | | | | | | | | Yoann Vandoorselaere <yoann.v@prelude-ids.com> * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected sockets, server sockets, and other file descriptors. Count errors to compute the return value. Reorder the code a bit to be easier to follow. Don't set event bits that were not requested (except POLLERR and POLLHUP).
* 2006-09-28 Paolo Bonzini <bonzini@gnu.org>Paolo Bonzini2006-09-281-11/+40
| | | | | * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK. * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
* Use a consistent style for including <config.h>.Paul Eggert2005-09-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * __fpending.c, acl.c, argmatch.c, argp-help.c, argp-parse.c, argp-pvh.c, backupfile.c, basename.c, c-stack.c, calloc.c, check-version.c, cloexec.c, closeout.c, copy-file.c, creat-safer.c, cycle-check.c, dirfd.c, dirname.c, dup-safer.c, dup2.c, euidaccess.c, exclude.c, exitfail.c, fatal-signal.c, fd-safer.c, file-type.c, fileblocks.c, filemode.c, filenamecat.c, findprog.c, fnmatch.c, fopen-safer.c, free.c, fsusage.c, ftruncate.c, full-write.c, fwriteerror.c, getaddrinfo.c, getcwd.c, getdelim.c, getline.c, getlogin_r.c, getndelim2.c, getnline.c, getopt1.c, getpass.c, group-member.c, hard-locale.c, hash-pjw.c, hash.c, human.c, idcache.c, inet_ntop.c, isdir.c, long-options.c, malloc.c, memcasecmp.c, memcmp.c, memcoll.c, memcpy.c, memmove.c, mkdir-p.c, modechange.c, mountlist.c, open-safer.c, physmem.c, pipe-safer.c, pipe.c, poll.c, posixver.c, progname.c, progreloc.c, putenv.c, quote.c, quotearg.c, readline.c, readlink.c, realloc.c, regex.c, rename.c, rmdir.c, rpmatch.c, safe-read.c, same.c, save-cwd.c, savedir.c, sig2str.c, strcspn.c, strerror.c, stripslash.c, strncasecmp.c, strndup.c, strnlen.c, strnlen1.c, strsep.c, strstr.c, strtod.c, strtoimax.c, strtol.c, strverscmp.c, tempname.c, time_r.c, userspec.c, utimecmp.c, version-etc-fsf.c, version-etc.c, wait-process.c, xalloc-die.c, xgetcwd.c, xmalloc.c, xmemcoll.c, xnanosleep.c, xreadlink.c, xsetenv.c, xstrndup.c, xstrtoimax.c, xstrtol.c, xstrtoumax.c, yesno.c: Standardize inclusion of config.h. * __fpending.h, dirfd.h, getdate.h, human.h, inttostr.h: Removed inclusion of config.h from header files. * inttostr.c: Adjusted in-tree users. * timespec.h: Remove superfluous warning to include config.h. * atexit.c, chdir-long.c chown.c, fchown-stub.c, getgroups.c, gettimeofday.c, lchown.c, lstat.c, mkdir.c, mkstemp.c, nanosleep.c, openat.c, raise.c, readtokens0.c, readutmp.c, unlinkdir.c: Guard inclusion of config.h with HAVE_CONFIG_H.
* *** empty log message ***Paul Eggert2005-05-141-1/+1
|
* Switch from LGPL to GPL.Paul Eggert2003-07-141-12/+10
|
* New module poll, from Paolo Bonzini <bonzini@gnu.org>.Bruno Haible2003-02-201-0/+182