From d559c50a98e65ce889411b46ab108b392907e0f0 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Tue, 24 Sep 2024 09:51:37 -0600 Subject: wip 9p --- 3rd-party/linux-errno.txt | 264 +++++++++++++++++++++--------------------- 3rd-party/linux-errno.txt.gen | 14 +++ 2 files changed, 146 insertions(+), 132 deletions(-) create mode 100755 3rd-party/linux-errno.txt.gen (limited to '3rd-party') diff --git a/3rd-party/linux-errno.txt b/3rd-party/linux-errno.txt index 34b297d..b44da96 100644 --- a/3rd-party/linux-errno.txt +++ b/3rd-party/linux-errno.txt @@ -1,132 +1,132 @@ -# Generated from linux.git v6.7. DO NOT EDIT! -1 EPERM -2 ENOENT -3 ESRCH -4 EINTR -5 EIO -6 ENXIO -7 E2BIG -8 ENOEXEC -9 EBADF -10 ECHILD -11 EAGAIN -12 ENOMEM -13 EACCES -14 EFAULT -15 ENOTBLK -16 EBUSY -17 EEXIST -18 EXDEV -19 ENODEV -20 ENOTDIR -21 EISDIR -22 EINVAL -23 ENFILE -24 EMFILE -25 ENOTTY -26 ETXTBSY -27 EFBIG -28 ENOSPC -29 ESPIPE -30 EROFS -31 EMLINK -32 EPIPE -33 EDOM -34 ERANGE -35 EDEADLK -36 ENAMETOOLONG -37 ENOLCK -38 ENOSYS -39 ENOTEMPTY -40 ELOOP -42 ENOMSG -43 EIDRM -44 ECHRNG -45 EL2NSYNC -46 EL3HLT -47 EL3RST -48 ELNRNG -49 EUNATCH -50 ENOCSI -51 EL2HLT -52 EBADE -53 EBADR -54 EXFULL -55 ENOANO -56 EBADRQC -57 EBADSLT -59 EBFONT -60 ENOSTR -61 ENODATA -62 ETIME -63 ENOSR -64 ENONET -65 ENOPKG -66 EREMOTE -67 ENOLINK -68 EADV -69 ESRMNT -70 ECOMM -71 EPROTO -72 EMULTIHOP -73 EDOTDOT -74 EBADMSG -75 EOVERFLOW -76 ENOTUNIQ -77 EBADFD -78 EREMCHG -79 ELIBACC -80 ELIBBAD -81 ELIBSCN -82 ELIBMAX -83 ELIBEXEC -84 EILSEQ -85 ERESTART -86 ESTRPIPE -87 EUSERS -88 ENOTSOCK -89 EDESTADDRREQ -90 EMSGSIZE -91 EPROTOTYPE -92 ENOPROTOOPT -93 EPROTONOSUPPORT -94 ESOCKTNOSUPPORT -95 EOPNOTSUPP -96 EPFNOSUPPORT -97 EAFNOSUPPORT -98 EADDRINUSE -99 EADDRNOTAVAIL -100 ENETDOWN -101 ENETUNREACH -102 ENETRESET -103 ECONNABORTED -104 ECONNRESET -105 ENOBUFS -106 EISCONN -107 ENOTCONN -108 ESHUTDOWN -109 ETOOMANYREFS -110 ETIMEDOUT -111 ECONNREFUSED -112 EHOSTDOWN -113 EHOSTUNREACH -114 EALREADY -115 EINPROGRESS -116 ESTALE -117 EUCLEAN -118 ENOTNAM -119 ENAVAIL -120 EISNAM -121 EREMOTEIO -122 EDQUOT -123 ENOMEDIUM -124 EMEDIUMTYPE -125 ECANCELED -126 ENOKEY -127 EKEYEXPIRED -128 EKEYREVOKED -129 EKEYREJECTED -130 EOWNERDEAD -131 ENOTRECOVERABLE -132 ERFKILL -133 EHWPOISON +# 3rd-party/linux-errno.txt - Generated from linux.git v6.7. DO NOT EDIT! +1 EPERM Operation not permitted +2 ENOENT No such file or directory +3 ESRCH No such process +4 EINTR Interrupted system call +5 EIO I/O error +6 ENXIO No such device or address +7 E2BIG Argument list too long +8 ENOEXEC Exec format error +9 EBADF Bad file number +10 ECHILD No child processes +11 EAGAIN Try again +12 ENOMEM Out of memory +13 EACCES Permission denied +14 EFAULT Bad address +15 ENOTBLK Block device required +16 EBUSY Device or resource busy +17 EEXIST File exists +18 EXDEV Cross-device link +19 ENODEV No such device +20 ENOTDIR Not a directory +21 EISDIR Is a directory +22 EINVAL Invalid argument +23 ENFILE File table overflow +24 EMFILE Too many open files +25 ENOTTY Not a typewriter +26 ETXTBSY Text file busy +27 EFBIG File too large +28 ENOSPC No space left on device +29 ESPIPE Illegal seek +30 EROFS Read-only file system +31 EMLINK Too many links +32 EPIPE Broken pipe +33 EDOM Math argument out of domain of func +34 ERANGE Math result not representable +35 EDEADLK Resource deadlock would occur +36 ENAMETOOLONG File name too long +37 ENOLCK No record locks available +38 ENOSYS Invalid system call number +39 ENOTEMPTY Directory not empty +40 ELOOP Too many symbolic links encountered +42 ENOMSG No message of desired type +43 EIDRM Identifier removed +44 ECHRNG Channel number out of range +45 EL2NSYNC Level 2 not synchronized +46 EL3HLT Level 3 halted +47 EL3RST Level 3 reset +48 ELNRNG Link number out of range +49 EUNATCH Protocol driver not attached +50 ENOCSI No CSI structure available +51 EL2HLT Level 2 halted +52 EBADE Invalid exchange +53 EBADR Invalid request descriptor +54 EXFULL Exchange full +55 ENOANO No anode +56 EBADRQC Invalid request code +57 EBADSLT Invalid slot +59 EBFONT Bad font file format +60 ENOSTR Device not a stream +61 ENODATA No data available +62 ETIME Timer expired +63 ENOSR Out of streams resources +64 ENONET Machine is not on the network +65 ENOPKG Package not installed +66 EREMOTE Object is remote +67 ENOLINK Link has been severed +68 EADV Advertise error +69 ESRMNT Srmount error +70 ECOMM Communication error on send +71 EPROTO Protocol error +72 EMULTIHOP Multihop attempted +73 EDOTDOT RFS specific error +74 EBADMSG Not a data message +75 EOVERFLOW Value too large for defined data type +76 ENOTUNIQ Name not unique on network +77 EBADFD File descriptor in bad state +78 EREMCHG Remote address changed +79 ELIBACC Can not access a needed shared library +80 ELIBBAD Accessing a corrupted shared library +81 ELIBSCN .lib section in a.out corrupted +82 ELIBMAX Attempting to link in too many shared libraries +83 ELIBEXEC Cannot exec a shared library directly +84 EILSEQ Illegal byte sequence +85 ERESTART Interrupted system call should be restarted +86 ESTRPIPE Streams pipe error +87 EUSERS Too many users +88 ENOTSOCK Socket operation on non-socket +89 EDESTADDRREQ Destination address required +90 EMSGSIZE Message too long +91 EPROTOTYPE Protocol wrong type for socket +92 ENOPROTOOPT Protocol not available +93 EPROTONOSUPPORT Protocol not supported +94 ESOCKTNOSUPPORT Socket type not supported +95 EOPNOTSUPP Operation not supported on transport endpoint +96 EPFNOSUPPORT Protocol family not supported +97 EAFNOSUPPORT Address family not supported by protocol +98 EADDRINUSE Address already in use +99 EADDRNOTAVAIL Cannot assign requested address +100 ENETDOWN Network is down +101 ENETUNREACH Network is unreachable +102 ENETRESET Network dropped connection because of reset +103 ECONNABORTED Software caused connection abort +104 ECONNRESET Connection reset by peer +105 ENOBUFS No buffer space available +106 EISCONN Transport endpoint is already connected +107 ENOTCONN Transport endpoint is not connected +108 ESHUTDOWN Cannot send after transport endpoint shutdown +109 ETOOMANYREFS Too many references: cannot splice +110 ETIMEDOUT Connection timed out +111 ECONNREFUSED Connection refused +112 EHOSTDOWN Host is down +113 EHOSTUNREACH No route to host +114 EALREADY Operation already in progress +115 EINPROGRESS Operation now in progress +116 ESTALE Stale file handle +117 EUCLEAN Structure needs cleaning +118 ENOTNAM Not a XENIX named type file +119 ENAVAIL No XENIX semaphores available +120 EISNAM Is a named type file +121 EREMOTEIO Remote I/O error +122 EDQUOT Quota exceeded +123 ENOMEDIUM No medium found +124 EMEDIUMTYPE Wrong medium type +125 ECANCELED Operation Canceled +126 ENOKEY Required key not available +127 EKEYEXPIRED Key has expired +128 EKEYREVOKED Key has been revoked +129 EKEYREJECTED Key was rejected by service +130 EOWNERDEAD Owner died +131 ENOTRECOVERABLE State not recoverable +132 ERFKILL Operation not possible due to RF-kill +133 EHWPOISON Memory page has hardware error diff --git a/3rd-party/linux-errno.txt.gen b/3rd-party/linux-errno.txt.gen new file mode 100755 index 0000000..b03a67e --- /dev/null +++ b/3rd-party/linux-errno.txt.gen @@ -0,0 +1,14 @@ +#!/bin/sh +# 3rd-party/linux-errno.txt.gen - Generate a listing of Linux kernel errnos +# +# Copyright (C) 2024 Luke T. Shumaker +# SPDX-Licence-Identifier: AGPL-3.0-or-later + +set -e +( + cd "$1" + echo "# ${0%.gen} - Generated from linux.git $(git describe). DO NOT EDIT!" + git ls-files include/uapi/ | grep errno | + xargs sed -nE 's,#\s*define\s+(E[A-Z0-9]+)\s+([0-9]+)\s+/\* (.*) \*/,\2 \1 \3,p' | + sort --numeric-sort +) >"${0%.gen}" -- cgit v1.2.3-2-g168b