Browse Source

[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.)
tags/v0.9.4
H. Peter Anvin 17 years ago
parent
commit
61ee294875
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/include/errno.h

+ 2
- 2
src/include/errno.h View File

448
 /** Text file busy */
448
 /** Text file busy */
449
 #define ETXTBSY			( ERRFILE | PXENV_STATUS_FAILURE | 0x4d000000 )
449
 #define ETXTBSY			( ERRFILE | PXENV_STATUS_FAILURE | 0x4d000000 )
450
 
450
 
451
-/** Operation would block */
452
-#define EWOULDBLOCK		( ERRFILE | PXENV_STATUS_FAILURE | 0x4e000000 )
451
+/** Operation would block (different from EAGAIN!) */
452
+#define EWOULDBLOCK		( ERRFILE | PXENV_STATUS_TFTP_OPEN | 0x4e000000 )
453
 
453
 
454
 /** Improper link */
454
 /** Improper link */
455
 #define EXDEV			( ERRFILE | PXENV_STATUS_FAILURE | 0x4f000000 )
455
 #define EXDEV			( ERRFILE | PXENV_STATUS_FAILURE | 0x4f000000 )

Loading…
Cancel
Save