diff options
Diffstat (limited to 'lib9p/core_include')
-rw-r--r-- | lib9p/core_include/lib9p/_core_generated.h | 133 | ||||
-rw-r--r-- | lib9p/core_include/lib9p/core.h | 1 | ||||
-rw-r--r-- | lib9p/core_include/lib9p/linux-errno.h | 139 | ||||
-rwxr-xr-x | lib9p/core_include/lib9p/linux-errno.h.gen | 38 |
4 files changed, 132 insertions, 179 deletions
diff --git a/lib9p/core_include/lib9p/_core_generated.h b/lib9p/core_include/lib9p/_core_generated.h index 33514b9..68eb636 100644 --- a/lib9p/core_include/lib9p/_core_generated.h +++ b/lib9p/core_include/lib9p/_core_generated.h @@ -271,7 +271,138 @@ LO_IMPLEMENTATION_H(fmt_formatter, lib9p_nuid_t, lib9p_nuid); /* size = 4 ; max_iov = 1 ; max_copy = 4 */ typedef uint32_t lib9p_errno_t; LO_IMPLEMENTATION_H(fmt_formatter, lib9p_errno_t, lib9p_errno); -#define LIB9P_ERRNO_NOERROR ((lib9p_errno_t)(0)) +#define LIB9P_ERRNO_NOERROR ((lib9p_errno_t)(0)) +#define LIB9P_ERRNO_L_EPERM ((lib9p_errno_t)(1)) +#define LIB9P_ERRNO_L_ENOENT ((lib9p_errno_t)(2)) +#define LIB9P_ERRNO_L_ESRCH ((lib9p_errno_t)(3)) +#define LIB9P_ERRNO_L_EINTR ((lib9p_errno_t)(4)) +#define LIB9P_ERRNO_L_EIO ((lib9p_errno_t)(5)) +#define LIB9P_ERRNO_L_ENXIO ((lib9p_errno_t)(6)) +#define LIB9P_ERRNO_L_E2BIG ((lib9p_errno_t)(7)) +#define LIB9P_ERRNO_L_ENOEXEC ((lib9p_errno_t)(8)) +#define LIB9P_ERRNO_L_EBADF ((lib9p_errno_t)(9)) +#define LIB9P_ERRNO_L_ECHILD ((lib9p_errno_t)(10)) +#define LIB9P_ERRNO_L_EAGAIN ((lib9p_errno_t)(11)) +#define LIB9P_ERRNO_L_ENOMEM ((lib9p_errno_t)(12)) +#define LIB9P_ERRNO_L_EACCES ((lib9p_errno_t)(13)) +#define LIB9P_ERRNO_L_EFAULT ((lib9p_errno_t)(14)) +#define LIB9P_ERRNO_L_ENOTBLK ((lib9p_errno_t)(15)) +#define LIB9P_ERRNO_L_EBUSY ((lib9p_errno_t)(16)) +#define LIB9P_ERRNO_L_EEXIST ((lib9p_errno_t)(17)) +#define LIB9P_ERRNO_L_EXDEV ((lib9p_errno_t)(18)) +#define LIB9P_ERRNO_L_ENODEV ((lib9p_errno_t)(19)) +#define LIB9P_ERRNO_L_ENOTDIR ((lib9p_errno_t)(20)) +#define LIB9P_ERRNO_L_EISDIR ((lib9p_errno_t)(21)) +#define LIB9P_ERRNO_L_EINVAL ((lib9p_errno_t)(22)) +#define LIB9P_ERRNO_L_ENFILE ((lib9p_errno_t)(23)) +#define LIB9P_ERRNO_L_EMFILE ((lib9p_errno_t)(24)) +#define LIB9P_ERRNO_L_ENOTTY ((lib9p_errno_t)(25)) +#define LIB9P_ERRNO_L_ETXTBSY ((lib9p_errno_t)(26)) +#define LIB9P_ERRNO_L_EFBIG ((lib9p_errno_t)(27)) +#define LIB9P_ERRNO_L_ENOSPC ((lib9p_errno_t)(28)) +#define LIB9P_ERRNO_L_ESPIPE ((lib9p_errno_t)(29)) +#define LIB9P_ERRNO_L_EROFS ((lib9p_errno_t)(30)) +#define LIB9P_ERRNO_L_EMLINK ((lib9p_errno_t)(31)) +#define LIB9P_ERRNO_L_EPIPE ((lib9p_errno_t)(32)) +#define LIB9P_ERRNO_L_EDOM ((lib9p_errno_t)(33)) +#define LIB9P_ERRNO_L_ERANGE ((lib9p_errno_t)(34)) +#define LIB9P_ERRNO_L_EDEADLK ((lib9p_errno_t)(35)) +#define LIB9P_ERRNO_L_ENAMETOOLONG ((lib9p_errno_t)(36)) +#define LIB9P_ERRNO_L_ENOLCK ((lib9p_errno_t)(37)) +#define LIB9P_ERRNO_L_ENOSYS ((lib9p_errno_t)(38)) +#define LIB9P_ERRNO_L_ENOTEMPTY ((lib9p_errno_t)(39)) +#define LIB9P_ERRNO_L_ELOOP ((lib9p_errno_t)(40)) +#define LIB9P_ERRNO_L_ENOMSG ((lib9p_errno_t)(42)) +#define LIB9P_ERRNO_L_EIDRM ((lib9p_errno_t)(43)) +#define LIB9P_ERRNO_L_ECHRNG ((lib9p_errno_t)(44)) +#define LIB9P_ERRNO_L_EL2NSYNC ((lib9p_errno_t)(45)) +#define LIB9P_ERRNO_L_EL3HLT ((lib9p_errno_t)(46)) +#define LIB9P_ERRNO_L_EL3RST ((lib9p_errno_t)(47)) +#define LIB9P_ERRNO_L_ELNRNG ((lib9p_errno_t)(48)) +#define LIB9P_ERRNO_L_EUNATCH ((lib9p_errno_t)(49)) +#define LIB9P_ERRNO_L_ENOCSI ((lib9p_errno_t)(50)) +#define LIB9P_ERRNO_L_EL2HLT ((lib9p_errno_t)(51)) +#define LIB9P_ERRNO_L_EBADE ((lib9p_errno_t)(52)) +#define LIB9P_ERRNO_L_EBADR ((lib9p_errno_t)(53)) +#define LIB9P_ERRNO_L_EXFULL ((lib9p_errno_t)(54)) +#define LIB9P_ERRNO_L_ENOANO ((lib9p_errno_t)(55)) +#define LIB9P_ERRNO_L_EBADRQC ((lib9p_errno_t)(56)) +#define LIB9P_ERRNO_L_EBADSLT ((lib9p_errno_t)(57)) +#define LIB9P_ERRNO_L_EBFONT ((lib9p_errno_t)(59)) +#define LIB9P_ERRNO_L_ENOSTR ((lib9p_errno_t)(60)) +#define LIB9P_ERRNO_L_ENODATA ((lib9p_errno_t)(61)) +#define LIB9P_ERRNO_L_ETIME ((lib9p_errno_t)(62)) +#define LIB9P_ERRNO_L_ENOSR ((lib9p_errno_t)(63)) +#define LIB9P_ERRNO_L_ENONET ((lib9p_errno_t)(64)) +#define LIB9P_ERRNO_L_ENOPKG ((lib9p_errno_t)(65)) +#define LIB9P_ERRNO_L_EREMOTE ((lib9p_errno_t)(66)) +#define LIB9P_ERRNO_L_ENOLINK ((lib9p_errno_t)(67)) +#define LIB9P_ERRNO_L_EADV ((lib9p_errno_t)(68)) +#define LIB9P_ERRNO_L_ESRMNT ((lib9p_errno_t)(69)) +#define LIB9P_ERRNO_L_ECOMM ((lib9p_errno_t)(70)) +#define LIB9P_ERRNO_L_EPROTO ((lib9p_errno_t)(71)) +#define LIB9P_ERRNO_L_EMULTIHOP ((lib9p_errno_t)(72)) +#define LIB9P_ERRNO_L_EDOTDOT ((lib9p_errno_t)(73)) +#define LIB9P_ERRNO_L_EBADMSG ((lib9p_errno_t)(74)) +#define LIB9P_ERRNO_L_EOVERFLOW ((lib9p_errno_t)(75)) +#define LIB9P_ERRNO_L_ENOTUNIQ ((lib9p_errno_t)(76)) +#define LIB9P_ERRNO_L_EBADFD ((lib9p_errno_t)(77)) +#define LIB9P_ERRNO_L_EREMCHG ((lib9p_errno_t)(78)) +#define LIB9P_ERRNO_L_ELIBACC ((lib9p_errno_t)(79)) +#define LIB9P_ERRNO_L_ELIBBAD ((lib9p_errno_t)(80)) +#define LIB9P_ERRNO_L_ELIBSCN ((lib9p_errno_t)(81)) +#define LIB9P_ERRNO_L_ELIBMAX ((lib9p_errno_t)(82)) +#define LIB9P_ERRNO_L_ELIBEXEC ((lib9p_errno_t)(83)) +#define LIB9P_ERRNO_L_EILSEQ ((lib9p_errno_t)(84)) +#define LIB9P_ERRNO_L_ERESTART ((lib9p_errno_t)(85)) +#define LIB9P_ERRNO_L_ESTRPIPE ((lib9p_errno_t)(86)) +#define LIB9P_ERRNO_L_EUSERS ((lib9p_errno_t)(87)) +#define LIB9P_ERRNO_L_ENOTSOCK ((lib9p_errno_t)(88)) +#define LIB9P_ERRNO_L_EDESTADDRREQ ((lib9p_errno_t)(89)) +#define LIB9P_ERRNO_L_EMSGSIZE ((lib9p_errno_t)(90)) +#define LIB9P_ERRNO_L_EPROTOTYPE ((lib9p_errno_t)(91)) +#define LIB9P_ERRNO_L_ENOPROTOOPT ((lib9p_errno_t)(92)) +#define LIB9P_ERRNO_L_EPROTONOSUPPORT ((lib9p_errno_t)(93)) +#define LIB9P_ERRNO_L_ESOCKTNOSUPPORT ((lib9p_errno_t)(94)) +#define LIB9P_ERRNO_L_EOPNOTSUPP ((lib9p_errno_t)(95)) +#define LIB9P_ERRNO_L_EPFNOSUPPORT ((lib9p_errno_t)(96)) +#define LIB9P_ERRNO_L_EAFNOSUPPORT ((lib9p_errno_t)(97)) +#define LIB9P_ERRNO_L_EADDRINUSE ((lib9p_errno_t)(98)) +#define LIB9P_ERRNO_L_EADDRNOTAVAIL ((lib9p_errno_t)(99)) +#define LIB9P_ERRNO_L_ENETDOWN ((lib9p_errno_t)(100)) +#define LIB9P_ERRNO_L_ENETUNREACH ((lib9p_errno_t)(101)) +#define LIB9P_ERRNO_L_ENETRESET ((lib9p_errno_t)(102)) +#define LIB9P_ERRNO_L_ECONNABORTED ((lib9p_errno_t)(103)) +#define LIB9P_ERRNO_L_ECONNRESET ((lib9p_errno_t)(104)) +#define LIB9P_ERRNO_L_ENOBUFS ((lib9p_errno_t)(105)) +#define LIB9P_ERRNO_L_EISCONN ((lib9p_errno_t)(106)) +#define LIB9P_ERRNO_L_ENOTCONN ((lib9p_errno_t)(107)) +#define LIB9P_ERRNO_L_ESHUTDOWN ((lib9p_errno_t)(108)) +#define LIB9P_ERRNO_L_ETOOMANYREFS ((lib9p_errno_t)(109)) +#define LIB9P_ERRNO_L_ETIMEDOUT ((lib9p_errno_t)(110)) +#define LIB9P_ERRNO_L_ECONNREFUSED ((lib9p_errno_t)(111)) +#define LIB9P_ERRNO_L_EHOSTDOWN ((lib9p_errno_t)(112)) +#define LIB9P_ERRNO_L_EHOSTUNREACH ((lib9p_errno_t)(113)) +#define LIB9P_ERRNO_L_EALREADY ((lib9p_errno_t)(114)) +#define LIB9P_ERRNO_L_EINPROGRESS ((lib9p_errno_t)(115)) +#define LIB9P_ERRNO_L_ESTALE ((lib9p_errno_t)(116)) +#define LIB9P_ERRNO_L_EUCLEAN ((lib9p_errno_t)(117)) +#define LIB9P_ERRNO_L_ENOTNAM ((lib9p_errno_t)(118)) +#define LIB9P_ERRNO_L_ENAVAIL ((lib9p_errno_t)(119)) +#define LIB9P_ERRNO_L_EISNAM ((lib9p_errno_t)(120)) +#define LIB9P_ERRNO_L_EREMOTEIO ((lib9p_errno_t)(121)) +#define LIB9P_ERRNO_L_EDQUOT ((lib9p_errno_t)(122)) +#define LIB9P_ERRNO_L_ENOMEDIUM ((lib9p_errno_t)(123)) +#define LIB9P_ERRNO_L_EMEDIUMTYPE ((lib9p_errno_t)(124)) +#define LIB9P_ERRNO_L_ECANCELED ((lib9p_errno_t)(125)) +#define LIB9P_ERRNO_L_ENOKEY ((lib9p_errno_t)(126)) +#define LIB9P_ERRNO_L_EKEYEXPIRED ((lib9p_errno_t)(127)) +#define LIB9P_ERRNO_L_EKEYREVOKED ((lib9p_errno_t)(128)) +#define LIB9P_ERRNO_L_EKEYREJECTED ((lib9p_errno_t)(129)) +#define LIB9P_ERRNO_L_EOWNERDEAD ((lib9p_errno_t)(130)) +#define LIB9P_ERRNO_L_ENOTRECOVERABLE ((lib9p_errno_t)(131)) +#define LIB9P_ERRNO_L_ERFKILL ((lib9p_errno_t)(132)) +#define LIB9P_ERRNO_L_EHWPOISON ((lib9p_errno_t)(133)) #endif /* CONFIG_9P_ENABLE_9P2000_L || CONFIG_9P_ENABLE_9P2000_u */ #if CONFIG_9P_ENABLE_9P2000_L diff --git a/lib9p/core_include/lib9p/core.h b/lib9p/core_include/lib9p/core.h index ca779dd..ff822ed 100644 --- a/lib9p/core_include/lib9p/core.h +++ b/lib9p/core_include/lib9p/core.h @@ -12,7 +12,6 @@ #include <libmisc/assert.h> -#include <lib9p/linux-errno.h> #include <lib9p/_core_generated.h> #ifndef CONFIG_9P_MAX_ERR_SIZE diff --git a/lib9p/core_include/lib9p/linux-errno.h b/lib9p/core_include/lib9p/linux-errno.h deleted file mode 100644 index b42ba2b..0000000 --- a/lib9p/core_include/lib9p/linux-errno.h +++ /dev/null @@ -1,139 +0,0 @@ -/* lib9p/linux-errno.h - Generated by `lib9p/core_include/lib9p/linux-errno.h.gen 3rd-party/linux-errno.txt`. DO NOT EDIT! */ -/* 3rd-party/linux-errno.txt - Generated from lib9p/linux-errno.txt.gen and linux.git v6.14. DO NOT EDIT! */ - -#ifndef _LIB9P_LINUX_ERRNO_H_ -#define _LIB9P_LINUX_ERRNO_H_ - -#define LIB9P_ERRNO_L_EPERM 1 /* Operation not permitted */ -#define LIB9P_ERRNO_L_ENOENT 2 /* No such file or directory */ -#define LIB9P_ERRNO_L_ESRCH 3 /* No such process */ -#define LIB9P_ERRNO_L_EINTR 4 /* Interrupted system call */ -#define LIB9P_ERRNO_L_EIO 5 /* I/O error */ -#define LIB9P_ERRNO_L_ENXIO 6 /* No such device or address */ -#define LIB9P_ERRNO_L_E2BIG 7 /* Argument list too long */ -#define LIB9P_ERRNO_L_ENOEXEC 8 /* Exec format error */ -#define LIB9P_ERRNO_L_EBADF 9 /* Bad file number */ -#define LIB9P_ERRNO_L_ECHILD 10 /* No child processes */ -#define LIB9P_ERRNO_L_EAGAIN 11 /* Try again */ -#define LIB9P_ERRNO_L_ENOMEM 12 /* Out of memory */ -#define LIB9P_ERRNO_L_EACCES 13 /* Permission denied */ -#define LIB9P_ERRNO_L_EFAULT 14 /* Bad address */ -#define LIB9P_ERRNO_L_ENOTBLK 15 /* Block device required */ -#define LIB9P_ERRNO_L_EBUSY 16 /* Device or resource busy */ -#define LIB9P_ERRNO_L_EEXIST 17 /* File exists */ -#define LIB9P_ERRNO_L_EXDEV 18 /* Cross-device link */ -#define LIB9P_ERRNO_L_ENODEV 19 /* No such device */ -#define LIB9P_ERRNO_L_ENOTDIR 20 /* Not a directory */ -#define LIB9P_ERRNO_L_EISDIR 21 /* Is a directory */ -#define LIB9P_ERRNO_L_EINVAL 22 /* Invalid argument */ -#define LIB9P_ERRNO_L_ENFILE 23 /* File table overflow */ -#define LIB9P_ERRNO_L_EMFILE 24 /* Too many open files */ -#define LIB9P_ERRNO_L_ENOTTY 25 /* Not a typewriter */ -#define LIB9P_ERRNO_L_ETXTBSY 26 /* Text file busy */ -#define LIB9P_ERRNO_L_EFBIG 27 /* File too large */ -#define LIB9P_ERRNO_L_ENOSPC 28 /* No space left on device */ -#define LIB9P_ERRNO_L_ESPIPE 29 /* Illegal seek */ -#define LIB9P_ERRNO_L_EROFS 30 /* Read-only file system */ -#define LIB9P_ERRNO_L_EMLINK 31 /* Too many links */ -#define LIB9P_ERRNO_L_EPIPE 32 /* Broken pipe */ -#define LIB9P_ERRNO_L_EDOM 33 /* Math argument out of domain of func */ -#define LIB9P_ERRNO_L_ERANGE 34 /* Math result not representable */ -#define LIB9P_ERRNO_L_EDEADLK 35 /* Resource deadlock would occur */ -#define LIB9P_ERRNO_L_ENAMETOOLONG 36 /* File name too long */ -#define LIB9P_ERRNO_L_ENOLCK 37 /* No record locks available */ -#define LIB9P_ERRNO_L_ENOSYS 38 /* Invalid system call number */ -#define LIB9P_ERRNO_L_ENOTEMPTY 39 /* Directory not empty */ -#define LIB9P_ERRNO_L_ELOOP 40 /* Too many symbolic links encountered */ -#define LIB9P_ERRNO_L_ENOMSG 42 /* No message of desired type */ -#define LIB9P_ERRNO_L_EIDRM 43 /* Identifier removed */ -#define LIB9P_ERRNO_L_ECHRNG 44 /* Channel number out of range */ -#define LIB9P_ERRNO_L_EL2NSYNC 45 /* Level 2 not synchronized */ -#define LIB9P_ERRNO_L_EL3HLT 46 /* Level 3 halted */ -#define LIB9P_ERRNO_L_EL3RST 47 /* Level 3 reset */ -#define LIB9P_ERRNO_L_ELNRNG 48 /* Link number out of range */ -#define LIB9P_ERRNO_L_EUNATCH 49 /* Protocol driver not attached */ -#define LIB9P_ERRNO_L_ENOCSI 50 /* No CSI structure available */ -#define LIB9P_ERRNO_L_EL2HLT 51 /* Level 2 halted */ -#define LIB9P_ERRNO_L_EBADE 52 /* Invalid exchange */ -#define LIB9P_ERRNO_L_EBADR 53 /* Invalid request descriptor */ -#define LIB9P_ERRNO_L_EXFULL 54 /* Exchange full */ -#define LIB9P_ERRNO_L_ENOANO 55 /* No anode */ -#define LIB9P_ERRNO_L_EBADRQC 56 /* Invalid request code */ -#define LIB9P_ERRNO_L_EBADSLT 57 /* Invalid slot */ -#define LIB9P_ERRNO_L_EBFONT 59 /* Bad font file format */ -#define LIB9P_ERRNO_L_ENOSTR 60 /* Device not a stream */ -#define LIB9P_ERRNO_L_ENODATA 61 /* No data available */ -#define LIB9P_ERRNO_L_ETIME 62 /* Timer expired */ -#define LIB9P_ERRNO_L_ENOSR 63 /* Out of streams resources */ -#define LIB9P_ERRNO_L_ENONET 64 /* Machine is not on the network */ -#define LIB9P_ERRNO_L_ENOPKG 65 /* Package not installed */ -#define LIB9P_ERRNO_L_EREMOTE 66 /* Object is remote */ -#define LIB9P_ERRNO_L_ENOLINK 67 /* Link has been severed */ -#define LIB9P_ERRNO_L_EADV 68 /* Advertise error */ -#define LIB9P_ERRNO_L_ESRMNT 69 /* Srmount error */ -#define LIB9P_ERRNO_L_ECOMM 70 /* Communication error on send */ -#define LIB9P_ERRNO_L_EPROTO 71 /* Protocol error */ -#define LIB9P_ERRNO_L_EMULTIHOP 72 /* Multihop attempted */ -#define LIB9P_ERRNO_L_EDOTDOT 73 /* RFS specific error */ -#define LIB9P_ERRNO_L_EBADMSG 74 /* Not a data message */ -#define LIB9P_ERRNO_L_EOVERFLOW 75 /* Value too large for defined data type */ -#define LIB9P_ERRNO_L_ENOTUNIQ 76 /* Name not unique on network */ -#define LIB9P_ERRNO_L_EBADFD 77 /* File descriptor in bad state */ -#define LIB9P_ERRNO_L_EREMCHG 78 /* Remote address changed */ -#define LIB9P_ERRNO_L_ELIBACC 79 /* Can not access a needed shared library */ -#define LIB9P_ERRNO_L_ELIBBAD 80 /* Accessing a corrupted shared library */ -#define LIB9P_ERRNO_L_ELIBSCN 81 /* .lib section in a.out corrupted */ -#define LIB9P_ERRNO_L_ELIBMAX 82 /* Attempting to link in too many shared libraries */ -#define LIB9P_ERRNO_L_ELIBEXEC 83 /* Cannot exec a shared library directly */ -#define LIB9P_ERRNO_L_EILSEQ 84 /* Illegal byte sequence */ -#define LIB9P_ERRNO_L_ERESTART 85 /* Interrupted system call should be restarted */ -#define LIB9P_ERRNO_L_ESTRPIPE 86 /* Streams pipe error */ -#define LIB9P_ERRNO_L_EUSERS 87 /* Too many users */ -#define LIB9P_ERRNO_L_ENOTSOCK 88 /* Socket operation on non-socket */ -#define LIB9P_ERRNO_L_EDESTADDRREQ 89 /* Destination address required */ -#define LIB9P_ERRNO_L_EMSGSIZE 90 /* Message too long */ -#define LIB9P_ERRNO_L_EPROTOTYPE 91 /* Protocol wrong type for socket */ -#define LIB9P_ERRNO_L_ENOPROTOOPT 92 /* Protocol not available */ -#define LIB9P_ERRNO_L_EPROTONOSUPPORT 93 /* Protocol not supported */ -#define LIB9P_ERRNO_L_ESOCKTNOSUPPORT 94 /* Socket type not supported */ -#define LIB9P_ERRNO_L_EOPNOTSUPP 95 /* Operation not supported on transport endpoint */ -#define LIB9P_ERRNO_L_EPFNOSUPPORT 96 /* Protocol family not supported */ -#define LIB9P_ERRNO_L_EAFNOSUPPORT 97 /* Address family not supported by protocol */ -#define LIB9P_ERRNO_L_EADDRINUSE 98 /* Address already in use */ -#define LIB9P_ERRNO_L_EADDRNOTAVAIL 99 /* Cannot assign requested address */ -#define LIB9P_ERRNO_L_ENETDOWN 100 /* Network is down */ -#define LIB9P_ERRNO_L_ENETUNREACH 101 /* Network is unreachable */ -#define LIB9P_ERRNO_L_ENETRESET 102 /* Network dropped connection because of reset */ -#define LIB9P_ERRNO_L_ECONNABORTED 103 /* Software caused connection abort */ -#define LIB9P_ERRNO_L_ECONNRESET 104 /* Connection reset by peer */ -#define LIB9P_ERRNO_L_ENOBUFS 105 /* No buffer space available */ -#define LIB9P_ERRNO_L_EISCONN 106 /* Transport endpoint is already connected */ -#define LIB9P_ERRNO_L_ENOTCONN 107 /* Transport endpoint is not connected */ -#define LIB9P_ERRNO_L_ESHUTDOWN 108 /* Cannot send after transport endpoint shutdown */ -#define LIB9P_ERRNO_L_ETOOMANYREFS 109 /* Too many references: cannot splice */ -#define LIB9P_ERRNO_L_ETIMEDOUT 110 /* Connection timed out */ -#define LIB9P_ERRNO_L_ECONNREFUSED 111 /* Connection refused */ -#define LIB9P_ERRNO_L_EHOSTDOWN 112 /* Host is down */ -#define LIB9P_ERRNO_L_EHOSTUNREACH 113 /* No route to host */ -#define LIB9P_ERRNO_L_EALREADY 114 /* Operation already in progress */ -#define LIB9P_ERRNO_L_EINPROGRESS 115 /* Operation now in progress */ -#define LIB9P_ERRNO_L_ESTALE 116 /* Stale file handle */ -#define LIB9P_ERRNO_L_EUCLEAN 117 /* Structure needs cleaning */ -#define LIB9P_ERRNO_L_ENOTNAM 118 /* Not a XENIX named type file */ -#define LIB9P_ERRNO_L_ENAVAIL 119 /* No XENIX semaphores available */ -#define LIB9P_ERRNO_L_EISNAM 120 /* Is a named type file */ -#define LIB9P_ERRNO_L_EREMOTEIO 121 /* Remote I/O error */ -#define LIB9P_ERRNO_L_EDQUOT 122 /* Quota exceeded */ -#define LIB9P_ERRNO_L_ENOMEDIUM 123 /* No medium found */ -#define LIB9P_ERRNO_L_EMEDIUMTYPE 124 /* Wrong medium type */ -#define LIB9P_ERRNO_L_ECANCELED 125 /* Operation Canceled */ -#define LIB9P_ERRNO_L_ENOKEY 126 /* Required key not available */ -#define LIB9P_ERRNO_L_EKEYEXPIRED 127 /* Key has expired */ -#define LIB9P_ERRNO_L_EKEYREVOKED 128 /* Key has been revoked */ -#define LIB9P_ERRNO_L_EKEYREJECTED 129 /* Key was rejected by service */ -#define LIB9P_ERRNO_L_EOWNERDEAD 130 /* Owner died */ -#define LIB9P_ERRNO_L_ENOTRECOVERABLE 131 /* State not recoverable */ -#define LIB9P_ERRNO_L_ERFKILL 132 /* Operation not possible due to RF-kill */ -#define LIB9P_ERRNO_L_EHWPOISON 133 /* Memory page has hardware error */ - -#endif /* _LIB9P_LINUX_ERRNO_H_ */ diff --git a/lib9p/core_include/lib9p/linux-errno.h.gen b/lib9p/core_include/lib9p/linux-errno.h.gen deleted file mode 100755 index afc8239..0000000 --- a/lib9p/core_include/lib9p/linux-errno.h.gen +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env python -# lib9p/linux-errno.h.gen - Generate a C header from a list of errno numbers -# -# Copyright (C) 2024-2025 Luke T. Shumaker <lukeshu@lukeshu.com> -# SPDX-License-Identifier: AGPL-3.0-or-later - -import sys - - -def print_errnos() -> None: - print( - f"/* lib9p/linux-errno.h - Generated by `{' '.join(sys.argv)}`. DO NOT EDIT! */" - ) - errnos: dict[str, tuple[int, str]] = {} - for txtlist in sys.argv[1:]: - with open(txtlist, "r", encoding="utf-8") as fh: - for line in fh: - if line.startswith("#"): - print(f"/* {line[1:].strip()} */") - continue - _num, name, desc = line.split(maxsplit=2) - num = int(_num) - desc = desc.strip() - errnos[name] = (num, desc) - print() - print("#ifndef _LIB9P_LINUX_ERRNO_H_") - print("#define _LIB9P_LINUX_ERRNO_H_") - print() - namelen = max(len(name) for name in errnos) - numlen = max(len(str(num)) for (num, desc) in errnos.values()) - for name, [num, msg] in errnos.items(): - print(f"#define LIB9P_ERRNO_L_{name:<{namelen}} {num:>{numlen}} /* {msg} */") - print() - print("#endif /* _LIB9P_LINUX_ERRNO_H_ */") - - -if __name__ == "__main__": - print_errnos() |