From 59d87ccc99f431da06a0ffab0d3e702d9ef82f48 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Fri, 19 Nov 2021 05:44:21 -0800 Subject: chore: make dependence on static syscalls explicit --- sys/linux/src/errno.inc.h | 89 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 sys/linux/src/errno.inc.h (limited to 'sys/linux/src/errno.inc.h') diff --git a/sys/linux/src/errno.inc.h b/sys/linux/src/errno.inc.h new file mode 100644 index 0000000..58ee427 --- /dev/null +++ b/sys/linux/src/errno.inc.h @@ -0,0 +1,89 @@ +E(0, "no error information") +E(sys·ErrorBadWideChar, "illegal byte sequence") +E(sys·ErrorBadDomain, "domain error") +E(sys·ErrorBadResult, "result not representable") +E(sys·ErrorNotTTY, "not a tty") +E(sys·ErrorAccess, "permission denied") +E(sys·ErrorNotPermit, "operation not permitted") +E(sys·ErrorNoEntry, "no such file or directory") +E(sys·ErrorNoProc, "no such process") +E(sys·ErrorExists, "file exists") +E(sys·ErrorOverflow, "value too large for data type") +E(sys·ErrorNoSpace, "no space left on device") +E(sys·ErrorNoMemory, "out of memory") +E(sys·ErrorBusy, "resource busy") +E(sys·ErrorInterrupt, "interrupted system call") +E(sys·ErrorAgain, "resource temporarily unavailable") +E(sys·ErrorNoSeek, "invalid seek") +E(sys·ErrorExDevice, "cross-device link") +E(sys·ErrorReadOnly, "read-only file system") +E(sys·ErrorNotEmptyDir, "directory not empty") +E(sys·ErrorResetConnect, "connection reset by peer") +E(sys·ErrorTimedOut, "operation timed out") +E(sys·ErrorRefuseConnect, "connection refused") +E(sys·ErrorHostDown, "host is down") +E(sys·ErrorHostHang, "host is unreachable") +E(sys·ErrorAddrInUse, "address in use") +E(sys·ErrorBadPipe, "broken pipe") +E(sys·ErrorIO, "i/o error") +E(sys·ErrorNoDevAddr, "no such device or address") +E(sys·ErrorNotBlk, "block device required") +E(sys·ErrorNoDevice, "no such device") +E(sys·ErrorNotDir, "not a directory") +E(sys·ErrorIsDir, "is a directory") +E(sys·ErrorTxtBusy, "text file busy") +E(sys·ErrorExecFmt, "exec format error") +E(sys·ErrorBadArg, "invalid argument") +E(sys·ErrorArgLen, "argument list too long") +E(sys·ErrorLinkLoop, "symbolic link loop") +E(sys·ErrorNameLen, "filename too long") +E(sys·ErrorNoFiles, "too many open files in system") +E(sys·ErrorNoFd, "no file descriptors available") +E(sys·ErrorBadFd, "bad file descriptor") +E(sys·ErrorNoChild, "no child process") +E(sys·ErrorBadAddr, "bad address") +E(sys·ErrorBigFile, "file too large") +E(sys·ErrorNoLink, "too many links") +E(sys·ErrorNoLock, "no locks available") +E(sys·ErrorDeadlock, "resource deadlock would occur") +E(sys·ErrorNoRecover, "state not recoverable") +E(sys·ErrorOwnerDie, "previous owner died") +E(sys·ErrorCancel, "operation canceled") +E(sys·ErrorNoSyscall, "function not implemented") +E(sys·ErrorNoMsg, "no message of desired type") +E(sys·ErrorNoIdent, "identifier removed") +E(sys·ErrorNoStr, "device not a stream") +E(sys·ErrorNoData, "no data available") +E(sys·ErrorTimeout, "device timeout") +E(sys·ErrorNoStream, "out of streams resources") +E(sys·ErrorDeadLink, "link has been severed") +E(sys·ErrorProtocol, "protocol error") +E(sys·ErrorBadMsg, "bad message") +E(sys·ErrorBadFdState, "file descriptor in bad state") +E(sys·ErrorNotSocket, "not a socket") +E(sys·ErrorNeedDstAddr, "destination address required") +E(sys·ErrorMsgLen, "message too large") +E(sys·ErrorBadProtocol, "protocol wrong type for socket") +E(sys·ErrorNoProtocol, "protocol not available") +E(sys·ErrorNoProtocolSupport, "protocol not supported") +E(sys·ErrorNoSocketSupport, "socket type not supported") +E(sys·ErrorNoSupport, "not supported") +E(sys·ErrorNoPFSupport, "protocol family not supported") +E(sys·ErrorNoAFSupport, "address family not supported by protocol") +E(sys·ErrorAddrNotAvail, "address not available") +E(sys·ErrorNetDown, "network is down") +E(sys·ErrorNetHang, "network unreachable") +E(sys·ErrorNetReset, "connection reset by network") +E(sys·ErrorAbortConnect, "connection aborted") +E(sys·ErrorNoBuffer, "no buffer space available") +E(sys·ErrorIsConnect, "socket is connected") +E(sys·ErrorNotConnect, "socket not connected") +E(sys·ErrorShutdown, "cannot send after socket shutdown") +E(sys·ErrorAlreadyConnect, "operation already in progress") +E(sys·ErrorInProgress, "operation in progress") +E(sys·ErrorStale, "stale file handle") +E(sys·ErrorRemoteIO, "remote i/o error") +E(sys·ErrorDiskQuota, "quota exceeded") +E(sys·ErrorNoMedium, "no medium found") +E(sys·ErrorBadMedium, "wrong medium type") +E(sys·ErrorMultihop, "multihop attempted") -- cgit v1.2.1