authorgravatar for heidezomp@protonmail.comheidezomp <heidezomp@protonmail.com> 2020-08-20 11:54:29+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-08-20 17:02:58-04:00
log1ca49b92c650e9b8988a35983e202cdb9c7ba6e7
treefec11ff774447f14de5772272c5d35e3d28cbcd5
parent776bfb0ee6ccd3c8f4b15834c3c40e5f5d731f79

add UTIME_NOW and UTIME_OMIT constants for use in utimensat/futimens

copied from lib/libc/include/generic-musl/sys/stat.h

1 files changed, 3 insertions(+), 0 deletions(-)

lib/std/os/bits/linux.zig+3
...@@ -775,6 +775,9 @@ pub fn S_ISSOCK(m: u32) bool {...@@ -775,6 +775,9 @@ pub fn S_ISSOCK(m: u32) bool {
775 return m & S_IFMT == S_IFSOCK;775 return m & S_IFMT == S_IFSOCK;
776}776}
777777
778pub const UTIME_NOW = 0x3fffffff;
779pub const UTIME_OMIT = 0x3ffffffe;
780
778pub const TFD_NONBLOCK = O_NONBLOCK;781pub const TFD_NONBLOCK = O_NONBLOCK;
779pub const TFD_CLOEXEC = O_CLOEXEC;782pub const TFD_CLOEXEC = O_CLOEXEC;
780783