File tree 3 files changed +13
-7
lines changed
3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -404,6 +404,13 @@ pub const TIOCMODG: ::c_uint = 0x40047403;
404
404
pub const TIOCMODS : :: c_ulong = 0x80047404 ;
405
405
pub const TIOCREMOTE : :: c_ulong = 0x80047469 ;
406
406
407
+ // Constants used by "at" family of system calls.
408
+ pub const AT_FDCWD : :: c_int = 0xFFFAFDCD ; // invalid file descriptor
409
+ pub const AT_SYMLINK_NOFOLLOW : :: c_int = 1 ;
410
+ pub const AT_REMOVEDIR : :: c_int = 2 ;
411
+ pub const AT_EACCESS : :: c_int = 4 ;
412
+ pub const AT_SYMLINK_FOLLOW : :: c_int = 8 ;
413
+
407
414
extern {
408
415
pub fn mprotect ( addr : * mut :: c_void , len : :: size_t , prot : :: c_int )
409
416
-> :: c_int ;
Original file line number Diff line number Diff line change @@ -508,6 +508,12 @@ pub const P_ALL: idtype_t = 7;
508
508
pub const B460800 : :: speed_t = 460800 ;
509
509
pub const B921600 : :: speed_t = 921600 ;
510
510
511
+ pub const AT_FDCWD : :: c_int = -100 ;
512
+ pub const AT_EACCESS : :: c_int = 0x100 ;
513
+ pub const AT_SYMLINK_NOFOLLOW : :: c_int = 0x200 ;
514
+ pub const AT_SYMLINK_FOLLOW : :: c_int = 0x400 ;
515
+ pub const AT_REMOVEDIR : :: c_int = 0x800 ;
516
+
511
517
extern {
512
518
pub fn __error ( ) -> * mut :: c_int ;
513
519
Original file line number Diff line number Diff line change @@ -452,11 +452,6 @@ pub const F_SETFD: ::c_int = 2;
452
452
pub const F_GETFL : :: c_int = 3 ;
453
453
pub const F_SETFL : :: c_int = 4 ;
454
454
455
- pub const AT_EACCESS : :: c_int = 0x100 ;
456
- pub const AT_SYMLINK_NOFOLLOW : :: c_int = 0x200 ;
457
- pub const AT_SYMLINK_FOLLOW : :: c_int = 0x400 ;
458
- pub const AT_REMOVEDIR : :: c_int = 0x800 ;
459
-
460
455
pub const SIGTRAP : :: c_int = 5 ;
461
456
462
457
pub const GLOB_APPEND : :: c_int = 0x0001 ;
@@ -876,8 +871,6 @@ pub const SEM_FAILED: *mut sem_t = 0 as *mut sem_t;
876
871
877
872
pub const CRTSCTS : :: tcflag_t = 0x00030000 ;
878
873
879
- pub const AT_FDCWD : :: c_int = -100 ;
880
-
881
874
f ! {
882
875
pub fn WIFCONTINUED ( status: :: c_int) -> bool {
883
876
status == 0x13
You can’t perform that action at this time.
0 commit comments