From 1ca49b92c650e9b8988a35983e202cdb9c7ba6e7 Mon Sep 17 00:00:00 2001 From: heidezomp Date: Thu, 20 Aug 2020 11:54:29 +0200 Subject: [PATCH] add UTIME_NOW and UTIME_OMIT constants for use in utimensat/futimens copied from lib/libc/include/generic-musl/sys/stat.h --- lib/std/os/bits/linux.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/std/os/bits/linux.zig b/lib/std/os/bits/linux.zig index 4fa8a02d3d..5c81ee8c06 100644 --- a/lib/std/os/bits/linux.zig +++ b/lib/std/os/bits/linux.zig @@ -775,6 +775,9 @@ pub fn S_ISSOCK(m: u32) bool { return m & S_IFMT == S_IFSOCK; } +pub const UTIME_NOW = 0x3fffffff; +pub const UTIME_OMIT = 0x3ffffffe; + pub const TFD_NONBLOCK = O_NONBLOCK; pub const TFD_CLOEXEC = O_CLOEXEC;