2017-08-26 21:11:09 -07:00
|
|
|
extern "c" fn __error() -> &c_int;
|
2018-01-04 12:30:22 -08:00
|
|
|
pub extern "c" fn _NSGetExecutablePath(buf: &u8, bufsize: &u32) -> c_int;
|
|
|
|
|
2017-03-22 23:59:58 -07:00
|
|
|
|
2017-08-27 02:15:24 -07:00
|
|
|
pub use @import("../os/darwin_errno.zig");
|
|
|
|
|
2017-03-22 23:59:58 -07:00
|
|
|
pub const _errno = __error;
|
2017-08-26 21:11:09 -07:00
|
|
|
|
|
|
|
/// Renamed to Stat to not conflict with the stat function.
|
|
|
|
pub const Stat = extern struct {
|
2017-11-10 11:02:45 -08:00
|
|
|
dev: i32,
|
2017-08-26 21:11:09 -07:00
|
|
|
mode: u16,
|
|
|
|
nlink: u16,
|
|
|
|
ino: u64,
|
|
|
|
uid: u32,
|
|
|
|
gid: u32,
|
2017-11-10 11:02:45 -08:00
|
|
|
rdev: i32,
|
|
|
|
atime: usize,
|
|
|
|
atimensec: usize,
|
|
|
|
mtime: usize,
|
|
|
|
mtimensec: usize,
|
|
|
|
ctime: usize,
|
|
|
|
ctimensec: usize,
|
|
|
|
birthtime: usize,
|
|
|
|
birthtimensec: usize,
|
|
|
|
size: i64,
|
|
|
|
blocks: i64,
|
|
|
|
blksize: i32,
|
2017-08-26 21:11:09 -07:00
|
|
|
flags: u32,
|
|
|
|
gen: u32,
|
|
|
|
lspare: i32,
|
2017-11-10 11:02:45 -08:00
|
|
|
qspare: [2]i64,
|
2017-08-26 21:11:09 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
pub const timespec = extern struct {
|
|
|
|
tv_sec: isize,
|
|
|
|
tv_nsec: isize,
|
|
|
|
};
|
2017-09-07 21:04:43 -07:00
|
|
|
|
|
|
|
pub const sigset_t = u32;
|
|
|
|
|
|
|
|
/// Renamed from `sigaction` to `Sigaction` to avoid conflict with function name.
|
|
|
|
pub const Sigaction = extern struct {
|
|
|
|
handler: extern fn(c_int),
|
|
|
|
sa_mask: sigset_t,
|
|
|
|
sa_flags: c_int,
|
|
|
|
};
|