authorgravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2019-11-05 02:15:52+11:00
committergravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2019-11-05 02:19:25+11:00
logc8463ce9b04e44c63fcb758d5f746265410412c5
tree9189c3fc352c1255838e040c96ee20eaedddd53a
parent6e635c64061dfc35b8178810bdd5bfc5452b9d28
signaturelock-open Commit is signed but in an unrecognized format.

std: Add definitions for (deprecated) futimes and utimes C functions


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

lib/std/c.zig+4
...@@ -149,6 +149,10 @@ pub extern "c" fn realloc(?*c_void, usize) ?*c_void;...@@ -149,6 +149,10 @@ pub extern "c" fn realloc(?*c_void, usize) ?*c_void;
149pub extern "c" fn free(*c_void) void;149pub extern "c" fn free(*c_void) void;
150pub extern "c" fn posix_memalign(memptr: **c_void, alignment: usize, size: usize) c_int;150pub extern "c" fn posix_memalign(memptr: **c_void, alignment: usize, size: usize) c_int;
151151
152// Deprecated
153pub extern "c" fn futimes(fd: fd_t, times: *[2]timeval) c_int;
154pub extern "c" fn utimes(path: [*]const u8, times: *[2]timeval) c_int;
155
152pub extern "c" fn utimensat(dirfd: fd_t, pathname: [*]const u8, times: *[2]timespec, flags: u32) c_int;156pub extern "c" fn utimensat(dirfd: fd_t, pathname: [*]const u8, times: *[2]timespec, flags: u32) c_int;
153pub extern "c" fn futimens(fd: fd_t, times: *const [2]timespec) c_int;157pub extern "c" fn futimens(fd: fd_t, times: *const [2]timespec) c_int;
154158