File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Expand file tree Collapse file tree 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;
404404pub const TIOCMODS : :: c_ulong = 0x80047404 ;
405405pub const TIOCREMOTE : :: c_ulong = 0x80047469 ;
406406
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+
407414extern {
408415 pub fn mprotect ( addr : * mut :: c_void , len : :: size_t , prot : :: c_int )
409416 -> :: c_int ;
Original file line number Diff line number Diff line change @@ -508,6 +508,12 @@ pub const P_ALL: idtype_t = 7;
508508pub const B460800 : :: speed_t = 460800 ;
509509pub const B921600 : :: speed_t = 921600 ;
510510
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+
511517extern {
512518 pub fn __error ( ) -> * mut :: c_int ;
513519
Original file line number Diff line number Diff line change @@ -452,11 +452,6 @@ pub const F_SETFD: ::c_int = 2;
452452pub const F_GETFL : :: c_int = 3 ;
453453pub const F_SETFL : :: c_int = 4 ;
454454
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-
460455pub const SIGTRAP : :: c_int = 5 ;
461456
462457pub const GLOB_APPEND : :: c_int = 0x0001 ;
@@ -876,8 +871,6 @@ pub const SEM_FAILED: *mut sem_t = 0 as *mut sem_t;
876871
877872pub const CRTSCTS : :: tcflag_t = 0x00030000 ;
878873
879- pub const AT_FDCWD : :: c_int = -100 ;
880-
881874f ! {
882875 pub fn WIFCONTINUED ( status: :: c_int) -> bool {
883876 status == 0x13
You can’t perform that action at this time.
0 commit comments