Add some more errno definitions
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
cda0d49a4e
commit
a08310ff5e
@ -15,6 +15,7 @@
|
||||
#define ENOMEM 12 // Cannot allocate memory
|
||||
#define EACCES 13 // Permission denied
|
||||
#define EFAULT 14 // Bad address
|
||||
#define ENOTBLK 15 // Block device required
|
||||
#define EBUSY 16 // Device or resource busy
|
||||
#define EEXIST 17 // File exists
|
||||
#define EXDEV 18 // Invalid cross-device link
|
||||
@ -25,6 +26,7 @@
|
||||
#define ENFILE 23 // Too many open files in system
|
||||
#define EMFILE 24 // Too many open files
|
||||
#define ENOTTY 25 // Inappropriate ioctl for device
|
||||
#define ETXTBSY 26 // Text file busy
|
||||
#define EFBIG 27 // File too large
|
||||
#define ENOSPC 28 // No space left on device
|
||||
#define ESPIPE 29 // Illegal seek
|
||||
|
@ -19,6 +19,7 @@ const char* error_string(int error)
|
||||
case ENOMEM: return "Cannot allocate memory";
|
||||
case EACCES: return "Permission denied";
|
||||
case EFAULT: return "Bad address";
|
||||
case ENOTBLK: return "Block device required";
|
||||
case EBUSY: return "Device or resource busy";
|
||||
case EEXIST: return "File exists";
|
||||
case EXDEV: return "Invalid cross-device link";
|
||||
@ -29,6 +30,7 @@ const char* error_string(int error)
|
||||
case ENFILE: return "Too many open files in system";
|
||||
case EMFILE: return "Too many open files";
|
||||
case ENOTTY: return "Inappropriate ioctl for device";
|
||||
case ETXTBSY: return "Text file busy";
|
||||
case EFBIG: return "File too large";
|
||||
case ENOSPC: return "No space left on device";
|
||||
case ESPIPE: return "Illegal seek";
|
||||
|
Loading…
Reference in New Issue
Block a user