freebsd-skq/sys
John Baldwin ac695ab41b - Fix ncp_poll() to not panic if the socket doesn't have any pending data.
We have to adjust curthread's state enough so that it appears to be
  in a poll(2) or select(2) call so that selrecord() will work and then
  teardown that state after calling sopoll().
- Fix some minor nits in nearby ncp_sock_rselect() and in the identical
  nbssn_rselect() function in the netsmb code:
  - Don't call nb_poll()/ncp_poll() now that ncp_poll() already fakes up
    poll(2) state since the rselect() functions already do that.  Just
    invoke sopoll() directly.
  - To make things slightly more intuitive, store the results of sopoll()
    in a new 'revents' variable rather than 'error' since that's what
    sopoll() actually returns.
  - If the requested timeout time has been exceeded by the time we get
    ready to block, then return EWOULDBLOCK rather than 0 to signal a
    timeout as this is what the calling code expects.

Tested by:	Eric Christeson <eric.j.christeson AT gmail> (1)
MFC after:	1 week
2006-08-03 15:31:52 +00:00
..
amd64 Define the additional page fault error codes that are implemented by amd64. 2006-08-02 16:24:23 +00:00
arm Complete the transition from pmap_page_protect() to pmap_remove_write(). 2006-08-01 19:06:06 +00:00
boot Add snd_emu10kx_load 2006-07-26 12:59:42 +00:00
bsm Merge OpenBSM 1.0 alpha 7 new AUE_ event identifiers to kernel version 2006-07-03 14:45:43 +00:00
cam Drop Giant before returning in error path, thus eliminates 2006-07-14 13:58:32 +00:00
coda Since DELAY() was moved, most <machine/clock.h> #includes have been 2006-05-16 14:37:58 +00:00
compat Regen for MPSAFE flag removal. 2006-07-28 19:08:37 +00:00
conf Add an option to enable KSE support. 2006-08-03 05:19:33 +00:00
contrib Import from OpenBSD 1.168, dhartmei: 2006-07-21 09:48:13 +00:00
crypto Remove trailing spaces. 2006-07-28 14:48:30 +00:00
ddb Fix two nits in the ps header that offset each other making them largely 2006-08-01 22:30:55 +00:00
dev Merge in new driver from Intel, version 6.0.5. It adds support for 2006-08-03 09:20:11 +00:00
fs When the volume is being downgraded from a read-write mode, mark 2006-08-03 03:55:52 +00:00
gdb Convert to new console api 2006-05-26 13:54:27 +00:00
geom Don't use f-word in comments. We are gentlemans. 2006-08-01 23:17:33 +00:00
gnu Add snd_emu10kx driver for Creative SoundBlaster Live! and Audigy series 2006-07-15 19:36:28 +00:00
i4b Extend i4b to support CAPI manager based ISDN controllers (CAPI manager is part of 2006-07-09 21:16:06 +00:00
i386 Complete the transition from pmap_page_protect() to pmap_remove_write(). 2006-08-01 19:06:06 +00:00
ia64 Complete the transition from pmap_page_protect() to pmap_remove_write(). 2006-08-01 19:06:06 +00:00
isa (apply '(lambda (reformat-region 'style-9-parens)) (read-file isahint.c)) 2006-07-08 16:50:10 +00:00
isofs/cd9660 Remove calls to vfs_export() for exporting a filesystem for NFS mounting 2006-05-26 00:32:21 +00:00
kern Regen. 2006-08-03 05:32:43 +00:00
libkern First pass at removing Alpha kernel support. 2006-05-11 22:25:28 +00:00
modules Add device to access and modify Open Firmware NVRAM settings in 2006-08-01 22:19:01 +00:00
net Should vlan_input() ever be called with ifp pointing to a non-Ethernet 2006-08-03 09:59:08 +00:00
net80211 add support for 802.11 packet injection via bpf 2006-07-26 03:15:16 +00:00
netatalk Remove call to soisdisconnected() in at_pcbdetach(): by the time the 2006-08-02 16:22:34 +00:00
netatm Change semantics of socket close and detach. Add a new protocol switch 2006-07-21 17:11:15 +00:00
netgraph Remove the dependency of bridgestp.h on if_bridgevar.h by moving a couple of 2006-07-27 21:01:48 +00:00
netinet Move soisdisconnected() in tcp_discardcb() to one of its calling contexts, 2006-08-02 16:18:05 +00:00
netinet6 Align IPv6 socket locking with IPv4 locking: lock socket buffer explicitly 2006-07-23 12:24:22 +00:00
netipsec Fix build breakage from previous commit which confused key_abort and key_close. 2006-07-22 09:18:02 +00:00
netipx Change semantics of socket close and detach. Add a new protocol switch 2006-07-21 17:11:15 +00:00
netkey Change semantics of socket close and detach. Add a new protocol switch 2006-07-21 17:11:15 +00:00
netnatm Change semantics of socket close and detach. Add a new protocol switch 2006-07-21 17:11:15 +00:00
netncp - Fix ncp_poll() to not panic if the socket doesn't have any pending data. 2006-08-03 15:31:52 +00:00
netsmb - Fix ncp_poll() to not panic if the socket doesn't have any pending data. 2006-08-03 15:31:52 +00:00
nfs
nfs4client Always supply curthread as argument to nfs_asyncio and nfs_doio 2006-07-12 09:16:35 +00:00
nfsclient soreceive_generic(), and sopoll_generic(). Add new functions sosend(), 2006-07-24 15:20:08 +00:00
nfsserver - Add a new function nfsrv_destroycache() to tear down the server request 2006-08-01 16:27:14 +00:00
opencrypto When DIAGNOSTIC is defined, verify if we don't free crypto requests from 2006-06-06 15:04:52 +00:00
pc98 Remove sio(4) and related options from MI files to amd64, i386 2006-07-29 18:38:54 +00:00
pccard I don't believe these are used at all, and can be safely removed 2006-01-15 06:49:28 +00:00
pci Another small update to the re(4) driver: 2006-08-01 17:18:25 +00:00
posix4 Backout the feature which can change thread's scheduling option, I really 2006-07-13 06:41:26 +00:00
powerpc Don't ignore errors from intr_event_add_handler(). 2006-08-02 17:50:31 +00:00
rpc Fix up some cut-n-paste damage and some out-of-date comments. 2006-01-20 15:20:41 +00:00
security Remove the NDEVFSINO and NDEVFSOVERFLOW options which no longer exists in 2006-07-17 09:07:02 +00:00
sparc64 Complete the transition from pmap_page_protect() to pmap_remove_write(). 2006-08-01 19:06:06 +00:00
sys Add fields to struct sysent to support the DTrace syscall provider called 2006-08-03 05:26:51 +00:00
tools Check for errors when registering and unregistering firmware modules. This 2006-06-16 21:06:03 +00:00
ufs Rather than print out a nice error message giving details sufficent to fix 2006-07-31 15:44:13 +00:00
vm Complete the transition from pmap_page_protect() to pmap_remove_write(). 2006-08-01 19:06:06 +00:00
Makefile o Add geom to a list of cscope dirs. 2006-07-04 14:14:16 +00:00