aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/filio.h
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2009-06-30 13:38:49 +0000
committerEd Maste <emaste@FreeBSD.org>2009-06-30 13:38:49 +0000
commit2dafac3976b1e65dc6e1fe9aee59191d4cd19af1 (patch)
tree8b55a5b1eeeffcba51735b6a4fdb499a8936add5 /sys/sys/filio.h
parentb2d758545bc5d29786ee9ab87d10de7ab52a7334 (diff)
downloadsrc-2dafac3976b1e65dc6e1fe9aee59191d4cd19af1.tar.gz
src-2dafac3976b1e65dc6e1fe9aee59191d4cd19af1.zip
Add FIONSPACE from NetBSD. FIONSPACE is provided so that programs may
easily determine how much space is left in the send queue; they do not need to know the send queue size. NetBSD revisions: sys_socket.c r1.41, 1.42 filio.h r1.9 Obtained from: NetBSD Approved by: re (kensmith)
Notes
Notes: svn path=/head/; revision=195191
Diffstat (limited to 'sys/sys/filio.h')
-rw-r--r--sys/sys/filio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/filio.h b/sys/sys/filio.h
index 68e7852a4ceb..1710ba45e6c5 100644
--- a/sys/sys/filio.h
+++ b/sys/sys/filio.h
@@ -56,6 +56,7 @@ struct fiodgname_arg {
};
#define FIODGNAME _IOW('f', 120, struct fiodgname_arg) /* get dev. name */
#define FIONWRITE _IOR('f', 119, int) /* get # bytes (yet) to write */
+#define FIONSPACE _IOR('f', 118, int) /* get space in send queue */
/* Handle lseek SEEK_DATA and SEEK_HOLE for holey file knowledge. */
#define FIOSEEKDATA _IOWR('f', 97, off_t) /* SEEK_DATA */
#define FIOSEEKHOLE _IOWR('f', 98, off_t) /* SEEK_HOLE */