Skip to content

Commit 5db77e3

Browse files
authored
Merge pull request #3588 from daurnimator/tiny-std-fixes
Tiny std fixes
2 parents 52207f2 + c8463ce commit 5db77e3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/std/c.zig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ pub extern "c" fn abort() noreturn;
6161
pub extern "c" fn exit(code: c_int) noreturn;
6262
pub extern "c" fn isatty(fd: fd_t) c_int;
6363
pub extern "c" fn close(fd: fd_t) c_int;
64-
pub extern "c" fn @"close$NOCANCEL"(fd: fd_t) c_int;
6564
pub extern "c" fn fstat(fd: fd_t, buf: *Stat) c_int;
6665
pub extern "c" fn @"fstat$INODE64"(fd: fd_t, buf: *Stat) c_int;
6766
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;
150149
pub extern "c" fn free(*c_void) void;
151150
pub extern "c" fn posix_memalign(memptr: **c_void, alignment: usize, size: usize) c_int;
152151

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+
153156
pub extern "c" fn utimensat(dirfd: fd_t, pathname: [*]const u8, times: *[2]timespec, flags: u32) c_int;
154157
pub extern "c" fn futimens(fd: fd_t, times: *const [2]timespec) c_int;
155158

lib/std/c/darwin.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ pub const mach_header = macho.mach_header;
4646

4747
pub const _errno = __error;
4848

49+
pub extern "c" fn @"close$NOCANCEL"(fd: fd_t) c_int;
4950
pub extern "c" fn mach_host_self() mach_port_t;
5051
pub extern "c" fn clock_get_time(clock_serv: clock_serv_t, cur_time: *mach_timespec_t) kern_return_t;
5152
pub extern "c" fn host_get_clock_service(host: host_t, clock_id: clock_id_t, clock_serv: ?[*]clock_serv_t) kern_return_t;

0 commit comments

Comments
 (0)