Commit Graph

13 Commits

Author SHA1 Message Date
Mike Barcroft
616c044a9a Reconnect a comment with its code.
Submitted by:	bde
2002-07-10 04:47:25 +00:00
Mike Barcroft
f71e6a5243 Bring poll.h up to conformance with POSIX.1-2001 by adding some
visibility conditionals, adding the nfds_t type, and changing the
poll() prototype a little.  Update the manual to match.
2002-07-08 16:37:35 +00:00
Alfred Perlstein
198d002e7b Cleanup comments.
Remove all current poll(2) extensions except POLLINIGNEOF as they are now
unused.

Submitted by: bde
2002-04-18 14:54:26 +00:00
Alfred Perlstein
789f12fe69 Remove __P 2002-03-19 20:18:42 +00:00
Alfred Perlstein
468485b8d2 Fix select on fifos.
Backout revision 1.56 and 1.57 of fifo_vnops.c.

Introduce a new poll op "POLLINIGNEOF" that can be used to ignore
EOF on a fifo, POLLIN/POLLRDNORM is converted to POLLINIGNEOF within
the FIFO implementation to effect the correct behavior.

This should allow one to view a fifo pretty much as a data source
rather than worry about connections coming and going.

Reviewed by: bde
2002-01-14 22:03:48 +00:00
Jeroen Ruigrok van der Werven
2fa72ea7d4 Fix typo: compatability -> compatibility.
Compatability is not an existing english word.
2001-02-06 12:05:58 +00:00
Sheldon Hearn
fcb2a26dfc Synchronize the poll() prototype with the one provided in the
poll(2) manual page.

PR:		20677
Submitted by:	"Ralf S. Engelschall" <rse@engelschall.com>
2000-08-21 12:25:09 +00:00
Peter Wemm
664a31e496 Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"
is an application space macro and the applications are supposed to be free
to use it as they please (but cannot).  This is consistant with the other
BSD's who made this change quite some time ago.  More commits to come.
1999-12-29 04:46:21 +00:00
Peter Wemm
c3aac50f28 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
Bruce Evans
9357fa70bd Cleaned up some comments and ifdefs. 1998-02-03 22:32:23 +00:00
Garrett Wollman
1cbbd625cc Add support for poll(2) on files. vop_nopoll() now returns POLLNVAL
if one of the new poll types is requested; hopefully this will not break
any existing code.  (This is done so that programs have a dependable
way of determining whether a filesystem supports the extended poll types
or not.)

The new poll types added are:

	POLLWRITE - file contents may have been modified
	POLLNLINK - file was linked, unlinked, or renamed
	POLLATTRIB - file's attributes may have been changed
	POLLEXTEND - file was extended

Note that the internal operation of poll() means that it is impossible
for two processes to reliably poll for the same event (this could
be fixed but may not be worth it), so it is not possible to rewrite
`tail -f' to use poll at this time.
1997-12-15 03:09:59 +00:00
Peter Wemm
ce234528d8 oops, I accidently committed a version without INFTIM at the last moment.
I'm not sure that this is the right place to put it, it is 'supposed' to
live in stropts.h.
1997-09-14 05:38:03 +00:00
Peter Wemm
c68021f907 Add sys/poll.h 1997-09-14 02:20:56 +00:00