lib/poll.c


Log

Author Commit Date CI Message
Paolo Bonzini cc714b45 2009-08-04T18:06:07 Fix polling for writeability of a screen buffer. * lib/poll.c: Distinguish input and screen buffers for the Win32 implementation. * lib/select.c: Likewise.
Jim Meyering 0f8cbbe1 2009-01-16T09:36:21 poll: suppress a warning * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits" to ignore "...unsigned expression < 0 is always false" warnings.
Daniel P. Berrange 03ba7406 2009-01-15T22:29:34 poll: remove declarations of unused variables * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused sockbuf and optlen.
Jim Meyering 4dcf1388 2009-01-07T21:02:12 poll: filter through cppi * lib/poll.c: Indent cpp directives to reflect nesting.
Daniel P. Berrange 74e2d5b2 2009-01-07T20:43:01 poll: don't return uninitialized * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
Jim Meyering 9c9a9765 2008-10-01T09:43:40 remove trailing spaces * 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.
Paolo Bonzini cc4349c8 2008-08-29T09:12:11 implement a native version of poll for Win32 2008-09-22 Paolo Bonzini <bonzini@gnu.org> * lib/poll.c: Rewrite. * modules/poll: Depend on alloca.
Yoann Vandoorselaere 2075aae4 2008-09-11T18:09:17 poll: fix polling unconnected server sockets on WIN32 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com> * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
Paolo Bonzini 8de32ec2 2008-08-29T09:10:31 Revert "poll-win32" This reverts commit 4ced5d92be93b997c280be8d436e8a49b3b5e0dc which was merged in by mistake.
Paolo Bonzini 4ced5d92 2008-08-19T07:59:49 poll-win32
Bruno Haible 6fb5e02a 2008-08-07T00:15:07 Further micro-optimization.
Paolo Bonzini 80b8978a 2008-08-06T10:27:53 microoptimization of lib/poll.c 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.
Bruno Haible dac3bbf9 2008-03-30T15:18:13 Use module 'EOVERFLOW' rather than defining an EOVERFLOW replacement in the C code.
Jim Meyering f026d2bb 2008-01-25T21:52:02 Prefer <config.h> over "config.h". See autoconf doc for explanation. * lib/poll.c: Include <config.h>, not "config.h". * tests/test-getaddrinfo.c: Likewise.
Bruno Haible 1c882c47 2007-03-23T02:12:53 Fix compilation error on BeOS.
Paolo Bonzini a299b147 2007-01-22T09:33:16 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com> * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
Paul Eggert 31f17cf5 2007-01-20T08:32:33 * lib/poll.c: Include sys/time.h and time.h unconditionally, 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.
Paolo Bonzini ceb9fb55 2007-01-03T10:51:18 2007-01-03 Paolo Bonzini <bonzini@gnu.org> 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).
Paolo Bonzini ecd99cc8 2006-09-28T19:58:33 2006-09-28 Paolo Bonzini <bonzini@gnu.org> * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK. * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
Paul Eggert 222b0486 2005-09-19T17:28:14 Use a consistent style for including <config.h>. * __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.
Paul Eggert 267a39ba 2005-05-14T06:03:57 *** empty log message ***
Paul Eggert d0723a16 2003-07-14T16:36:07 Switch from LGPL to GPL.
Bruno Haible 8577bd35 2003-02-20T13:10:05 New module poll, from Paolo Bonzini <bonzini@gnu.org>.