david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Added strerror(0)=="No error", so that TCP protocols can use

strerror(rc) in their closed() methods without producing "Error
0x0000" when the connection is closed normally.
This commit is contained in:
Michael Brown 2007-01-11 04:01:31 +00:00
parent e2dcd05b67
commit 83fa318b86
1 changed files with 1 additions and 0 deletions

View File

@ -55,6 +55,7 @@ const char * strerror ( int errno ) {
}
/** The most common errors */
struct errortab enoerr __errortab = { 0, "No error" };
struct errortab enoem __errortab = { ENOMEM, "Out of memory" };
struct errortab einval __errortab = { EINVAL, "Invalid argument" };
struct errortab enospc __errortab = { ENOSPC, "No space left on device" };