@@ -360,7 +360,8 @@ fn desc(errno: Errno) -> &'static str {
360
360
#[ cfg( any( target_os = "linux" , target_os = "android" ) ) ]
361
361
EDQUOT => "Quota exceeded" ,
362
362
363
- #[ cfg( any( target_os = "linux" , target_os = "android" , target_os = "openbsd" , target_os = "dragonfly" ) ) ]
363
+ #[ cfg( any( target_os = "linux" , target_os = "android" ,
364
+ target_os = "openbsd" , target_os = "dragonfly" ) ) ]
364
365
ENOMEDIUM => "No medium found" ,
365
366
366
367
#[ cfg( any( target_os = "linux" , target_os = "android" , target_os = "openbsd" ) ) ]
@@ -408,70 +409,112 @@ fn desc(errno: Errno) -> &'static str {
408
409
#[ cfg( target_os = "freebsd" ) ]
409
410
ECAPMODE => "Not permitted in capability mode" ,
410
411
411
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "ios" , target_os = "openbsd" , target_os = "netbsd" ) ) ]
412
+ #[ cfg( any( target_os = "macos" , target_os = "freebsd" ,
413
+ target_os = "dragonfly" , target_os = "ios" ,
414
+ target_os = "openbsd" , target_os = "netbsd" ) ) ]
412
415
ENEEDAUTH => "Need authenticator" ,
413
416
414
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "ios" , target_os = "openbsd" , target_os = "netbsd" ) ) ]
417
+ #[ cfg( any( target_os = "macos" , target_os = "freebsd" ,
418
+ target_os = "dragonfly" , target_os = "ios" ,
419
+ target_os = "openbsd" , target_os = "netbsd" ) ) ]
415
420
EOVERFLOW => "Value too large to be stored in data type" ,
416
421
417
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "ios" , target_os = "netbsd" ) ) ]
422
+ #[ cfg( any( target_os = "macos" , target_os = "freebsd" ,
423
+ target_os = "dragonfly" , target_os = "ios" ,
424
+ target_os = "netbsd" ) ) ]
418
425
EILSEQ => "Illegal byte sequence" ,
419
426
420
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "ios" , target_os = "openbsd" , target_os = "netbsd" ) ) ]
427
+ #[ cfg( any( target_os = "macos" , target_os = "freebsd" ,
428
+ target_os = "dragonfly" , target_os = "ios" ,
429
+ target_os = "openbsd" , target_os = "netbsd" ) ) ]
421
430
ENOATTR => "Attribute not found" ,
422
431
423
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "ios" , target_os = "netbsd" ) ) ]
432
+ #[ cfg( any( target_os = "macos" , target_os = "freebsd" ,
433
+ target_os = "dragonfly" , target_os = "ios" ,
434
+ target_os = "openbsd" , target_os = "netbsd" ) ) ]
424
435
EBADMSG => "Bad message" ,
425
436
426
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "ios" , target_os = "netbsd" ) ) ]
437
+ #[ cfg( any( target_os = "macos" , target_os = "freebsd" ,
438
+ target_os = "dragonfly" , target_os = "ios" ,
439
+ target_os = "openbsd" , target_os = "netbsd" ) ) ]
427
440
EPROTO => "Protocol error" ,
428
441
429
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "ios" ) ) ]
442
+ #[ cfg( any( target_os = "macos" , target_os = "freebsd" ,
443
+ target_os = "ios" , target_os = "openbsd" , ) ) ]
430
444
ENOTRECOVERABLE => "State not recoverable" ,
431
445
432
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "ios" ) ) ]
446
+ #[ cfg( any( target_os = "macos" , target_os = "freebsd" ,
447
+ target_os = "ios" , target_os = "openbsd" ) ) ]
433
448
EOWNERDEAD => "Previous owner died" ,
434
449
435
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "ios" , target_os = "openbsd" , target_os = "netbsd" ) ) ]
450
+ #[ cfg( any( target_os = "macos" , target_os = "freebsd" ,
451
+ target_os = "dragonfly" , target_os = "ios" ,
452
+ target_os = "openbsd" , target_os = "netbsd" ) ) ]
436
453
ENOTSUP => "Operation not supported" ,
437
454
438
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "ios" , target_os = "openbsd" , target_os = "netbsd" ) ) ]
455
+ #[ cfg( any( target_os = "macos" , target_os = "freebsd" ,
456
+ target_os = "dragonfly" , target_os = "ios" ,
457
+ target_os = "openbsd" , target_os = "netbsd" ) ) ]
439
458
EPROCLIM => "Too many processes" ,
440
459
441
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "ios" , target_os = "openbsd" , target_os = "netbsd" ) ) ]
460
+ #[ cfg( any( target_os = "macos" , target_os = "freebsd" ,
461
+ target_os = "dragonfly" , target_os = "ios" ,
462
+ target_os = "openbsd" , target_os = "netbsd" ) ) ]
442
463
EUSERS => "Too many users" ,
443
464
444
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "ios" , target_os = "openbsd" , target_os = "netbsd" ) ) ]
465
+ #[ cfg( any( target_os = "macos" , target_os = "freebsd" ,
466
+ target_os = "dragonfly" , target_os = "ios" ,
467
+ target_os = "openbsd" , target_os = "netbsd" ) ) ]
445
468
EDQUOT => "Disc quota exceeded" ,
446
469
447
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "ios" , target_os = "openbsd" , target_os = "netbsd" ) ) ]
470
+ #[ cfg( any( target_os = "macos" , target_os = "freebsd" ,
471
+ target_os = "dragonfly" , target_os = "ios" ,
472
+ target_os = "openbsd" , target_os = "netbsd" ) ) ]
448
473
ESTALE => "Stale NFS file handle" ,
449
474
450
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "ios" , target_os = "openbsd" , target_os = "netbsd" ) ) ]
475
+ #[ cfg( any( target_os = "macos" , target_os = "freebsd" ,
476
+ target_os = "dragonfly" , target_os = "ios" ,
477
+ target_os = "openbsd" , target_os = "netbsd" ) ) ]
451
478
EREMOTE => "Too many levels of remote in path" ,
452
479
453
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "ios" , target_os = "openbsd" , target_os = "netbsd" ) ) ]
480
+ #[ cfg( any( target_os = "macos" , target_os = "freebsd" ,
481
+ target_os = "dragonfly" , target_os = "ios" ,
482
+ target_os = "openbsd" , target_os = "netbsd" ) ) ]
454
483
EBADRPC => "RPC struct is bad" ,
455
484
456
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "ios" , target_os = "openbsd" , target_os = "netbsd" ) ) ]
485
+ #[ cfg( any( target_os = "macos" , target_os = "freebsd" ,
486
+ target_os = "dragonfly" , target_os = "ios" ,
487
+ target_os = "openbsd" , target_os = "netbsd" ) ) ]
457
488
ERPCMISMATCH => "RPC version wrong" ,
458
489
459
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "ios" , target_os = "openbsd" , target_os = "netbsd" ) ) ]
490
+ #[ cfg( any( target_os = "macos" , target_os = "freebsd" ,
491
+ target_os = "dragonfly" , target_os = "ios" ,
492
+ target_os = "openbsd" , target_os = "netbsd" ) ) ]
460
493
EPROGUNAVAIL => "RPC prog. not avail" ,
461
494
462
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "ios" , target_os = "openbsd" , target_os = "netbsd" ) ) ]
495
+ #[ cfg( any( target_os = "macos" , target_os = "freebsd" ,
496
+ target_os = "dragonfly" , target_os = "ios" ,
497
+ target_os = "openbsd" , target_os = "netbsd" ) ) ]
463
498
EPROGMISMATCH => "Program version wrong" ,
464
499
465
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "ios" , target_os = "openbsd" , target_os = "netbsd" ) ) ]
500
+ #[ cfg( any( target_os = "macos" , target_os = "freebsd" ,
501
+ target_os = "dragonfly" , target_os = "ios" ,
502
+ target_os = "openbsd" , target_os = "netbsd" ) ) ]
466
503
EPROCUNAVAIL => "Bad procedure for program" ,
467
504
468
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "ios" , target_os = "openbsd" , target_os = "netbsd" ) ) ]
505
+ #[ cfg( any( target_os = "macos" , target_os = "freebsd" ,
506
+ target_os = "dragonfly" , target_os = "ios" ,
507
+ target_os = "openbsd" , target_os = "netbsd" ) ) ]
469
508
EFTYPE => "Inappropriate file type or format" ,
470
509
471
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "ios" , target_os = "openbsd" , target_os = "netbsd" ) ) ]
510
+ #[ cfg( any( target_os = "macos" , target_os = "freebsd" ,
511
+ target_os = "dragonfly" , target_os = "ios" ,
512
+ target_os = "openbsd" , target_os = "netbsd" ) ) ]
472
513
EAUTH => "Authentication error" ,
473
514
474
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "ios" , target_os = "openbsd" , target_os = "netbsd" ) ) ]
515
+ #[ cfg( any( target_os = "macos" , target_os = "freebsd" ,
516
+ target_os = "dragonfly" , target_os = "ios" ,
517
+ target_os = "openbsd" , target_os = "netbsd" ) ) ]
475
518
ECANCELED => "Operation canceled" ,
476
519
477
520
#[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
@@ -1588,6 +1631,10 @@ mod consts {
1588
1631
EIDRM = libc:: EIDRM ,
1589
1632
ENOMSG = libc:: ENOMSG ,
1590
1633
ENOTSUP = libc:: ENOTSUP ,
1634
+ EBADMSG = libc:: EBADMSG ,
1635
+ ENOTRECOVERABLE = libc:: ENOTRECOVERABLE ,
1636
+ EOWNERDEAD = libc:: EOWNERDEAD ,
1637
+ EPROTO = libc:: EPROTO ,
1591
1638
}
1592
1639
1593
1640
pub const ELAST : Errno = Errno :: ENOTSUP ;
@@ -1690,6 +1737,10 @@ mod consts {
1690
1737
libc:: EIDRM => EIDRM ,
1691
1738
libc:: ENOMSG => ENOMSG ,
1692
1739
libc:: ENOTSUP => ENOTSUP ,
1740
+ libc:: EBADMSG => EBADMSG ,
1741
+ libc:: ENOTRECOVERABLE => ENOTRECOVERABLE ,
1742
+ libc:: EOWNERDEAD => EOWNERDEAD ,
1743
+ libc:: EPROTO => EPROTO ,
1693
1744
_ => UnknownErrno ,
1694
1745
}
1695
1746
}
0 commit comments