Skip to content

Commit 4448eb3

Browse files
committed
Adding UTIME_NOW and UTIME_OMIT to musl and dragonfly
1 parent 3875052 commit 4448eb3

File tree

2 files changed

+7
-0
lines changed
  • src/unix

2 files changed

+7
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,10 @@ pub const SF_NOHISTORY: ::c_ulong = 0x00400000;
10021002
pub const SF_CACHE: ::c_ulong = 0x00800000;
10031003
pub const SF_XLINK: ::c_ulong = 0x01000000;
10041004

1005+
// timespec constants
1006+
pub const UTIME_OMIT: c_long = -2;
1007+
pub const UTIME_NOW: c_long = -1;
1008+
10051009
fn _CMSG_ALIGN(n: usize) -> usize {
10061010
(n + 3) & !3
10071011
}

src/unix/linux_like/linux/musl/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,9 @@ pub const RLIMIT_MSGQUEUE: ::c_int = 12;
370370
pub const RLIMIT_NICE: ::c_int = 13;
371371
pub const RLIMIT_RTPRIO: ::c_int = 14;
372372

373+
pub const UTIME_OMIT: c_long = 1073741822;
374+
pub const UTIME_NOW: c_long = 1073741823;
375+
373376
extern {
374377
pub fn sendmmsg(sockfd: ::c_int, msgvec: *mut ::mmsghdr, vlen: ::c_uint,
375378
flags: ::c_uint) -> ::c_int;

0 commit comments

Comments
 (0)