Fix FIONBIO comments

FIONBIO is defined in sys/termios.h and asm/socket.h.  Align the comments.
Remove unused REAL_FIONBIO.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2016-03-24 15:32:33 +01:00
parent b1b46d4580
commit 977912ff93
2 changed files with 4 additions and 3 deletions

View File

@ -24,8 +24,8 @@ details. */
#define SIOCATMARK _IOR('s', 7, long) /* at oob mark? */
#define FIONREAD _IOR('f', 127, long) /* get # bytes to read */
#define FIONBIO 0x8004667e /* To be compatible with termiost version */
#define REAL_FIONBIO _IOW('f', 126, long) /* set/clear non-blocking i/o */
/* Compatible with termios.h */
#define FIONBIO 0x8004667e /* set/clear non-blocking i/o */
#define FIOASYNC _IOW('f', 125, long) /* set/clear async i/o */
#define SIOCSHIWAT _IOW('s', 0, long) /* set high watermark */
#define SIOCGHIWAT _IOR('s', 1, long) /* get high watermark */

View File

@ -71,7 +71,8 @@ POSIX commands */
#define TIOCPKT_NOSTOP 16
#define TIOCPKT_DOSTOP 32
#define FIONBIO 0x8004667e /* To be compatible with socket version */
/* Compatible with asm/socket.h */
#define FIONBIO 0x8004667e /* set/clear non-blocking i/o */
#define CTRL(ch) ((ch)&0x1F)