view modules/poll @ 37520:b46e093d1df7

assure: new module This works better than 'assert' when compiling with -DNDEBUG, as it avoids some compiler diagnostics in that case. Reported by Norihiro Tanaka in: http://lists.gnu.org/archive/html/bug-gnulib/2014-12/msg00215.html * MODULES.html.sh (func_all_modules): Add 'assure'. * lib/assure.h, modules/assure: New files. * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c: * lib/poll.c, lib/savewd.c, lib/utimens.c, lib/xstrtol.c: Prefer 'assure' to 'assert'. * modules/chdir-long, modules/cycle-check, modules/fchdir: * modules/poll, modules/savewd, modules/utimens, modules/xstrtol: Depend on 'assure'.
author Paul Eggert <eggert@cs.ucla.edu>
date Sat, 20 Dec 2014 13:00:21 -0800
parents 5ae6d295f337
children 5aeafb603ed9
line wrap: on
line source

Description:
poll() function: wait for some event on a set of file descriptors.

Files:
lib/poll.c
m4/poll.m4

Depends-on:
poll-h
alloca          [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
assure          [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
select          [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
sockets         [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
sys_select      [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
sys_time        [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
errno           [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
msvc-nothrow    [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]

configure.ac:
gl_FUNC_POLL
if test $HAVE_POLL = 0 || test $REPLACE_POLL = 1; then
  AC_LIBOBJ([poll])
  gl_PREREQ_POLL
fi
gl_POLL_MODULE_INDICATOR([poll])

Makefile.am:

Include:
<poll.h>

Link:
$(LIB_POLL)

License:
LGPLv2+

Maintainer:
Paolo Bonzini  <bonzini@gnu.org>