diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-03-26 15:12:19 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-03-26 15:12:19 -0700 |
commit | 61ee294875fabf3bcab5fff7e4f6f2c0e0dfa96f (patch) | |
tree | 16df6bfed222a06801d921ea74ace46a5be3beaa /src/include/errno.h | |
parent | d62e89d776095767d075a75ceffc884ed267f685 (diff) | |
download | ipxe-61ee294875fabf3bcab5fff7e4f6f2c0e0dfa96f.zip ipxe-61ee294875fabf3bcab5fff7e4f6f2c0e0dfa96f.tar.gz ipxe-61ee294875fabf3bcab5fff7e4f6f2c0e0dfa96f.tar.bz2 |
[PXEXT] Change the PXE return code for EWOULDBLOCK
Change the PXE return code for EWOULDBLOCK from PXENV_STATUS_FAILURE
to PXENV_STATUS_TFTP_OPEN. This code is only used by the FILE_READ
PXEXT call, and is necessary to distinguish "error" from "no data" in
that call.
(The only other nonblocking call is UDP_READ, where the caller doesn't
care about the distinction, however, gPXE doesn't use EWOULDBLOCK
internally to represent this condition in that code.)
Diffstat (limited to 'src/include/errno.h')
-rw-r--r-- | src/include/errno.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/errno.h b/src/include/errno.h index 03d1ebd..d23b93e 100644 --- a/src/include/errno.h +++ b/src/include/errno.h @@ -448,8 +448,8 @@ extern char missing_errfile_declaration[] __attribute__ (( deprecated )); /** Text file busy */ #define ETXTBSY ( ERRFILE | PXENV_STATUS_FAILURE | 0x4d000000 ) -/** Operation would block */ -#define EWOULDBLOCK ( ERRFILE | PXENV_STATUS_FAILURE | 0x4e000000 ) +/** Operation would block (different from EAGAIN!) */ +#define EWOULDBLOCK ( ERRFILE | PXENV_STATUS_TFTP_OPEN | 0x4e000000 ) /** Improper link */ #define EXDEV ( ERRFILE | PXENV_STATUS_FAILURE | 0x4f000000 ) |