File: errors.lua

package info (click to toggle)
lua-ljsyscall 0.12-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,732 kB
  • sloc: ansic: 434; sh: 59; makefile: 3
file content (102 lines) | stat: -rw-r--r-- 3,536 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
-- OpenBSD error messages

local require = require

local abi = require "syscall.abi"

local errors = {
  PERM = "Operation not permitted",
  NOENT = "No such file or directory",
  SRCH = "No such process",
  INTR = "Interrupted system call",
  IO = "Input/output error",
  NXIO = "Device not configured",
  ["2BIG"] = "Argument list too long",
  NOEXEC = "Exec format error",
  BADF = "Bad file descriptor",
  CHILD = "No child processes",
  DEADLK = "Resource deadlock avoided",
  NOMEM = "Cannot allocate memory",
  ACCES = "Permission denied",
  FAULT = "Bad address",
  NOTBLK = "Block device required",
  BUSY = "Resource busy",
  EXIST = "File exists",
  XDEV = "Cross-device link",
  NODEV = "Operation not supported by device",
  NOTDIR = "Not a directory",
  ISDIR = "Is a directory",
  INVAL = "Invalid argument",
  NFILE = "Too many open files in system",
  MFILE = "Too many open files",
  NOTTY = "Inappropriate ioctl for device",
  TXTBSY = "Text file busy",
  FBIG = "File too large",
  NOSPC = "No space left on device",
  SPIPE = "Illegal seek",
  ROFS = "Read-only file system",
  MLINK = "Too many links",
  PIPE = "Broken pipe",
  DOM = "Numerical argument out of domain",
  RANGE = "Result too large",
  AGAIN = "Resource temporarily unavailable",
  INPROGRESS = "Operation now in progress",
  ALREADY = "Operation already in progress",
  NOTSOCK = "Socket operation on non-socket",
  DESTADDRREQ = "Destination address required",
  MSGSIZE = "Message too long",
  PROTOTYPE = "Protocol wrong type for socket",
  NOPROTOOPT = "Protocol not available",
  PROTONOSUPPORT = "Protocol not supported",
  SOCKTNOSUPPORT = "Socket type not supported",
  OPNOTSUPP = "Operation not supported",
  PFNOSUPPORT = "Protocol family not supported",
  AFNOSUPPORT = "Address family not supported by protocol family",
  ADDRINUSE = "Address already in use",
  ADDRNOTAVAIL = "Can't assign requested address",
  NETDOWN = "Network is down",
  NETUNREACH = "Network is unreachable",
  NETRESET = "Network dropped connection on reset",
  CONNABORTED = "Software caused connection abort",
  CONNRESET = "Connection reset by peer",
  NOBUFS = "No buffer space available",
  ISCONN = "Socket is already connected",
  NOTCONN = "Socket is not connected",
  SHUTDOWN = "Can't send after socket shutdown",
  TOOMANYREFS = "Too many references: can't splice",
  TIMEDOUT = "Operation timed out",
  CONNREFUSED = "Connection refused",
  LOOP = "Too many levels of symbolic links",
  NAMETOOLONG = "File name too long",
  HOSTDOWN = "Host is down",
  HOSTUNREACH = "No route to host",
  NOTEMPTY = "Directory not empty",
  PROCLIM = "Too many processes",
  USERS = "Too many users",
  DQUOT = "Disc quota exceeded",
  STALE = "Stale NFS file handle",
  REMOTE = "Too many levels of remote in path",
  BADRPC = "RPC struct is bad",
  RPCMISMATCH = "RPC version wrong",
  PROGUNAVAIL = "RPC prog. not avail",
  PROGMISMATCH = "Program version wrong",
  PROCUNAVAIL = "Bad procedure for program",
  NOLCK = "No locks available",
  NOSYS = "Function not implemented",
  FTYPE = "Inappropriate file type or format",
  AUTH = "Authentication error",
  NEEDAUTH = "Need authenticator",
  IPSEC = "IPsec processing failure",
  NOATTR = "Attribute not found",
  ILSEQ = "Illegal byte sequence",
  NOMEDIUM = "No medium found",
  MEDIUMTYPE = "Wrong Medium Type",
  OVERFLOW = "Conversion overflow",
  CANCELED = "Operation canceled",
  IDRM = "Identifier removed",
  NOMSG = "No message of desired type",
  NOTSUP = "Not supported",
}

return errors