2017-08-26 21:11:09 -07:00
|
|
|
extern "c" fn __error() -> &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 {
|
|
|
|
dev: u32,
|
|
|
|
mode: u16,
|
|
|
|
nlink: u16,
|
|
|
|
ino: u64,
|
|
|
|
uid: u32,
|
|
|
|
gid: u32,
|
|
|
|
rdev: u64,
|
|
|
|
|
|
|
|
atim: timespec,
|
|
|
|
mtim: timespec,
|
|
|
|
ctim: timespec,
|
|
|
|
|
|
|
|
size: u64,
|
|
|
|
blocks: u64,
|
|
|
|
blksize: u32,
|
|
|
|
flags: u32,
|
|
|
|
gen: u32,
|
|
|
|
lspare: i32,
|
|
|
|
qspare: [2]u64,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
pub const timespec = extern struct {
|
|
|
|
tv_sec: isize,
|
|
|
|
tv_nsec: isize,
|
|
|
|
};
|