This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
[newlib-cygwin] Cygwin: socket.h: Add SIOCINQ, equivalent to FIONREAD
- From: Corinna Vinschen <corinna at sourceware dot org>
- To: cygwin-cvs at sourceware dot org
- Date: 23 Feb 2018 12:34:52 -0000
- Subject: [newlib-cygwin] Cygwin: socket.h: Add SIOCINQ, equivalent to FIONREAD
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=b89b6f434939b3ab256afd476467e6189c3a4ab9
commit b89b6f434939b3ab256afd476467e6189c3a4ab9
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Fri Feb 23 13:33:23 2018 +0100
Cygwin: socket.h: Add SIOCINQ, equivalent to FIONREAD
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/cygwin/include/asm/socket.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/winsup/cygwin/include/asm/socket.h b/winsup/cygwin/include/asm/socket.h
index 8c01329..712a460 100644
--- a/winsup/cygwin/include/asm/socket.h
+++ b/winsup/cygwin/include/asm/socket.h
@@ -22,6 +22,7 @@ details. */
#define SIOCATMARK _IOR('s', 7, long) /* at oob mark? */
#define FIONREAD _IOR('f', 127, long) /* get # bytes to read */
+#define SIOCINQ FIONREAD
/* Compatible with termios.h */
#define FIONBIO 0x8004667e /* set/clear non-blocking i/o */
#define FIOASYNC _IOW('f', 125, long) /* set/clear async i/o */