opnsense-src/sys
Jilles Tjoelker 33656b91cd MFC r196460
Fix the conformance of poll(2) for sockets after r195423 by
  returning POLLHUP instead of POLLIN for several cases. Now, the
  tools/regression/poll results for FreeBSD are closer to that of the
  Solaris and Linux.

  Also, improve the POSIX conformance by explicitely clearing POLLOUT
  when POLLHUP is reported in pollscan(), making the fix global.

  Submitted by:	bde
  Reviewed by:	rwatson

MFC r196556

  Fix poll() on half-closed sockets, while retaining POLLHUP for fifos.

  This reverts part of r196460, so that sockets only return POLLHUP if both
  directions are closed/error. Fifos get POLLHUP by closing the unused
  direction immediately after creating the sockets.

  The tools/regression/poll/*poll.c tests now pass except for two other
  things:
  - if POLLHUP is returned, POLLIN is always returned as well instead of
    only when there is data left in the buffer to be read
  - fifo old/new reader distinction does not work the way POSIX specs it

  Reviewed by:	kib, bde

MFC r196554

  Add some tests for poll(2)/shutdown(2) interaction.

Approved by:	re (kensmith)
2009-09-01 20:58:41 +00:00
..
amd64 MFC 196643 2009-09-01 16:41:28 +00:00
arm - Merge r196246: 2009-08-15 15:18:29 +00:00
boot MFC: 196326 2009-08-17 15:39:47 +00:00
bsm Import OpenBSM 1.1p1 from vendor branch to 8-CURRENT, populating 2009-07-17 14:02:20 +00:00
cam MFC r196657: 2009-09-01 12:04:43 +00:00
cddl MFC r196395: 2009-08-20 00:08:58 +00:00
compat MFC r196635: 2009-08-31 09:46:09 +00:00
conf MFC r196435: 2009-08-26 22:32:14 +00:00
contrib MFC r196551: 2009-08-28 20:26:00 +00:00
crypto Changed to M_NOWAIT when reallocing psc_buf in padlock_sha_update(), 2009-05-27 09:52:12 +00:00
ddb Merge the remainder of kern_vimage.c and vimage.h into vnet.c and 2009-08-01 19:26:27 +00:00
dev MFC r196656, r196660: 2009-09-01 11:44:30 +00:00
fs MFC r196460 2009-09-01 20:58:41 +00:00
gdb Commit SYSINIT() ;-adding patch missed in previous pass. 2008-03-16 13:02:04 +00:00
geom MFC rev 196333: 2009-08-17 16:24:50 +00:00
gnu Fix the build by using proper format. 2009-06-25 16:48:13 +00:00
i386 MFC 196643 2009-09-01 16:41:28 +00:00
ia64 MFC rev 196268: 2009-08-16 02:12:13 +00:00
isa MFC 196520: 2009-08-27 16:34:04 +00:00
kern MFC r196460 2009-09-01 20:58:41 +00:00
kgssapi When the KOBJMETHOD() macro was updated, it resulted in the 2009-06-14 17:33:46 +00:00
libkern done method is supposed to return int. 2009-06-22 22:09:18 +00:00
mips MFC r196196: 2009-08-13 17:54:11 +00:00
modules MFC r196295: 2009-08-17 09:03:47 +00:00
net MFC r196633: 2009-08-31 09:44:07 +00:00
net80211 MFC r196316: 2009-08-17 13:00:32 +00:00
netatalk Merge r196121 from head to stable/8: 2009-08-13 14:50:39 +00:00
netgraph Merge r196481 from head to stable/8: 2009-08-28 20:06:02 +00:00
netinet MFC r196608 2009-08-30 22:39:49 +00:00
netinet6 MFC r196649 2009-08-30 22:44:12 +00:00
netipsec Merge r196481 from head to stable/8: 2009-08-28 20:06:02 +00:00
netipx Use queue(9) instead of hand-crafted link lists for the global IPX 2009-06-24 20:57:50 +00:00
netnatm Reimplement the netisr framework in order to support parallel netisr 2009-06-01 10:41:38 +00:00
netncp Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
netsmb Rework socket upcalls to close some races with setup/teardown of upcalls. 2009-06-01 21:17:03 +00:00
nfs Revert rev 192323 (nfs_common.c only): 2009-07-12 03:53:52 +00:00
nfsclient Merge r196481 from head to stable/8: 2009-08-28 20:06:02 +00:00
nfsserver Remove the old kernel RPC implementation and the NFS_LEGACYRPC option. 2009-06-30 19:03:27 +00:00
nlm Since svc_[dg|vc|tli|tp]_create() did not hold a reference count on the 2009-06-17 22:50:26 +00:00
opencrypto Fix cryptodev UIO creation. 2009-05-23 13:23:46 +00:00
pc98 MFC 196403: Temporarily revert the new-bus locking for 8.0 release. 2009-08-20 20:23:28 +00:00
pci MFC r196516: 2009-08-28 17:34:22 +00:00
powerpc MFC r196196: 2009-08-13 17:54:11 +00:00
rpc MFC r196503: 2009-08-28 19:12:44 +00:00
security Merge r196122 from head to stable/8: 2009-08-13 15:01:50 +00:00
sparc64 MFC r196196: 2009-08-13 17:54:11 +00:00
sun4v MFC r196196: 2009-08-13 17:54:11 +00:00
sys MFC r196512: 2009-08-27 17:34:13 +00:00
tools - Increase dynamic range of filter coefficients from 28bit to 30bit. 2009-07-05 18:15:06 +00:00
ufs MFC r196206: 2009-08-14 11:22:09 +00:00
vm MFC 196637: 2009-09-01 15:50:07 +00:00
xdr MFC r196149: 2009-08-12 20:30:27 +00:00
xen MFC 196403: Temporarily revert the new-bus locking for 8.0 release. 2009-08-20 20:23:28 +00:00
Makefile Remove the unmaintained University of Michigan NFSv4 client from 8.x 2009-05-22 12:35:12 +00:00