diff options
author | 1997-06-29 23:40:46 +0000 | |
---|---|---|
committer | 1997-06-29 23:40:46 +0000 | |
commit | 84d7b780dc57e6065037c0ac59332f1934181c4c (patch) | |
tree | 301f8b242d8db99828affd94be7fd277b73aacef /lib/libedit/read.c | |
parent | Use correct spacing on both 32bit and 64bit machines. (diff) | |
download | wireguard-openbsd-84d7b780dc57e6065037c0ac59332f1934181c4c.tar.xz wireguard-openbsd-84d7b780dc57e6065037c0ac59332f1934181c4c.zip |
Updates from NetBSD (christos@netbsd.org)
* Portability fixes:
__const -> const
BADSIG -> SIG_ERR
int flags -> u_int flags
#if __STDC__ -> #ifdef __STDC__
* Don't allow CSWTCH to interfere with CSUSP on __SVR4 systems.
* Return -1 if the terminal set operation resulted in dumb terminal settings.
* Handle properly the case where the last line in the sourced file does
not have a trailing '\n'. From Jeffrey C Honig.
* editrc -> editline in editline(3)
Diffstat (limited to 'lib/libedit/read.c')
-rw-r--r-- | lib/libedit/read.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/libedit/read.c b/lib/libedit/read.c index 5bfe0f7bb91..8061be9780b 100644 --- a/lib/libedit/read.c +++ b/lib/libedit/read.c @@ -1,5 +1,5 @@ -/* $OpenBSD: read.c,v 1.4 1997/06/10 20:10:13 millert Exp $ */ -/* $NetBSD: read.c,v 1.3 1997/01/14 04:17:25 lukem Exp $ */ +/* $OpenBSD: read.c,v 1.5 1997/06/29 23:40:50 millert Exp $ */ +/* $NetBSD: read.c,v 1.4 1997/04/11 17:52:47 christos Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)read.c 8.1 (Berkeley) 6/4/93"; #else -static char rcsid[] = "$OpenBSD: read.c,v 1.4 1997/06/10 20:10:13 millert Exp $"; +static char rcsid[] = "$OpenBSD: read.c,v 1.5 1997/06/29 23:40:50 millert Exp $"; #endif #endif /* not lint && not SCCSID */ @@ -93,13 +93,17 @@ read__fixio(fd, e) #ifdef EWOULDBLOCK case EWOULDBLOCK: -# define TRY_AGAIN +# ifndef TRY_AGAIN +# define TRY_AGAIN +# endif #endif /* EWOULDBLOCK */ #if defined(POSIX) && defined(EAGAIN) # if defined(EWOULDBLOCK) && EWOULDBLOCK != EAGAIN case EAGAIN: -# define TRY_AGAIN +# ifndef TRY_AGAIN +# define TRY_AGAIN +# endif # endif /* EWOULDBLOCK && EWOULDBLOCK != EAGAIN */ #endif /* POSIX && EAGAIN */ |