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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
//! Error numbers for arch `powerpc`.

#![allow(dead_code)]

// This file automatically generate. Do not edit.

crate::macros::def_errno!();

impl Errno {
    /// Operation not permitted
    pub const EPERM: Self = Self(1);
    /// No such file or directory
    pub const ENOENT: Self = Self(2);
    /// No such process
    pub const ESRCH: Self = Self(3);
    /// Interrupted system call
    pub const EINTR: Self = Self(4);
    /// I/O error
    pub const EIO: Self = Self(5);
    /// No such device or address
    pub const ENXIO: Self = Self(6);
    /// Argument list too long
    pub const E2BIG: Self = Self(7);
    /// Exec format error
    pub const ENOEXEC: Self = Self(8);
    /// Bad file number
    pub const EBADF: Self = Self(9);
    /// No child processes
    pub const ECHILD: Self = Self(10);
    /// Try again
    pub const EAGAIN: Self = Self(11);
    /// Out of memory
    pub const ENOMEM: Self = Self(12);
    /// Permission denied
    pub const EACCES: Self = Self(13);
    /// Bad address
    pub const EFAULT: Self = Self(14);
    /// Block device required
    pub const ENOTBLK: Self = Self(15);
    /// Device or resource busy
    pub const EBUSY: Self = Self(16);
    /// File exists
    pub const EEXIST: Self = Self(17);
    /// Cross-device link
    pub const EXDEV: Self = Self(18);
    /// No such device
    pub const ENODEV: Self = Self(19);
    /// Not a directory
    pub const ENOTDIR: Self = Self(20);
    /// Is a directory
    pub const EISDIR: Self = Self(21);
    /// Invalid argument
    pub const EINVAL: Self = Self(22);
    /// File table overflow
    pub const ENFILE: Self = Self(23);
    /// Too many open files
    pub const EMFILE: Self = Self(24);
    /// Not a typewriter
    pub const ENOTTY: Self = Self(25);
    /// Text file busy
    pub const ETXTBSY: Self = Self(26);
    /// File too large
    pub const EFBIG: Self = Self(27);
    /// No space left on device
    pub const ENOSPC: Self = Self(28);
    /// Illegal seek
    pub const ESPIPE: Self = Self(29);
    /// Read-only file system
    pub const EROFS: Self = Self(30);
    /// Too many links
    pub const EMLINK: Self = Self(31);
    /// Broken pipe
    pub const EPIPE: Self = Self(32);
    /// Math argument out of domain of func
    pub const EDOM: Self = Self(33);
    /// Math result not representable
    pub const ERANGE: Self = Self(34);
    /// Resource deadlock would occur
    pub const EDEADLK: Self = Self(35);
    /// File name too long
    pub const ENAMETOOLONG: Self = Self(36);
    /// No record locks available
    pub const ENOLCK: Self = Self(37);
    /// Invalid system call number
    pub const ENOSYS: Self = Self(38);
    /// Directory not empty
    pub const ENOTEMPTY: Self = Self(39);
    /// Too many symbolic links encountered
    pub const ELOOP: Self = Self(40);
    /// No message of desired type
    pub const ENOMSG: Self = Self(42);
    /// Identifier removed
    pub const EIDRM: Self = Self(43);
    /// Channel number out of range
    pub const ECHRNG: Self = Self(44);
    /// Level 2 not synchronized
    pub const EL2NSYNC: Self = Self(45);
    /// Level 3 halted
    pub const EL3HLT: Self = Self(46);
    /// Level 3 reset
    pub const EL3RST: Self = Self(47);
    /// Link number out of range
    pub const ELNRNG: Self = Self(48);
    /// Protocol driver not attached
    pub const EUNATCH: Self = Self(49);
    /// No CSI structure available
    pub const ENOCSI: Self = Self(50);
    /// Level 2 halted
    pub const EL2HLT: Self = Self(51);
    /// Invalid exchange
    pub const EBADE: Self = Self(52);
    /// Invalid request descriptor
    pub const EBADR: Self = Self(53);
    /// Exchange full
    pub const EXFULL: Self = Self(54);
    /// No anode
    pub const ENOANO: Self = Self(55);
    /// Invalid request code
    pub const EBADRQC: Self = Self(56);
    /// Invalid slot
    pub const EBADSLT: Self = Self(57);
    /// File locking deadlock error
    pub const EDEADLOCK: Self = Self(58);
    /// Bad font file format
    pub const EBFONT: Self = Self(59);
    /// Device not a stream
    pub const ENOSTR: Self = Self(60);
    /// No data available
    pub const ENODATA: Self = Self(61);
    /// Timer expired
    pub const ETIME: Self = Self(62);
    /// Out of streams resources
    pub const ENOSR: Self = Self(63);
    /// Machine is not on the network
    pub const ENONET: Self = Self(64);
    /// Package not installed
    pub const ENOPKG: Self = Self(65);
    /// Object is remote
    pub const EREMOTE: Self = Self(66);
    /// Link has been severed
    pub const ENOLINK: Self = Self(67);
    /// Advertise error
    pub const EADV: Self = Self(68);
    /// Srmount error
    pub const ESRMNT: Self = Self(69);
    /// Communication error on send
    pub const ECOMM: Self = Self(70);
    /// Protocol error
    pub const EPROTO: Self = Self(71);
    /// Multihop attempted
    pub const EMULTIHOP: Self = Self(72);
    /// RFS specific error
    pub const EDOTDOT: Self = Self(73);
    /// Not a data message
    pub const EBADMSG: Self = Self(74);
    /// Value too large for defined data type
    pub const EOVERFLOW: Self = Self(75);
    /// Name not unique on network
    pub const ENOTUNIQ: Self = Self(76);
    /// File descriptor in bad state
    pub const EBADFD: Self = Self(77);
    /// Remote address changed
    pub const EREMCHG: Self = Self(78);
    /// Can not access a needed shared library
    pub const ELIBACC: Self = Self(79);
    /// Accessing a corrupted shared library
    pub const ELIBBAD: Self = Self(80);
    /// .lib section in a.out corrupted
    pub const ELIBSCN: Self = Self(81);
    /// Attempting to link in too many shared libraries
    pub const ELIBMAX: Self = Self(82);
    /// Cannot exec a shared library directly
    pub const ELIBEXEC: Self = Self(83);
    /// Illegal byte sequence
    pub const EILSEQ: Self = Self(84);
    /// Interrupted system call should be restarted
    pub const ERESTART: Self = Self(85);
    /// Streams pipe error
    pub const ESTRPIPE: Self = Self(86);
    /// Too many users
    pub const EUSERS: Self = Self(87);
    /// Socket operation on non-socket
    pub const ENOTSOCK: Self = Self(88);
    /// Destination address required
    pub const EDESTADDRREQ: Self = Self(89);
    /// Message too long
    pub const EMSGSIZE: Self = Self(90);
    /// Protocol wrong type for socket
    pub const EPROTOTYPE: Self = Self(91);
    /// Protocol not available
    pub const ENOPROTOOPT: Self = Self(92);
    /// Protocol not supported
    pub const EPROTONOSUPPORT: Self = Self(93);
    /// Socket type not supported
    pub const ESOCKTNOSUPPORT: Self = Self(94);
    /// Operation not supported on transport endpoint
    pub const EOPNOTSUPP: Self = Self(95);
    /// Protocol family not supported
    pub const EPFNOSUPPORT: Self = Self(96);
    /// Address family not supported by protocol
    pub const EAFNOSUPPORT: Self = Self(97);
    /// Address already in use
    pub const EADDRINUSE: Self = Self(98);
    /// Cannot assign requested address
    pub const EADDRNOTAVAIL: Self = Self(99);
    /// Network is down
    pub const ENETDOWN: Self = Self(100);
    /// Network is unreachable
    pub const ENETUNREACH: Self = Self(101);
    /// Network dropped connection because of reset
    pub const ENETRESET: Self = Self(102);
    /// Software caused connection abort
    pub const ECONNABORTED: Self = Self(103);
    /// Connection reset by peer
    pub const ECONNRESET: Self = Self(104);
    /// No buffer space available
    pub const ENOBUFS: Self = Self(105);
    /// Transport endpoint is already connected
    pub const EISCONN: Self = Self(106);
    /// Transport endpoint is not connected
    pub const ENOTCONN: Self = Self(107);
    /// Cannot send after transport endpoint shutdown
    pub const ESHUTDOWN: Self = Self(108);
    /// Too many references: cannot splice
    pub const ETOOMANYREFS: Self = Self(109);
    /// Connection timed out
    pub const ETIMEDOUT: Self = Self(110);
    /// Connection refused
    pub const ECONNREFUSED: Self = Self(111);
    /// Host is down
    pub const EHOSTDOWN: Self = Self(112);
    /// No route to host
    pub const EHOSTUNREACH: Self = Self(113);
    /// Operation already in progress
    pub const EALREADY: Self = Self(114);
    /// Operation now in progress
    pub const EINPROGRESS: Self = Self(115);
    /// Stale file handle
    pub const ESTALE: Self = Self(116);
    /// Structure needs cleaning
    pub const EUCLEAN: Self = Self(117);
    /// Not a XENIX named type file
    pub const ENOTNAM: Self = Self(118);
    /// No XENIX semaphores available
    pub const ENAVAIL: Self = Self(119);
    /// Is a named type file
    pub const EISNAM: Self = Self(120);
    /// Remote I/O error
    pub const EREMOTEIO: Self = Self(121);
    /// Quota exceeded
    pub const EDQUOT: Self = Self(122);
    /// No medium found
    pub const ENOMEDIUM: Self = Self(123);
    /// Wrong medium type
    pub const EMEDIUMTYPE: Self = Self(124);
    /// Operation Canceled
    pub const ECANCELED: Self = Self(125);
    /// Required key not available
    pub const ENOKEY: Self = Self(126);
    /// Key has expired
    pub const EKEYEXPIRED: Self = Self(127);
    /// Key has been revoked
    pub const EKEYREVOKED: Self = Self(128);
    /// Key was rejected by service
    pub const EKEYREJECTED: Self = Self(129);
    /// Owner died
    pub const EOWNERDEAD: Self = Self(130);
    /// State not recoverable
    pub const ENOTRECOVERABLE: Self = Self(131);
    /// Operation not possible due to RF-kill
    pub const ERFKILL: Self = Self(132);
    /// Memory page has hardware error
    pub const EHWPOISON: Self = Self(133);
    /// Restart syscall
    pub const ERESTARTSYS: Self = Self(512);
    /// Restart if no interrupt
    pub const ERESTARTNOINTR: Self = Self(513);
    /// restart if no handler..
    pub const ERESTARTNOHAND: Self = Self(514);
    /// No ioctl command
    pub const ENOIOCTLCMD: Self = Self(515);
    /// restart by calling sys_restart_syscall
    pub const ERESTART_RESTARTBLOCK: Self = Self(516);
    /// Driver requests probe retry
    pub const EPROBE_DEFER: Self = Self(517);
    /// open found a stale dentry
    pub const EOPENSTALE: Self = Self(518);
    /// Parameter not supported
    pub const ENOPARAM: Self = Self(519);
    /// Illegal NFS file handle
    pub const EBADHANDLE: Self = Self(521);
    /// Update synchronization mismatch
    pub const ENOTSYNC: Self = Self(522);
    /// Cookie is stale
    pub const EBADCOOKIE: Self = Self(523);
    /// Operation is not supported
    pub const ENOTSUPP: Self = Self(524);
    /// Buffer or request is too small
    pub const ETOOSMALL: Self = Self(525);
    /// An untranslatable error occurred
    pub const ESERVERFAULT: Self = Self(526);
    /// Type not supported by server
    pub const EBADTYPE: Self = Self(527);
    /// Request initiated, but will not complete before timeout
    pub const EJUKEBOX: Self = Self(528);
    /// iocb queued, will get completion event
    pub const EIOCBQUEUED: Self = Self(529);
    /// conflict with recalled state
    pub const ERECALLCONFLICT: Self = Self(530);
    /// NFS file lock reclaim refused
    pub const ENOGRACE: Self = Self(531);
    /// Alias for [Self::EAGAIN]
    pub const EWOULDBLOCK: Self = Self::EAGAIN;

    pub const MIN: i32 = 1;
    pub const MAX: i32 = 531;

    #[cfg(feature = "iter")]
    const ALL: [i32; 151] = [
        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, 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, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
        115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132,
        133, 512, 513, 514, 515, 516, 517, 518, 519, 521, 522, 523, 524, 525, 526, 527, 528, 529,
        530, 531,
    ];

    pub(crate) fn name_and_description(&self) -> Option<(&'static str, &'static str)> {
        match self.0 {
            1 => Some(("EPERM", "Operation not permitted")),
            2 => Some(("ENOENT", "No such file or directory")),
            3 => Some(("ESRCH", "No such process")),
            4 => Some(("EINTR", "Interrupted system call")),
            5 => Some(("EIO", "I/O error")),
            6 => Some(("ENXIO", "No such device or address")),
            7 => Some(("E2BIG", "Argument list too long")),
            8 => Some(("ENOEXEC", "Exec format error")),
            9 => Some(("EBADF", "Bad file number")),
            10 => Some(("ECHILD", "No child processes")),
            11 => Some(("EAGAIN", "Try again")),
            12 => Some(("ENOMEM", "Out of memory")),
            13 => Some(("EACCES", "Permission denied")),
            14 => Some(("EFAULT", "Bad address")),
            15 => Some(("ENOTBLK", "Block device required")),
            16 => Some(("EBUSY", "Device or resource busy")),
            17 => Some(("EEXIST", "File exists")),
            18 => Some(("EXDEV", "Cross-device link")),
            19 => Some(("ENODEV", "No such device")),
            20 => Some(("ENOTDIR", "Not a directory")),
            21 => Some(("EISDIR", "Is a directory")),
            22 => Some(("EINVAL", "Invalid argument")),
            23 => Some(("ENFILE", "File table overflow")),
            24 => Some(("EMFILE", "Too many open files")),
            25 => Some(("ENOTTY", "Not a typewriter")),
            26 => Some(("ETXTBSY", "Text file busy")),
            27 => Some(("EFBIG", "File too large")),
            28 => Some(("ENOSPC", "No space left on device")),
            29 => Some(("ESPIPE", "Illegal seek")),
            30 => Some(("EROFS", "Read-only file system")),
            31 => Some(("EMLINK", "Too many links")),
            32 => Some(("EPIPE", "Broken pipe")),
            33 => Some(("EDOM", "Math argument out of domain of func")),
            34 => Some(("ERANGE", "Math result not representable")),
            35 => Some(("EDEADLK", "Resource deadlock would occur")),
            36 => Some(("ENAMETOOLONG", "File name too long")),
            37 => Some(("ENOLCK", "No record locks available")),
            38 => Some(("ENOSYS", "Invalid system call number")),
            39 => Some(("ENOTEMPTY", "Directory not empty")),
            40 => Some(("ELOOP", "Too many symbolic links encountered")),
            42 => Some(("ENOMSG", "No message of desired type")),
            43 => Some(("EIDRM", "Identifier removed")),
            44 => Some(("ECHRNG", "Channel number out of range")),
            45 => Some(("EL2NSYNC", "Level 2 not synchronized")),
            46 => Some(("EL3HLT", "Level 3 halted")),
            47 => Some(("EL3RST", "Level 3 reset")),
            48 => Some(("ELNRNG", "Link number out of range")),
            49 => Some(("EUNATCH", "Protocol driver not attached")),
            50 => Some(("ENOCSI", "No CSI structure available")),
            51 => Some(("EL2HLT", "Level 2 halted")),
            52 => Some(("EBADE", "Invalid exchange")),
            53 => Some(("EBADR", "Invalid request descriptor")),
            54 => Some(("EXFULL", "Exchange full")),
            55 => Some(("ENOANO", "No anode")),
            56 => Some(("EBADRQC", "Invalid request code")),
            57 => Some(("EBADSLT", "Invalid slot")),
            58 => Some(("EDEADLOCK", "File locking deadlock error")),
            59 => Some(("EBFONT", "Bad font file format")),
            60 => Some(("ENOSTR", "Device not a stream")),
            61 => Some(("ENODATA", "No data available")),
            62 => Some(("ETIME", "Timer expired")),
            63 => Some(("ENOSR", "Out of streams resources")),
            64 => Some(("ENONET", "Machine is not on the network")),
            65 => Some(("ENOPKG", "Package not installed")),
            66 => Some(("EREMOTE", "Object is remote")),
            67 => Some(("ENOLINK", "Link has been severed")),
            68 => Some(("EADV", "Advertise error")),
            69 => Some(("ESRMNT", "Srmount error")),
            70 => Some(("ECOMM", "Communication error on send")),
            71 => Some(("EPROTO", "Protocol error")),
            72 => Some(("EMULTIHOP", "Multihop attempted")),
            73 => Some(("EDOTDOT", "RFS specific error")),
            74 => Some(("EBADMSG", "Not a data message")),
            75 => Some(("EOVERFLOW", "Value too large for defined data type")),
            76 => Some(("ENOTUNIQ", "Name not unique on network")),
            77 => Some(("EBADFD", "File descriptor in bad state")),
            78 => Some(("EREMCHG", "Remote address changed")),
            79 => Some(("ELIBACC", "Can not access a needed shared library")),
            80 => Some(("ELIBBAD", "Accessing a corrupted shared library")),
            81 => Some(("ELIBSCN", ".lib section in a.out corrupted")),
            82 => Some(("ELIBMAX", "Attempting to link in too many shared libraries")),
            83 => Some(("ELIBEXEC", "Cannot exec a shared library directly")),
            84 => Some(("EILSEQ", "Illegal byte sequence")),
            85 => Some(("ERESTART", "Interrupted system call should be restarted")),
            86 => Some(("ESTRPIPE", "Streams pipe error")),
            87 => Some(("EUSERS", "Too many users")),
            88 => Some(("ENOTSOCK", "Socket operation on non-socket")),
            89 => Some(("EDESTADDRREQ", "Destination address required")),
            90 => Some(("EMSGSIZE", "Message too long")),
            91 => Some(("EPROTOTYPE", "Protocol wrong type for socket")),
            92 => Some(("ENOPROTOOPT", "Protocol not available")),
            93 => Some(("EPROTONOSUPPORT", "Protocol not supported")),
            94 => Some(("ESOCKTNOSUPPORT", "Socket type not supported")),
            95 => Some((
                "EOPNOTSUPP",
                "Operation not supported on transport endpoint",
            )),
            96 => Some(("EPFNOSUPPORT", "Protocol family not supported")),
            97 => Some(("EAFNOSUPPORT", "Address family not supported by protocol")),
            98 => Some(("EADDRINUSE", "Address already in use")),
            99 => Some(("EADDRNOTAVAIL", "Cannot assign requested address")),
            100 => Some(("ENETDOWN", "Network is down")),
            101 => Some(("ENETUNREACH", "Network is unreachable")),
            102 => Some(("ENETRESET", "Network dropped connection because of reset")),
            103 => Some(("ECONNABORTED", "Software caused connection abort")),
            104 => Some(("ECONNRESET", "Connection reset by peer")),
            105 => Some(("ENOBUFS", "No buffer space available")),
            106 => Some(("EISCONN", "Transport endpoint is already connected")),
            107 => Some(("ENOTCONN", "Transport endpoint is not connected")),
            108 => Some(("ESHUTDOWN", "Cannot send after transport endpoint shutdown")),
            109 => Some(("ETOOMANYREFS", "Too many references: cannot splice")),
            110 => Some(("ETIMEDOUT", "Connection timed out")),
            111 => Some(("ECONNREFUSED", "Connection refused")),
            112 => Some(("EHOSTDOWN", "Host is down")),
            113 => Some(("EHOSTUNREACH", "No route to host")),
            114 => Some(("EALREADY", "Operation already in progress")),
            115 => Some(("EINPROGRESS", "Operation now in progress")),
            116 => Some(("ESTALE", "Stale file handle")),
            117 => Some(("EUCLEAN", "Structure needs cleaning")),
            118 => Some(("ENOTNAM", "Not a XENIX named type file")),
            119 => Some(("ENAVAIL", "No XENIX semaphores available")),
            120 => Some(("EISNAM", "Is a named type file")),
            121 => Some(("EREMOTEIO", "Remote I/O error")),
            122 => Some(("EDQUOT", "Quota exceeded")),
            123 => Some(("ENOMEDIUM", "No medium found")),
            124 => Some(("EMEDIUMTYPE", "Wrong medium type")),
            125 => Some(("ECANCELED", "Operation Canceled")),
            126 => Some(("ENOKEY", "Required key not available")),
            127 => Some(("EKEYEXPIRED", "Key has expired")),
            128 => Some(("EKEYREVOKED", "Key has been revoked")),
            129 => Some(("EKEYREJECTED", "Key was rejected by service")),
            130 => Some(("EOWNERDEAD", "Owner died")),
            131 => Some(("ENOTRECOVERABLE", "State not recoverable")),
            132 => Some(("ERFKILL", "Operation not possible due to RF-kill")),
            133 => Some(("EHWPOISON", "Memory page has hardware error")),
            512 => Some(("ERESTARTSYS", "Restart syscall")),
            513 => Some(("ERESTARTNOINTR", "Restart if no interrupt")),
            514 => Some(("ERESTARTNOHAND", "restart if no handler..")),
            515 => Some(("ENOIOCTLCMD", "No ioctl command")),
            516 => Some((
                "ERESTART_RESTARTBLOCK",
                "restart by calling sys_restart_syscall",
            )),
            517 => Some(("EPROBE_DEFER", "Driver requests probe retry")),
            518 => Some(("EOPENSTALE", "open found a stale dentry")),
            519 => Some(("ENOPARAM", "Parameter not supported")),
            521 => Some(("EBADHANDLE", "Illegal NFS file handle")),
            522 => Some(("ENOTSYNC", "Update synchronization mismatch")),
            523 => Some(("EBADCOOKIE", "Cookie is stale")),
            524 => Some(("ENOTSUPP", "Operation is not supported")),
            525 => Some(("ETOOSMALL", "Buffer or request is too small")),
            526 => Some(("ESERVERFAULT", "An untranslatable error occurred")),
            527 => Some(("EBADTYPE", "Type not supported by server")),
            528 => Some((
                "EJUKEBOX",
                "Request initiated, but will not complete before timeout",
            )),
            529 => Some(("EIOCBQUEUED", "iocb queued, will get completion event")),
            530 => Some(("ERECALLCONFLICT", "conflict with recalled state")),
            531 => Some(("ENOGRACE", "NFS file lock reclaim refused")),
            _ => None,
        }
    }
}