This is the mail archive of the cygwin-cvs@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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 */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]