@@ -628,6 +628,9 @@ pub const ENODEV: c_int = 19;
628
628
pub const ENOTDIR : c_int = 20 ;
629
629
pub const EISDIR : c_int = 21 ;
630
630
pub const EINVAL : c_int = 22 ;
631
+ pub const ENFILE : c_int = 23 ;
632
+ pub const EMFILE : c_int = 24 ;
633
+ pub const ENOTTY : c_int = 25 ;
631
634
pub const ENAMETOOLONG : c_int = 26 ;
632
635
pub const EFBIG : c_int = 27 ;
633
636
pub const ENOSPC : c_int = 28 ;
@@ -636,7 +639,12 @@ pub const EROFS: c_int = 30;
636
639
pub const EMLINK : c_int = 31 ;
637
640
pub const EPIPE : c_int = 32 ;
638
641
pub const EDEADLK : c_int = 33 ;
642
+ pub const ENOLCK : c_int = 34 ;
643
+ pub const ENOTSUP : c_int = 35 ;
644
+ pub const EMSGSIZE : c_int = 36 ;
645
+ pub const EDOM : c_int = 37 ;
639
646
pub const ERANGE : c_int = 38 ;
647
+ pub const EDOOM : c_int = 39 ;
640
648
pub const EDESTADDRREQ : c_int = 40 ;
641
649
pub const EPROTOTYPE : c_int = 41 ;
642
650
pub const ENOPROTOOPT : c_int = 42 ;
@@ -663,12 +671,30 @@ pub const ENETDOWN: c_int = 62;
663
671
pub const ETXTBSY : c_int = 63 ;
664
672
pub const ELOOP : c_int = 64 ;
665
673
pub const EHOSTUNREACH : c_int = 65 ;
674
+ pub const ENOTBLK : c_int = 66 ;
675
+ pub const EHOSTDOWN : c_int = 67 ;
666
676
pub const EINPROGRESS : c_int = 68 ;
667
677
pub const EALREADY : c_int = 69 ;
668
678
pub const EWOULDBLOCK : c_int = 70 ;
669
679
pub const ENOSYS : c_int = 71 ;
680
+ pub const ECANCELED : c_int = 72 ;
681
+ pub const ENOSR : c_int = 74 ;
682
+ pub const ENOSTR : c_int = 75 ;
683
+ pub const EPROTO : c_int = 76 ;
684
+ pub const EBADMSG : c_int = 77 ;
685
+ pub const ENODATA : c_int = 78 ;
686
+ pub const ETIME : c_int = 79 ;
687
+ pub const ENOMSG : c_int = 80 ;
688
+ pub const EFPOS : c_int = 81 ;
689
+ pub const EILSEQ : c_int = 82 ;
670
690
pub const EDQUOT : c_int = 83 ;
691
+ pub const EIDRM : c_int = 84 ;
692
+ pub const EOVERFLOW : c_int = 85 ;
693
+ pub const EMULTIHOP : c_int = 86 ;
694
+ pub const ENOLINK : c_int = 87 ;
671
695
pub const ESTALE : c_int = 88 ;
696
+ pub const EOWNERDEAD : c_int = 89 ;
697
+ pub const ENOTRECOVERABLE : c_int = 90 ;
672
698
673
699
// NFS errnos: Refer to pkgs_v2/storage/fs/nfs/h/nfs/nfsCommon.h
674
700
const M_nfsStat : c_int = 48 << 16 ;
@@ -1242,6 +1268,7 @@ extern "C" {
1242
1268
pub fn umask ( mask : mode_t ) -> mode_t ;
1243
1269
pub fn mlock ( addr : * const c_void , len : size_t ) -> c_int ;
1244
1270
pub fn mlockall ( flags : c_int ) -> c_int ;
1271
+ pub fn munlock ( addr : * const c_void , len : size_t ) -> c_int ;
1245
1272
pub fn munlockall ( ) -> c_int ;
1246
1273
1247
1274
pub fn mmap (
@@ -1253,6 +1280,10 @@ extern "C" {
1253
1280
offset : off_t ,
1254
1281
) -> * mut c_void ;
1255
1282
pub fn munmap ( addr : * mut c_void , len : size_t ) -> c_int ;
1283
+
1284
+ pub fn mprotect ( addr : * mut c_void , len : size_t , prot : c_int ) -> c_int ;
1285
+ pub fn msync ( addr : * mut c_void , len : size_t , flags : c_int ) -> c_int ;
1286
+
1256
1287
pub fn truncate ( path : * const c_char , length : off_t ) -> c_int ;
1257
1288
pub fn shm_open ( name : * const c_char , oflag : c_int , mode : crate :: mode_t ) -> c_int ;
1258
1289
pub fn shm_unlink ( name : * const c_char ) -> c_int ;
@@ -1269,6 +1300,8 @@ extern "C" {
1269
1300
1270
1301
pub fn utimes ( filename : * const c_char , times : * const crate :: timeval ) -> c_int ;
1271
1302
1303
+ pub fn futimens ( fd : c_int , times : * const crate :: timespec ) -> c_int ;
1304
+
1272
1305
#[ link_name = "_rtld_dlopen" ]
1273
1306
pub fn dlopen ( filename : * const c_char , flag : c_int ) -> * mut c_void ;
1274
1307
0 commit comments