diff options
-rw-r--r-- | MANIFEST | 2 | ||||
-rw-r--r-- | mcon/U/d_poll.U | 4 | ||||
-rw-r--r-- | mcon/U/i_poll.U | 28 | ||||
-rw-r--r-- | mcon/U/i_syspoll.U | 28 |
4 files changed, 60 insertions, 2 deletions
@@ -405,6 +405,7 @@ mcon/U/i_memory.U Shall we include <memory.h>? mcon/U/i_ndbm.U Shall we include <ndbm.h>? mcon/U/i_neterrno.U Shall we include <net/errno.h>? mcon/U/i_niin.U Shall we include <netinet/in.h>? +mcon/U/i_poll.U Shall we include <poll.h>? mcon/U/i_pwd.U Shall we include <pwd.h>? mcon/U/i_regex.U Shall we include <regex.h>? mcon/U/i_sfio.U Shall we include <sfio.h>? @@ -417,6 +418,7 @@ mcon/U/i_sysioctl.U Include <sys/ioctl.h> or <sgtty.h>? mcon/U/i_sysmman.U Do we have to include <sys/mman.h>? mcon/U/i_sysndir.U Shall we include <sys/ndir.h>? mcon/U/i_sysparam.U Shall we include <sys/param.h>? +mcon/U/i_syspoll.U Shall we include <sys/poll.h>? mcon/U/i_sysresrc.U Shall we include <sys/resource.h>? mcon/U/i_sysselct.U Shall we include <sys/select.h>? mcon/U/i_syssock.U Shall we include <sys/socket.h>? diff --git a/mcon/U/d_poll.U b/mcon/U/d_poll.U index f07ef0e..54db1b8 100644 --- a/mcon/U/d_poll.U +++ b/mcon/U/d_poll.U @@ -24,8 +24,8 @@ ?S:. ?C:HAS_POLL : ?C: This symbol, if defined, indicates that the poll routine is -?C: available to poll active file descriptors. You may safely -?C: include <poll.h> when this symbol is defined. +?C: available to poll active file descriptors. Please check I_POLL and +?C: I_SYS_POLL to know which header should be included as well. ?C:. ?H:#$d_poll HAS_POLL /**/ ?H:. diff --git a/mcon/U/i_poll.U b/mcon/U/i_poll.U new file mode 100644 index 0000000..162f4cb --- /dev/null +++ b/mcon/U/i_poll.U @@ -0,0 +1,28 @@ +?RCS: $Id$ +?RCS: +?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi +?RCS: +?RCS: You may redistribute only under the terms of the Artistic Licence, +?RCS: as specified in the README file that comes with the distribution. +?RCS: You may reuse parts of this distribution only within the terms of +?RCS: that same Artistic Licence; a copy of which may be found at the root +?RCS: of the source tree for dist 4.0. +?RCS: +?MAKE:i_poll: Inhdr +?MAKE: -pick add $@ %< +?S:i_poll: +?S: This variable conditionally defines the I_POLL symbol, which +?S: indicates to the C program that it should include <poll.h>. +?S:. +?C:I_POLL: +?C: This symbol, if defined, indicates that the program may include +?C: <poll.h>. If there is no <poll.h>, then you may check I_SYS_POLL +?C: instead to see whether there is a <sys/poll.h> to include. +?C:. +?H:#$i_poll I_POLL /**/ +?H:. +?LINT:set i_poll +: see if there is a poll.h file +set poll.h i_poll +eval $inhdr + diff --git a/mcon/U/i_syspoll.U b/mcon/U/i_syspoll.U new file mode 100644 index 0000000..c284143 --- /dev/null +++ b/mcon/U/i_syspoll.U @@ -0,0 +1,28 @@ +?RCS: $Id$ +?RCS: +?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi +?RCS: +?RCS: You may redistribute only under the terms of the Artistic Licence, +?RCS: as specified in the README file that comes with the distribution. +?RCS: You may reuse parts of this distribution only within the terms of +?RCS: that same Artistic Licence; a copy of which may be found at the root +?RCS: of the source tree for dist 4.0. +?RCS: +?MAKE:i_syspoll: Inhdr +?MAKE: -pick add $@ %< +?S:i_syspoll: +?S: This variable conditionally defines the I_SYS_POLL symbol, which +?S: indicates to the C program that it should include <sys/poll.h>. +?S:. +?C:I_SYS_POLL: +?C: This symbol, if defined, indicates that the program may include +?C: <sys/poll.h>. When I_POLL is also defined, it's probably safest +?C: to only include <poll.h>. +?C:. +?H:#$i_syspoll I_SYS_POLL /**/ +?H:. +?LINT:set i_syspoll +: see if there is a sys/poll.h file +set sys/poll.h i_syspoll +eval $inhdr + |