Skip to content

Commit f630218

Browse files
hax0kartiktgross35
authored andcommitted
Add more error codes for VxWorks
(backport <rust-lang#4337>) (cherry picked from commit bb7f778)
1 parent 9d7c71c commit f630218

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/vxworks/mod.rs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,9 @@ pub const ENODEV: c_int = 19;
620620
pub const ENOTDIR: c_int = 20;
621621
pub const EISDIR: c_int = 21;
622622
pub const EINVAL: c_int = 22;
623+
pub const ENFILE: c_int = 23;
624+
pub const EMFILE: c_int = 24;
625+
pub const ENOTTY: c_int = 25;
623626
pub const ENAMETOOLONG: c_int = 26;
624627
pub const EFBIG: c_int = 27;
625628
pub const ENOSPC: c_int = 28;
@@ -628,7 +631,12 @@ pub const EROFS: c_int = 30;
628631
pub const EMLINK: c_int = 31;
629632
pub const EPIPE: c_int = 32;
630633
pub const EDEADLK: c_int = 33;
634+
pub const ENOLCK: c_int = 34;
635+
pub const ENOTSUP: c_int = 35;
636+
pub const EMSGSIZE: c_int = 36;
637+
pub const EDOM: c_int = 37;
631638
pub const ERANGE: c_int = 38;
639+
pub const EDOOM: c_int = 39;
632640
pub const EDESTADDRREQ: c_int = 40;
633641
pub const EPROTOTYPE: c_int = 41;
634642
pub const ENOPROTOOPT: c_int = 42;
@@ -655,12 +663,30 @@ pub const ENETDOWN: c_int = 62;
655663
pub const ETXTBSY: c_int = 63;
656664
pub const ELOOP: c_int = 64;
657665
pub const EHOSTUNREACH: c_int = 65;
666+
pub const ENOTBLK: c_int = 66;
667+
pub const EHOSTDOWN: c_int = 67;
658668
pub const EINPROGRESS: c_int = 68;
659669
pub const EALREADY: c_int = 69;
660670
pub const EWOULDBLOCK: c_int = 70;
661671
pub const ENOSYS: c_int = 71;
672+
pub const ECANCELED: c_int = 72;
673+
pub const ENOSR: c_int = 74;
674+
pub const ENOSTR: c_int = 75;
675+
pub const EPROTO: c_int = 76;
676+
pub const EBADMSG: c_int = 77;
677+
pub const ENODATA: c_int = 78;
678+
pub const ETIME: c_int = 79;
679+
pub const ENOMSG: c_int = 80;
680+
pub const EFPOS: c_int = 81;
681+
pub const EILSEQ: c_int = 82;
662682
pub const EDQUOT: c_int = 83;
683+
pub const EIDRM: c_int = 84;
684+
pub const EOVERFLOW: c_int = 85;
685+
pub const EMULTIHOP: c_int = 86;
686+
pub const ENOLINK: c_int = 87;
663687
pub const ESTALE: c_int = 88;
688+
pub const EOWNERDEAD: c_int = 89;
689+
pub const ENOTRECOVERABLE: c_int = 90;
664690

665691
// NFS errnos: Refer to pkgs_v2/storage/fs/nfs/h/nfs/nfsCommon.h
666692
const M_nfsStat: c_int = 48 << 16;

0 commit comments

Comments
 (0)