1 pub type c_char = u8; 2 pub type __u64 = ::c_ulonglong; 3 pub type wchar_t = u32; 4 pub type nlink_t = ::c_ulong; 5 pub type blksize_t = ::c_long; 6 7 s! { 8 pub struct stat { 9 pub st_dev: ::dev_t, 10 pub st_ino: ::ino_t, 11 pub st_mode: ::mode_t, 12 pub st_nlink: ::nlink_t, 13 pub st_uid: ::uid_t, 14 pub st_gid: ::gid_t, 15 pub st_rdev: ::dev_t, 16 __pad0: ::c_ulong, 17 pub st_size: ::off_t, 18 pub st_blksize: ::blksize_t, 19 __pad1: ::c_int, 20 pub st_blocks: ::blkcnt_t, 21 pub st_atime: ::time_t, 22 pub st_atime_nsec: ::c_long, 23 pub st_mtime: ::time_t, 24 pub st_mtime_nsec: ::c_long, 25 pub st_ctime: ::time_t, 26 pub st_ctime_nsec: ::c_long, 27 __unused: [::c_uint; 2], 28 } 29 30 pub struct stat64 { 31 pub st_dev: ::dev_t, 32 pub st_ino: ::ino_t, 33 pub st_mode: ::mode_t, 34 pub st_nlink: ::nlink_t, 35 pub st_uid: ::uid_t, 36 pub st_gid: ::gid_t, 37 pub st_rdev: ::dev_t, 38 __pad0: ::c_ulong, 39 pub st_size: ::off_t, 40 pub st_blksize: ::blksize_t, 41 __pad1: ::c_int, 42 pub st_blocks: ::blkcnt_t, 43 pub st_atime: ::time_t, 44 pub st_atime_nsec: ::c_long, 45 pub st_mtime: ::time_t, 46 pub st_mtime_nsec: ::c_long, 47 pub st_ctime: ::time_t, 48 pub st_ctime_nsec: ::c_long, 49 __unused: [::c_uint; 2], 50 } 51 52 pub struct ipc_perm { 53 pub __ipc_perm_key: ::key_t, 54 pub uid: ::uid_t, 55 pub gid: ::gid_t, 56 pub cuid: ::uid_t, 57 pub cgid: ::gid_t, 58 pub mode: ::mode_t, 59 pub __seq: ::c_ushort, 60 __unused1: ::c_ulong, 61 __unused2: ::c_ulong, 62 } 63 } 64 65 pub const MINSIGSTKSZ: ::size_t = 6144; 66 pub const SIGSTKSZ: ::size_t = 12288; 67