diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2009-06-28 11:28:14 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2009-06-28 11:28:14 +0000 |
| commit | bb520069caf7772294f4aa0f1462ac38ea9a3f20 (patch) | |
| tree | 12880e3a07e15788493652721212c558d8c339f1 /sys/kern | |
| parent | c92033c874bb142cb6f94119db9a2b3618546c3f (diff) | |
Notes
Diffstat (limited to 'sys/kern')
| -rw-r--r-- | sys/kern/sys_socket.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/kern/sys_socket.c b/sys/kern/sys_socket.c index 93da80d26a82..ecfb4adca6d3 100644 --- a/sys/kern/sys_socket.c +++ b/sys/kern/sys_socket.c @@ -169,6 +169,11 @@ soo_ioctl(struct file *fp, u_long cmd, void *data, struct ucred *active_cred, *(int *)data = so->so_rcv.sb_cc; break; + case FIONWRITE: + /* Unlocked read. */ + *(int *)data = so->so_snd.sb_cc; + break; + case FIOSETOWN: error = fsetown(*(int *)data, &so->so_sigio); break; |
