Skip to content

Commit 1d501bc

Browse files
committed
Auto merge of rust-lang#549 - Mic92:atflags, r=alexcrichton
add AT_* constants
2 parents 8c11f71 + 6ddc76a commit 1d501bc

File tree

5 files changed

+27
-0
lines changed

5 files changed

+27
-0
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,12 @@ pub const F_ALLOCATEALL: ::c_uint = 0x04;
665665
pub const F_PEOFPOSMODE: ::c_int = 3;
666666
pub const F_VOLPOSMODE: ::c_int = 4;
667667

668+
pub const AT_FDCWD: ::c_int = -2;
669+
pub const AT_EACCESS: ::c_int = 0x0010;
670+
pub const AT_SYMLINK_NOFOLLOW: ::c_int = 0x0020;
671+
pub const AT_SYMLINK_FOLLOW: ::c_int = 0x0040;
672+
pub const AT_REMOVEDIR: ::c_int = 0x0080;
673+
668674
pub const O_ACCMODE: ::c_int = 3;
669675

670676
pub const TIOCMODG: ::c_ulong = 0x40047403;

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,11 @@ pub const F_SETFD: ::c_int = 2;
452452
pub const F_GETFL: ::c_int = 3;
453453
pub 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+
455460
pub const SIGTRAP: ::c_int = 5;
456461

457462
pub const GLOB_APPEND : ::c_int = 0x0001;

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,12 @@ s! {
246246
}
247247
}
248248

249+
pub const AT_FDCWD: ::c_int = -100;
250+
pub const AT_EACCESS: ::c_int = 0x100;
251+
pub const AT_SYMLINK_NOFOLLOW: ::c_int = 0x200;
252+
pub const AT_SYMLINK_FOLLOW: ::c_int = 0x400;
253+
pub const AT_REMOVEDIR: ::c_int = 0x800;
254+
249255
pub const LC_COLLATE_MASK: ::c_int = (1 << ::LC_COLLATE);
250256
pub const LC_CTYPE_MASK: ::c_int = (1 << ::LC_CTYPE);
251257
pub const LC_MONETARY_MASK: ::c_int = (1 << ::LC_MONETARY);

src/unix/bsd/netbsdlike/openbsdlike/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,12 @@ pub const ELAST : ::c_int = 91;
157157

158158
pub const F_DUPFD_CLOEXEC : ::c_int = 10;
159159

160+
pub const AT_FDCWD: ::c_int = -100;
161+
pub const AT_EACCESS: ::c_int = 0x01;
162+
pub const AT_SYMLINK_NOFOLLOW: ::c_int = 0x02;
163+
pub const AT_SYMLINK_FOLLOW: ::c_int = 0x04;
164+
pub const AT_REMOVEDIR: ::c_int = 0x08;
165+
160166
pub const RLIM_NLIMITS: ::c_int = 9;
161167

162168
pub const SO_SNDTIMEO: ::c_int = 0x1005;

src/unix/notbsd/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,10 @@ pub const POSIX_FADV_WILLNEED: ::c_int = 3;
728728

729729
pub const AT_FDCWD: ::c_int = -100;
730730
pub const AT_SYMLINK_NOFOLLOW: ::c_int = 0x100;
731+
pub const AT_REMOVEDIR: ::c_int = 0x200;
732+
pub const AT_SYMLINK_FOLLOW: ::c_int = 0x400;
733+
pub const AT_NO_AUTOMOUNT: ::c_int = 0x800;
734+
pub const AT_EMPTY_PATH: ::c_int = 0x1000;
731735

732736
pub const LOG_CRON: ::c_int = 9 << 3;
733737
pub const LOG_AUTHPRIV: ::c_int = 10 << 3;

0 commit comments

Comments
 (0)