mirror of
https://github.com/ziglang/zig.git
synced 2026-02-19 07:48:31 +00:00
std: close is OSX specific
This commit is contained in:
parent
711520d935
commit
6e635c6406
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user