Skip to content

Commit c8463ce

Browse files
committed
std: Add definitions for (deprecated) futimes and utimes C functions
1 parent 6e635c6 commit c8463ce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/std/c.zig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ pub extern "c" fn realloc(?*c_void, usize) ?*c_void;
149149
pub extern "c" fn free(*c_void) void;
150150
pub extern "c" fn posix_memalign(memptr: **c_void, alignment: usize, size: usize) c_int;
151151

152+
// Deprecated
153+
pub extern "c" fn futimes(fd: fd_t, times: *[2]timeval) c_int;
154+
pub extern "c" fn utimes(path: [*]const u8, times: *[2]timeval) c_int;
155+
152156
pub extern "c" fn utimensat(dirfd: fd_t, pathname: [*]const u8, times: *[2]timespec, flags: u32) c_int;
153157
pub extern "c" fn futimens(fd: fd_t, times: *const [2]timespec) c_int;
154158

0 commit comments

Comments
 (0)