authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2019-09-26 18:07:39+02:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2019-09-26 18:07:39+02:00
loga94372231ca3c4daab3cf2bc54d2de135ecdd5e8
tree265edb29f69ad595b08f77795e230526d3653a8d
parentdfb4446d091b3db21d0ce953d76948788e7feb89

Errno changes for MIPS


5 files changed, 568 insertions(+), 430 deletions(-)

lib/std/os/bits/linux.zig+5-1
...@@ -3,7 +3,11 @@ const std = @import("../../std.zig");...@@ -3,7 +3,11 @@ const std = @import("../../std.zig");
3const maxInt = std.math.maxInt;3const maxInt = std.math.maxInt;
4usingnamespace @import("../bits.zig");4usingnamespace @import("../bits.zig");
55
6pub usingnamespace @import("linux/errno.zig");6pub usingnamespace switch (builtin.arch) {
7 .mips, .mipsel => @import("linux/errno-mips.zig"),
8 else => @import("linux/errno-generic.zig"),
9};
10
7pub usingnamespace switch (builtin.arch) {11pub usingnamespace switch (builtin.arch) {
8 .x86_64 => @import("linux/x86_64.zig"),12 .x86_64 => @import("linux/x86_64.zig"),
9 .aarch64 => @import("linux/arm64.zig"),13 .aarch64 => @import("linux/arm64.zig"),
lib/std/os/bits/linux/errno-generic.zig created+428
...@@ -0,0 +1,428 @@
1/// Operation not permitted
2pub const EPERM = 1;
3
4/// No such file or directory
5pub const ENOENT = 2;
6
7/// No such process
8pub const ESRCH = 3;
9
10/// Interrupted system call
11pub const EINTR = 4;
12
13/// I/O error
14pub const EIO = 5;
15
16/// No such device or address
17pub const ENXIO = 6;
18
19/// Arg list too long
20pub const E2BIG = 7;
21
22/// Exec format error
23pub const ENOEXEC = 8;
24
25/// Bad file number
26pub const EBADF = 9;
27
28/// No child processes
29pub const ECHILD = 10;
30
31/// Try again
32pub const EAGAIN = 11;
33
34/// Out of memory
35pub const ENOMEM = 12;
36
37/// Permission denied
38pub const EACCES = 13;
39
40/// Bad address
41pub const EFAULT = 14;
42
43/// Block device required
44pub const ENOTBLK = 15;
45
46/// Device or resource busy
47pub const EBUSY = 16;
48
49/// File exists
50pub const EEXIST = 17;
51
52/// Cross-device link
53pub const EXDEV = 18;
54
55/// No such device
56pub const ENODEV = 19;
57
58/// Not a directory
59pub const ENOTDIR = 20;
60
61/// Is a directory
62pub const EISDIR = 21;
63
64/// Invalid argument
65pub const EINVAL = 22;
66
67/// File table overflow
68pub const ENFILE = 23;
69
70/// Too many open files
71pub const EMFILE = 24;
72
73/// Not a typewriter
74pub const ENOTTY = 25;
75
76/// Text file busy
77pub const ETXTBSY = 26;
78
79/// File too large
80pub const EFBIG = 27;
81
82/// No space left on device
83pub const ENOSPC = 28;
84
85/// Illegal seek
86pub const ESPIPE = 29;
87
88/// Read-only file system
89pub const EROFS = 30;
90
91/// Too many links
92pub const EMLINK = 31;
93
94/// Broken pipe
95pub const EPIPE = 32;
96
97/// Math argument out of domain of func
98pub const EDOM = 33;
99
100/// Math result not representable
101pub const ERANGE = 34;
102
103/// Resource deadlock would occur
104pub const EDEADLK = 35;
105
106/// File name too long
107pub const ENAMETOOLONG = 36;
108
109/// No record locks available
110pub const ENOLCK = 37;
111
112/// Function not implemented
113pub const ENOSYS = 38;
114
115/// Directory not empty
116pub const ENOTEMPTY = 39;
117
118/// Too many symbolic links encountered
119pub const ELOOP = 40;
120
121/// Operation would block
122pub const EWOULDBLOCK = EAGAIN;
123
124/// No message of desired type
125pub const ENOMSG = 42;
126
127/// Identifier removed
128pub const EIDRM = 43;
129
130/// Channel number out of range
131pub const ECHRNG = 44;
132
133/// Level 2 not synchronized
134pub const EL2NSYNC = 45;
135
136/// Level 3 halted
137pub const EL3HLT = 46;
138
139/// Level 3 reset
140pub const EL3RST = 47;
141
142/// Link number out of range
143pub const ELNRNG = 48;
144
145/// Protocol driver not attached
146pub const EUNATCH = 49;
147
148/// No CSI structure available
149pub const ENOCSI = 50;
150
151/// Level 2 halted
152pub const EL2HLT = 51;
153
154/// Invalid exchange
155pub const EBADE = 52;
156
157/// Invalid request descriptor
158pub const EBADR = 53;
159
160/// Exchange full
161pub const EXFULL = 54;
162
163/// No anode
164pub const ENOANO = 55;
165
166/// Invalid request code
167pub const EBADRQC = 56;
168
169/// Invalid slot
170pub const EBADSLT = 57;
171
172/// Bad font file format
173pub const EBFONT = 59;
174
175/// Device not a stream
176pub const ENOSTR = 60;
177
178/// No data available
179pub const ENODATA = 61;
180
181/// Timer expired
182pub const ETIME = 62;
183
184/// Out of streams resources
185pub const ENOSR = 63;
186
187/// Machine is not on the network
188pub const ENONET = 64;
189
190/// Package not installed
191pub const ENOPKG = 65;
192
193/// Object is remote
194pub const EREMOTE = 66;
195
196/// Link has been severed
197pub const ENOLINK = 67;
198
199/// Advertise error
200pub const EADV = 68;
201
202/// Srmount error
203pub const ESRMNT = 69;
204
205/// Communication error on send
206pub const ECOMM = 70;
207
208/// Protocol error
209pub const EPROTO = 71;
210
211/// Multihop attempted
212pub const EMULTIHOP = 72;
213
214/// RFS specific error
215pub const EDOTDOT = 73;
216
217/// Not a data message
218pub const EBADMSG = 74;
219
220/// Value too large for defined data type
221pub const EOVERFLOW = 75;
222
223/// Name not unique on network
224pub const ENOTUNIQ = 76;
225
226/// File descriptor in bad state
227pub const EBADFD = 77;
228
229/// Remote address changed
230pub const EREMCHG = 78;
231
232/// Can not access a needed shared library
233pub const ELIBACC = 79;
234
235/// Accessing a corrupted shared library
236pub const ELIBBAD = 80;
237
238/// .lib section in a.out corrupted
239pub const ELIBSCN = 81;
240
241/// Attempting to link in too many shared libraries
242pub const ELIBMAX = 82;
243
244/// Cannot exec a shared library directly
245pub const ELIBEXEC = 83;
246
247/// Illegal byte sequence
248pub const EILSEQ = 84;
249
250/// Interrupted system call should be restarted
251pub const ERESTART = 85;
252
253/// Streams pipe error
254pub const ESTRPIPE = 86;
255
256/// Too many users
257pub const EUSERS = 87;
258
259/// Socket operation on non-socket
260pub const ENOTSOCK = 88;
261
262/// Destination address required
263pub const EDESTADDRREQ = 89;
264
265/// Message too long
266pub const EMSGSIZE = 90;
267
268/// Protocol wrong type for socket
269pub const EPROTOTYPE = 91;
270
271/// Protocol not available
272pub const ENOPROTOOPT = 92;
273
274/// Protocol not supported
275pub const EPROTONOSUPPORT = 93;
276
277/// Socket type not supported
278pub const ESOCKTNOSUPPORT = 94;
279
280/// Operation not supported on transport endpoint
281pub const EOPNOTSUPP = 95;
282pub const ENOTSUP = EOPNOTSUPP;
283
284/// Protocol family not supported
285pub const EPFNOSUPPORT = 96;
286
287/// Address family not supported by protocol
288pub const EAFNOSUPPORT = 97;
289
290/// Address already in use
291pub const EADDRINUSE = 98;
292
293/// Cannot assign requested address
294pub const EADDRNOTAVAIL = 99;
295
296/// Network is down
297pub const ENETDOWN = 100;
298
299/// Network is unreachable
300pub const ENETUNREACH = 101;
301
302/// Network dropped connection because of reset
303pub const ENETRESET = 102;
304
305/// Software caused connection abort
306pub const ECONNABORTED = 103;
307
308/// Connection reset by peer
309pub const ECONNRESET = 104;
310
311/// No buffer space available
312pub const ENOBUFS = 105;
313
314/// Transport endpoint is already connected
315pub const EISCONN = 106;
316
317/// Transport endpoint is not connected
318pub const ENOTCONN = 107;
319
320/// Cannot send after transport endpoint shutdown
321pub const ESHUTDOWN = 108;
322
323/// Too many references: cannot splice
324pub const ETOOMANYREFS = 109;
325
326/// Connection timed out
327pub const ETIMEDOUT = 110;
328
329/// Connection refused
330pub const ECONNREFUSED = 111;
331
332/// Host is down
333pub const EHOSTDOWN = 112;
334
335/// No route to host
336pub const EHOSTUNREACH = 113;
337
338/// Operation already in progress
339pub const EALREADY = 114;
340
341/// Operation now in progress
342pub const EINPROGRESS = 115;
343
344/// Stale NFS file handle
345pub const ESTALE = 116;
346
347/// Structure needs cleaning
348pub const EUCLEAN = 117;
349
350/// Not a XENIX named type file
351pub const ENOTNAM = 118;
352
353/// No XENIX semaphores available
354pub const ENAVAIL = 119;
355
356/// Is a named type file
357pub const EISNAM = 120;
358
359/// Remote I/O error
360pub const EREMOTEIO = 121;
361
362/// Quota exceeded
363pub const EDQUOT = 122;
364
365/// No medium found
366pub const ENOMEDIUM = 123;
367
368/// Wrong medium type
369pub const EMEDIUMTYPE = 124;
370
371// nameserver query return codes
372
373/// DNS server returned answer with no data
374pub const ENSROK = 0;
375
376/// DNS server returned answer with no data
377pub const ENSRNODATA = 160;
378
379/// DNS server claims query was misformatted
380pub const ENSRFORMERR = 161;
381
382/// DNS server returned general failure
383pub const ENSRSERVFAIL = 162;
384
385/// Domain name not found
386pub const ENSRNOTFOUND = 163;
387
388/// DNS server does not implement requested operation
389pub const ENSRNOTIMP = 164;
390
391/// DNS server refused query
392pub const ENSRREFUSED = 165;
393
394/// Misformatted DNS query
395pub const ENSRBADQUERY = 166;
396
397/// Misformatted domain name
398pub const ENSRBADNAME = 167;
399
400/// Unsupported address family
401pub const ENSRBADFAMILY = 168;
402
403/// Misformatted DNS reply
404pub const ENSRBADRESP = 169;
405
406/// Could not contact DNS servers
407pub const ENSRCONNREFUSED = 170;
408
409/// Timeout while contacting DNS servers
410pub const ENSRTIMEOUT = 171;
411
412/// End of file
413pub const ENSROF = 172;
414
415/// Error reading file
416pub const ENSRFILE = 173;
417
418/// Out of memory
419pub const ENSRNOMEM = 174;
420
421/// Application terminated lookup
422pub const ENSRDESTRUCTION = 175;
423
424/// Domain name is too long
425pub const ENSRQUERYDOMAINTOOLONG = 176;
426
427/// Domain name is too long
428pub const ENSRCNAMELOOP = 177;
lib/std/os/bits/linux/errno-mips.zig created+134
...@@ -0,0 +1,134 @@
1pub const EPERM = 1;
2pub const ENOENT = 2;
3pub const ESRCH = 3;
4pub const EINTR = 4;
5pub const EIO = 5;
6pub const ENXIO = 6;
7pub const E2BIG = 7;
8pub const ENOEXEC = 8;
9pub const EBADF = 9;
10pub const ECHILD = 10;
11pub const EAGAIN = 11;
12pub const ENOMEM = 12;
13pub const EACCES = 13;
14pub const EFAULT = 14;
15pub const ENOTBLK = 15;
16pub const EBUSY = 16;
17pub const EEXIST = 17;
18pub const EXDEV = 18;
19pub const ENODEV = 19;
20pub const ENOTDIR = 20;
21pub const EISDIR = 21;
22pub const EINVAL = 22;
23pub const ENFILE = 23;
24pub const EMFILE = 24;
25pub const ENOTTY = 25;
26pub const ETXTBSY = 26;
27pub const EFBIG = 27;
28pub const ENOSPC = 28;
29pub const ESPIPE = 29;
30pub const EROFS = 30;
31pub const EMLINK = 31;
32pub const EPIPE = 32;
33pub const EDOM = 33;
34pub const ERANGE = 34;
35pub const ENOMSG = 35;
36pub const EIDRM = 36;
37pub const ECHRNG = 37;
38pub const EL2NSYNC = 38;
39pub const EL3HLT = 39;
40pub const EL3RST = 40;
41pub const ELNRNG = 41;
42pub const EUNATCH = 42;
43pub const ENOCSI = 43;
44pub const EL2HLT = 44;
45pub const EDEADLK = 45;
46pub const ENOLCK = 46;
47pub const EBADE = 50;
48pub const EBADR = 51;
49pub const EXFULL = 52;
50pub const ENOANO = 53;
51pub const EBADRQC = 54;
52pub const EBADSLT = 55;
53pub const EDEADLOCK = 56;
54pub const EBFONT = 59;
55pub const ENOSTR = 60;
56pub const ENODATA = 61;
57pub const ETIME = 62;
58pub const ENOSR = 63;
59pub const ENONET = 64;
60pub const ENOPKG = 65;
61pub const EREMOTE = 66;
62pub const ENOLINK = 67;
63pub const EADV = 68;
64pub const ESRMNT = 69;
65pub const ECOMM = 70;
66pub const EPROTO = 71;
67pub const EDOTDOT = 73;
68pub const EMULTIHOP = 74;
69pub const EBADMSG = 77;
70pub const ENAMETOOLONG = 78;
71pub const EOVERFLOW = 79;
72pub const ENOTUNIQ = 80;
73pub const EBADFD = 81;
74pub const EREMCHG = 82;
75pub const ELIBACC = 83;
76pub const ELIBBAD = 84;
77pub const ELIBSCN = 85;
78pub const ELIBMAX = 86;
79pub const ELIBEXEC = 87;
80pub const EILSEQ = 88;
81pub const ENOSYS = 89;
82pub const ELOOP = 90;
83pub const ERESTART = 91;
84pub const ESTRPIPE = 92;
85pub const ENOTEMPTY = 93;
86pub const EUSERS = 94;
87pub const ENOTSOCK = 95;
88pub const EDESTADDRREQ = 96;
89pub const EMSGSIZE = 97;
90pub const EPROTOTYPE = 98;
91pub const ENOPROTOOPT = 99;
92pub const EPROTONOSUPPORT = 120;
93pub const ESOCKTNOSUPPORT = 121;
94pub const EOPNOTSUPP = 122;
95pub const ENOTSUP = EOPNOTSUPP;
96pub const EPFNOSUPPORT = 123;
97pub const EAFNOSUPPORT = 124;
98pub const EADDRINUSE = 125;
99pub const EADDRNOTAVAIL = 126;
100pub const ENETDOWN = 127;
101pub const ENETUNREACH = 128;
102pub const ENETRESET = 129;
103pub const ECONNABORTED = 130;
104pub const ECONNRESET = 131;
105pub const ENOBUFS = 132;
106pub const EISCONN = 133;
107pub const ENOTCONN = 134;
108pub const EUCLEAN = 135;
109pub const ENOTNAM = 137;
110pub const ENAVAIL = 138;
111pub const EISNAM = 139;
112pub const EREMOTEIO = 140;
113pub const ESHUTDOWN = 143;
114pub const ETOOMANYREFS = 144;
115pub const ETIMEDOUT = 145;
116pub const ECONNREFUSED = 146;
117pub const EHOSTDOWN = 147;
118pub const EHOSTUNREACH = 148;
119pub const EWOULDBLOCK = EAGAIN;
120pub const EALREADY = 149;
121pub const EINPROGRESS = 150;
122pub const ESTALE = 151;
123pub const ECANCELED = 158;
124pub const ENOMEDIUM = 159;
125pub const EMEDIUMTYPE = 160;
126pub const ENOKEY = 161;
127pub const EKEYEXPIRED = 162;
128pub const EKEYREVOKED = 163;
129pub const EKEYREJECTED = 164;
130pub const EOWNERDEAD = 165;
131pub const ENOTRECOVERABLE = 166;
132pub const ERFKILL = 167;
133pub const EHWPOISON = 168;
134pub const EDQUOT = 1133;
lib/std/os/bits/linux/errno.zig deleted-428
...@@ -1,428 +0,0 @@
1/// Operation not permitted
2pub const EPERM = 1;
3
4/// No such file or directory
5pub const ENOENT = 2;
6
7/// No such process
8pub const ESRCH = 3;
9
10/// Interrupted system call
11pub const EINTR = 4;
12
13/// I/O error
14pub const EIO = 5;
15
16/// No such device or address
17pub const ENXIO = 6;
18
19/// Arg list too long
20pub const E2BIG = 7;
21
22/// Exec format error
23pub const ENOEXEC = 8;
24
25/// Bad file number
26pub const EBADF = 9;
27
28/// No child processes
29pub const ECHILD = 10;
30
31/// Try again
32pub const EAGAIN = 11;
33
34/// Out of memory
35pub const ENOMEM = 12;
36
37/// Permission denied
38pub const EACCES = 13;
39
40/// Bad address
41pub const EFAULT = 14;
42
43/// Block device required
44pub const ENOTBLK = 15;
45
46/// Device or resource busy
47pub const EBUSY = 16;
48
49/// File exists
50pub const EEXIST = 17;
51
52/// Cross-device link
53pub const EXDEV = 18;
54
55/// No such device
56pub const ENODEV = 19;
57
58/// Not a directory
59pub const ENOTDIR = 20;
60
61/// Is a directory
62pub const EISDIR = 21;
63
64/// Invalid argument
65pub const EINVAL = 22;
66
67/// File table overflow
68pub const ENFILE = 23;
69
70/// Too many open files
71pub const EMFILE = 24;
72
73/// Not a typewriter
74pub const ENOTTY = 25;
75
76/// Text file busy
77pub const ETXTBSY = 26;
78
79/// File too large
80pub const EFBIG = 27;
81
82/// No space left on device
83pub const ENOSPC = 28;
84
85/// Illegal seek
86pub const ESPIPE = 29;
87
88/// Read-only file system
89pub const EROFS = 30;
90
91/// Too many links
92pub const EMLINK = 31;
93
94/// Broken pipe
95pub const EPIPE = 32;
96
97/// Math argument out of domain of func
98pub const EDOM = 33;
99
100/// Math result not representable
101pub const ERANGE = 34;
102
103/// Resource deadlock would occur
104pub const EDEADLK = 35;
105
106/// File name too long
107pub const ENAMETOOLONG = 36;
108
109/// No record locks available
110pub const ENOLCK = 37;
111
112/// Function not implemented
113pub const ENOSYS = 38;
114
115/// Directory not empty
116pub const ENOTEMPTY = 39;
117
118/// Too many symbolic links encountered
119pub const ELOOP = 40;
120
121/// Operation would block
122pub const EWOULDBLOCK = EAGAIN;
123
124/// No message of desired type
125pub const ENOMSG = 42;
126
127/// Identifier removed
128pub const EIDRM = 43;
129
130/// Channel number out of range
131pub const ECHRNG = 44;
132
133/// Level 2 not synchronized
134pub const EL2NSYNC = 45;
135
136/// Level 3 halted
137pub const EL3HLT = 46;
138
139/// Level 3 reset
140pub const EL3RST = 47;
141
142/// Link number out of range
143pub const ELNRNG = 48;
144
145/// Protocol driver not attached
146pub const EUNATCH = 49;
147
148/// No CSI structure available
149pub const ENOCSI = 50;
150
151/// Level 2 halted
152pub const EL2HLT = 51;
153
154/// Invalid exchange
155pub const EBADE = 52;
156
157/// Invalid request descriptor
158pub const EBADR = 53;
159
160/// Exchange full
161pub const EXFULL = 54;
162
163/// No anode
164pub const ENOANO = 55;
165
166/// Invalid request code
167pub const EBADRQC = 56;
168
169/// Invalid slot
170pub const EBADSLT = 57;
171
172/// Bad font file format
173pub const EBFONT = 59;
174
175/// Device not a stream
176pub const ENOSTR = 60;
177
178/// No data available
179pub const ENODATA = 61;
180
181/// Timer expired
182pub const ETIME = 62;
183
184/// Out of streams resources
185pub const ENOSR = 63;
186
187/// Machine is not on the network
188pub const ENONET = 64;
189
190/// Package not installed
191pub const ENOPKG = 65;
192
193/// Object is remote
194pub const EREMOTE = 66;
195
196/// Link has been severed
197pub const ENOLINK = 67;
198
199/// Advertise error
200pub const EADV = 68;
201
202/// Srmount error
203pub const ESRMNT = 69;
204
205/// Communication error on send
206pub const ECOMM = 70;
207
208/// Protocol error
209pub const EPROTO = 71;
210
211/// Multihop attempted
212pub const EMULTIHOP = 72;
213
214/// RFS specific error
215pub const EDOTDOT = 73;
216
217/// Not a data message
218pub const EBADMSG = 74;
219
220/// Value too large for defined data type
221pub const EOVERFLOW = 75;
222
223/// Name not unique on network
224pub const ENOTUNIQ = 76;
225
226/// File descriptor in bad state
227pub const EBADFD = 77;
228
229/// Remote address changed
230pub const EREMCHG = 78;
231
232/// Can not access a needed shared library
233pub const ELIBACC = 79;
234
235/// Accessing a corrupted shared library
236pub const ELIBBAD = 80;
237
238/// .lib section in a.out corrupted
239pub const ELIBSCN = 81;
240
241/// Attempting to link in too many shared libraries
242pub const ELIBMAX = 82;
243
244/// Cannot exec a shared library directly
245pub const ELIBEXEC = 83;
246
247/// Illegal byte sequence
248pub const EILSEQ = 84;
249
250/// Interrupted system call should be restarted
251pub const ERESTART = 85;
252
253/// Streams pipe error
254pub const ESTRPIPE = 86;
255
256/// Too many users
257pub const EUSERS = 87;
258
259/// Socket operation on non-socket
260pub const ENOTSOCK = 88;
261
262/// Destination address required
263pub const EDESTADDRREQ = 89;
264
265/// Message too long
266pub const EMSGSIZE = 90;
267
268/// Protocol wrong type for socket
269pub const EPROTOTYPE = 91;
270
271/// Protocol not available
272pub const ENOPROTOOPT = 92;
273
274/// Protocol not supported
275pub const EPROTONOSUPPORT = 93;
276
277/// Socket type not supported
278pub const ESOCKTNOSUPPORT = 94;
279
280/// Operation not supported on transport endpoint
281pub const EOPNOTSUPP = 95;
282pub const ENOTSUP = EOPNOTSUPP;
283
284/// Protocol family not supported
285pub const EPFNOSUPPORT = 96;
286
287/// Address family not supported by protocol
288pub const EAFNOSUPPORT = 97;
289
290/// Address already in use
291pub const EADDRINUSE = 98;
292
293/// Cannot assign requested address
294pub const EADDRNOTAVAIL = 99;
295
296/// Network is down
297pub const ENETDOWN = 100;
298
299/// Network is unreachable
300pub const ENETUNREACH = 101;
301
302/// Network dropped connection because of reset
303pub const ENETRESET = 102;
304
305/// Software caused connection abort
306pub const ECONNABORTED = 103;
307
308/// Connection reset by peer
309pub const ECONNRESET = 104;
310
311/// No buffer space available
312pub const ENOBUFS = 105;
313
314/// Transport endpoint is already connected
315pub const EISCONN = 106;
316
317/// Transport endpoint is not connected
318pub const ENOTCONN = 107;
319
320/// Cannot send after transport endpoint shutdown
321pub const ESHUTDOWN = 108;
322
323/// Too many references: cannot splice
324pub const ETOOMANYREFS = 109;
325
326/// Connection timed out
327pub const ETIMEDOUT = 110;
328
329/// Connection refused
330pub const ECONNREFUSED = 111;
331
332/// Host is down
333pub const EHOSTDOWN = 112;
334
335/// No route to host
336pub const EHOSTUNREACH = 113;
337
338/// Operation already in progress
339pub const EALREADY = 114;
340
341/// Operation now in progress
342pub const EINPROGRESS = 115;
343
344/// Stale NFS file handle
345pub const ESTALE = 116;
346
347/// Structure needs cleaning
348pub const EUCLEAN = 117;
349
350/// Not a XENIX named type file
351pub const ENOTNAM = 118;
352
353/// No XENIX semaphores available
354pub const ENAVAIL = 119;
355
356/// Is a named type file
357pub const EISNAM = 120;
358
359/// Remote I/O error
360pub const EREMOTEIO = 121;
361
362/// Quota exceeded
363pub const EDQUOT = 122;
364
365/// No medium found
366pub const ENOMEDIUM = 123;
367
368/// Wrong medium type
369pub const EMEDIUMTYPE = 124;
370
371// nameserver query return codes
372
373/// DNS server returned answer with no data
374pub const ENSROK = 0;
375
376/// DNS server returned answer with no data
377pub const ENSRNODATA = 160;
378
379/// DNS server claims query was misformatted
380pub const ENSRFORMERR = 161;
381
382/// DNS server returned general failure
383pub const ENSRSERVFAIL = 162;
384
385/// Domain name not found
386pub const ENSRNOTFOUND = 163;
387
388/// DNS server does not implement requested operation
389pub const ENSRNOTIMP = 164;
390
391/// DNS server refused query
392pub const ENSRREFUSED = 165;
393
394/// Misformatted DNS query
395pub const ENSRBADQUERY = 166;
396
397/// Misformatted domain name
398pub const ENSRBADNAME = 167;
399
400/// Unsupported address family
401pub const ENSRBADFAMILY = 168;
402
403/// Misformatted DNS reply
404pub const ENSRBADRESP = 169;
405
406/// Could not contact DNS servers
407pub const ENSRCONNREFUSED = 170;
408
409/// Timeout while contacting DNS servers
410pub const ENSRTIMEOUT = 171;
411
412/// End of file
413pub const ENSROF = 172;
414
415/// Error reading file
416pub const ENSRFILE = 173;
417
418/// Out of memory
419pub const ENSRNOMEM = 174;
420
421/// Application terminated lookup
422pub const ENSRDESTRUCTION = 175;
423
424/// Domain name is too long
425pub const ENSRQUERYDOMAINTOOLONG = 176;
426
427/// Domain name is too long
428pub const ENSRCNAMELOOP = 177;
lib/std/os/zen.zig+1-1
...@@ -80,7 +80,7 @@ pub const STDOUT_FILENO = 1;...@@ -80,7 +80,7 @@ pub const STDOUT_FILENO = 1;
80pub const STDERR_FILENO = 2;80pub const STDERR_FILENO = 2;
8181
82// FIXME: let's borrow Linux's error numbers for now.82// FIXME: let's borrow Linux's error numbers for now.
83usingnamespace @import("bits/linux/errno.zig");83usingnamespace @import("bits/linux/errno-generic.zig");
84// Get the errno from a syscall return value, or 0 for no error.84// Get the errno from a syscall return value, or 0 for no error.
85pub fn getErrno(r: usize) usize {85pub fn getErrno(r: usize) usize {
86 const signed_r = @bitCast(isize, r);86 const signed_r = @bitCast(isize, r);