Add some more errno definitions
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2022-12-18 18:09:52 +01:00
parent cda0d49a4e
commit a08310ff5e
Signed by: apio
GPG Key ID: B8A7D06E42258954
2 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,7 @@
#define ENOMEM 12 // Cannot allocate memory #define ENOMEM 12 // Cannot allocate memory
#define EACCES 13 // Permission denied #define EACCES 13 // Permission denied
#define EFAULT 14 // Bad address #define EFAULT 14 // Bad address
#define ENOTBLK 15 // Block device required
#define EBUSY 16 // Device or resource busy #define EBUSY 16 // Device or resource busy
#define EEXIST 17 // File exists #define EEXIST 17 // File exists
#define EXDEV 18 // Invalid cross-device link #define EXDEV 18 // Invalid cross-device link
@ -25,6 +26,7 @@
#define ENFILE 23 // Too many open files in system #define ENFILE 23 // Too many open files in system
#define EMFILE 24 // Too many open files #define EMFILE 24 // Too many open files
#define ENOTTY 25 // Inappropriate ioctl for device #define ENOTTY 25 // Inappropriate ioctl for device
#define ETXTBSY 26 // Text file busy
#define EFBIG 27 // File too large #define EFBIG 27 // File too large
#define ENOSPC 28 // No space left on device #define ENOSPC 28 // No space left on device
#define ESPIPE 29 // Illegal seek #define ESPIPE 29 // Illegal seek

View File

@ -19,6 +19,7 @@ const char* error_string(int error)
case ENOMEM: return "Cannot allocate memory"; case ENOMEM: return "Cannot allocate memory";
case EACCES: return "Permission denied"; case EACCES: return "Permission denied";
case EFAULT: return "Bad address"; case EFAULT: return "Bad address";
case ENOTBLK: return "Block device required";
case EBUSY: return "Device or resource busy"; case EBUSY: return "Device or resource busy";
case EEXIST: return "File exists"; case EEXIST: return "File exists";
case EXDEV: return "Invalid cross-device link"; 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 ENFILE: return "Too many open files in system";
case EMFILE: return "Too many open files"; case EMFILE: return "Too many open files";
case ENOTTY: return "Inappropriate ioctl for device"; case ENOTTY: return "Inappropriate ioctl for device";
case ETXTBSY: return "Text file busy";
case EFBIG: return "File too large"; case EFBIG: return "File too large";
case ENOSPC: return "No space left on device"; case ENOSPC: return "No space left on device";
case ESPIPE: return "Illegal seek"; case ESPIPE: return "Illegal seek";