Skip to content

Commit 0606678

Browse files
committed
Auto merge of #1487 - lpetre:add_more_utime_constants, r=gnzlbg
Adding UTIME_NOW and UTIME_OMIT to dragonfly Verified in both repos: - [musl](https://git.musl-libc.org/cgit/musl/tree/include/sys/stat.h#n70) - [dragonfly](https://github.com/DragonFlyBSD/DragonFlyBSD/blob/e7ab884bd49753f8884eb597d10d6569a08fa0df/sys/sys/stat.h#L250)
2 parents a131ca3 + 600a67f commit 0606678

File tree

1 file changed

+4
-0
lines changed
  • src/unix/bsd/freebsdlike/dragonfly

1 file changed

+4
-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
}

0 commit comments

Comments
 (0)