mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
parent
3634d44d08
commit
daed2ba2a0
@ -7,13 +7,23 @@ const std = @import("../../std.zig");
|
|||||||
const builtin = std.builtin;
|
const builtin = std.builtin;
|
||||||
const maxInt = std.math.maxInt;
|
const maxInt = std.math.maxInt;
|
||||||
|
|
||||||
// See https://svnweb.freebsd.org/base/head/sys/sys/_types.h?view=co
|
pub const blksize_t = i32;
|
||||||
// TODO: audit pid_t/mode_t. They should likely be i32 and u16, respectively
|
pub const blkcnt_t = i64;
|
||||||
pub const fd_t = c_int;
|
pub const clockid_t = i32;
|
||||||
pub const pid_t = c_int;
|
pub const fsblkcnt_t = u64;
|
||||||
|
pub const fsfilcnt_t = u64;
|
||||||
|
pub const nlink_t = u64;
|
||||||
|
pub const fd_t = i32;
|
||||||
|
pub const pid_t = i32;
|
||||||
pub const uid_t = u32;
|
pub const uid_t = u32;
|
||||||
pub const gid_t = u32;
|
pub const gid_t = u32;
|
||||||
pub const mode_t = c_uint;
|
pub const mode_t = u16;
|
||||||
|
pub const off_t = i64;
|
||||||
|
pub const ino_t = u64;
|
||||||
|
pub const dev_t = u64;
|
||||||
|
pub const time_t = i64;
|
||||||
|
// The signedness is not constant across different architectures.
|
||||||
|
pub const clock_t = isize;
|
||||||
|
|
||||||
pub const socklen_t = u32;
|
pub const socklen_t = u32;
|
||||||
|
|
||||||
@ -117,20 +127,17 @@ pub const msghdr_const = extern struct {
|
|||||||
msg_flags: i32,
|
msg_flags: i32,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const off_t = i64;
|
|
||||||
pub const ino_t = u64;
|
|
||||||
|
|
||||||
pub const libc_stat = extern struct {
|
pub const libc_stat = extern struct {
|
||||||
dev: u64,
|
dev: dev_t,
|
||||||
ino: ino_t,
|
ino: ino_t,
|
||||||
nlink: usize,
|
nlink: nlink_t,
|
||||||
|
|
||||||
mode: u16,
|
mode: mode_t,
|
||||||
__pad0: u16,
|
__pad0: u16,
|
||||||
uid: uid_t,
|
uid: uid_t,
|
||||||
gid: gid_t,
|
gid: gid_t,
|
||||||
__pad1: u32,
|
__pad1: u32,
|
||||||
rdev: u64,
|
rdev: dev_t,
|
||||||
|
|
||||||
atim: timespec,
|
atim: timespec,
|
||||||
mtim: timespec,
|
mtim: timespec,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user