summaryrefslogtreecommitdiffstats
path: root/sys/sys/socket.h
diff options
context:
space:
mode:
authorrrs <rrs@FreeBSD.org>2008-04-14 18:06:04 +0000
committerrrs <rrs@FreeBSD.org>2008-04-14 18:06:04 +0000
commit5759bc8cd397f57572e3323bc985823017292c42 (patch)
tree0b8e744b70a6ca1ce39cc0c162557aabdb163f75 /sys/sys/socket.h
parent68f7f9c44de5e560da0a17f76220eba3c4c7bc5d (diff)
downloadFreeBSD-src-5759bc8cd397f57572e3323bc985823017292c42.zip
FreeBSD-src-5759bc8cd397f57572e3323bc985823017292c42.tar.gz
Add pru_flush routine so a transport can
flush itself during Shutdown MFC after: 1 week
Diffstat (limited to 'sys/sys/socket.h')
-rw-r--r--sys/sys/socket.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/sys/socket.h b/sys/sys/socket.h
index 4d2b707..713dd38 100644
--- a/sys/sys/socket.h
+++ b/sys/sys/socket.h
@@ -593,6 +593,12 @@ struct omsghdr {
#define SHUT_WR 1 /* shut down the writing side */
#define SHUT_RDWR 2 /* shut down both sides */
+/* we cheat and use the SHUT_XX defines for these */
+#define PRU_FLUSH_RD SHUT_RD
+#define PRU_FLUSH_WR SHUT_WR
+#define PRU_FLUSH_RDWR SHUT_RDWR
+
+
#if __BSD_VISIBLE
/*
* sendfile(2) header/trailer struct
OpenPOWER on IntegriCloud