diff --git a/lib/std/c.zig b/lib/std/c.zig index 71e111a61d..853712abd4 100644 --- a/lib/std/c.zig +++ b/lib/std/c.zig @@ -61,7 +61,6 @@ pub extern "c" fn abort() noreturn; pub extern "c" fn exit(code: c_int) noreturn; pub extern "c" fn isatty(fd: fd_t) c_int; pub extern "c" fn close(fd: fd_t) c_int; -pub extern "c" fn @"close$NOCANCEL"(fd: fd_t) c_int; pub extern "c" fn fstat(fd: fd_t, buf: *Stat) c_int; pub extern "c" fn @"fstat$INODE64"(fd: fd_t, buf: *Stat) c_int; pub extern "c" fn lseek(fd: fd_t, offset: off_t, whence: c_int) off_t; @@ -150,6 +149,10 @@ pub extern "c" fn realloc(?*c_void, usize) ?*c_void; pub extern "c" fn free(*c_void) void; pub extern "c" fn posix_memalign(memptr: **c_void, alignment: usize, size: usize) c_int; +// Deprecated +pub extern "c" fn futimes(fd: fd_t, times: *[2]timeval) c_int; +pub extern "c" fn utimes(path: [*]const u8, times: *[2]timeval) c_int; + pub extern "c" fn utimensat(dirfd: fd_t, pathname: [*]const u8, times: *[2]timespec, flags: u32) c_int; pub extern "c" fn futimens(fd: fd_t, times: *const [2]timespec) c_int; diff --git a/lib/std/c/darwin.zig b/lib/std/c/darwin.zig index 391939aba7..f3cd77ec6f 100644 --- a/lib/std/c/darwin.zig +++ b/lib/std/c/darwin.zig @@ -46,6 +46,7 @@ pub const mach_header = macho.mach_header; pub const _errno = __error; +pub extern "c" fn @"close$NOCANCEL"(fd: fd_t) c_int; pub extern "c" fn mach_host_self() mach_port_t; pub extern "c" fn clock_get_time(clock_serv: clock_serv_t, cur_time: *mach_timespec_t) kern_return_t; pub extern "c" fn host_get_clock_service(host: host_t, clock_id: clock_id_t, clock_serv: ?[*]clock_serv_t) kern_return_t;