Skip to content

File tree

7 files changed

+20
-0
lines changed

7 files changed

+20
-0
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2830,6 +2830,9 @@ pub const P_ALL: idtype_t = 0;
28302830
pub const P_PID: idtype_t = 1;
28312831
pub const P_PGID: idtype_t = 2;
28322832

2833+
pub const UTIME_OMIT: c_long = -2;
2834+
pub const UTIME_NOW: c_long = -1;
2835+
28332836
pub const XATTR_NOFOLLOW: ::c_int = 0x0001;
28342837
pub const XATTR_CREATE: ::c_int = 0x0002;
28352838
pub const XATTR_REPLACE: ::c_int = 0x0004;

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,9 @@ pub const P_PID: idtype_t = 0;
10431043
pub const P_PGID: idtype_t = 2;
10441044
pub const P_ALL: idtype_t = 7;
10451045

1046+
pub const UTIME_OMIT: c_long = -2;
1047+
pub const UTIME_NOW: c_long = -1;
1048+
10461049
pub const B460800: ::speed_t = 460800;
10471050
pub const B921600: ::speed_t = 921600;
10481051

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,6 +1363,9 @@ pub const P_ALL: idtype_t = 0;
13631363
pub const P_PID: idtype_t = 1;
13641364
pub const P_PGID: idtype_t = 4;
13651365

1366+
pub const UTIME_OMIT: c_long = 1073741822;
1367+
pub const UTIME_NOW: c_long = 1073741823;
1368+
13661369
pub const B460800: ::speed_t = 460800;
13671370
pub const B921600: ::speed_t = 921600;
13681371

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,9 @@ pub const ELAST : ::c_int = 95;
748748

749749
pub const F_DUPFD_CLOEXEC : ::c_int = 10;
750750

751+
pub const UTIME_OMIT: c_long = -2;
752+
pub const UTIME_NOW: c_long = -1;
753+
751754
pub const AT_FDCWD: ::c_int = -100;
752755
pub const AT_EACCESS: ::c_int = 0x01;
753756
pub const AT_SYMLINK_NOFOLLOW: ::c_int = 0x02;

src/unix/haiku/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,9 @@ pub const P_ALL: idtype_t = 0;
10391039
pub const P_PID: idtype_t = 1;
10401040
pub const P_PGID: idtype_t = 2;
10411041

1042+
pub const UTIME_OMIT: c_long = 1000000001;
1043+
pub const UTIME_NOW: c_long = 1000000000;
1044+
10421045
pub const VINTR: usize = 0;
10431046
pub const VQUIT: usize = 1;
10441047
pub const VERASE: usize = 2;

src/unix/solarish/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -965,6 +965,9 @@ pub const P_CTID: idtype_t = 13;
965965
pub const P_CPUID: idtype_t = 14;
966966
pub const P_PSETID: idtype_t = 15;
967967

968+
pub const UTIME_OMIT: c_long = -2;
969+
pub const UTIME_NOW: c_long = -1;
970+
968971
pub const PROT_NONE: ::c_int = 0;
969972
pub const PROT_READ: ::c_int = 1;
970973
pub const PROT_WRITE: ::c_int = 2;

src/wasi.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,8 @@ pub const AT_EACCESS: c_int = 0x0;
334334
pub const AT_SYMLINK_NOFOLLOW: c_int = 0x1;
335335
pub const AT_SYMLINK_FOLLOW: c_int = 0x2;
336336
pub const AT_REMOVEDIR: c_int = 0x4;
337+
pub const UTIME_OMIT: c_long = 1073741822;
338+
pub const UTIME_NOW: c_long = 1073741823;
337339

338340
pub const E2BIG: c_int = __WASI_E2BIG as c_int;
339341
pub const EACCES: c_int = __WASI_EACCES as c_int;

0 commit comments

Comments
 (0)