]> git.proxmox.com Git - rustc.git/blob - src/liblibc/src/unix/notbsd/linux/other/b64/powerpc64.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / liblibc / src / unix / notbsd / linux / other / b64 / powerpc64.rs
1 //! PowerPC64-specific definitions for 64-bit linux-like values
2
3 pub type c_char = u8;
4 pub type wchar_t = i32;
5 pub type nlink_t = u64;
6 pub type blksize_t = i64;
7
8 s! {
9 pub struct stat {
10 pub st_dev: ::dev_t,
11 pub st_ino: ::ino_t,
12 pub st_nlink: ::nlink_t,
13 pub st_mode: ::mode_t,
14 pub st_uid: ::uid_t,
15 pub st_gid: ::gid_t,
16 __pad0: ::c_int,
17 pub st_rdev: ::dev_t,
18 pub st_size: ::off_t,
19 pub st_blksize: ::blksize_t,
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_long; 3],
28 }
29
30 pub struct stat64 {
31 pub st_dev: ::dev_t,
32 pub st_ino: ::ino64_t,
33 pub st_nlink: ::nlink_t,
34 pub st_mode: ::mode_t,
35 pub st_uid: ::uid_t,
36 pub st_gid: ::gid_t,
37 __pad0: ::c_int,
38 pub st_rdev: ::dev_t,
39 pub st_size: ::off64_t,
40 pub st_blksize: ::blksize_t,
41 pub st_blocks: ::blkcnt64_t,
42 pub st_atime: ::time_t,
43 pub st_atime_nsec: ::c_long,
44 pub st_mtime: ::time_t,
45 pub st_mtime_nsec: ::c_long,
46 pub st_ctime: ::time_t,
47 pub st_ctime_nsec: ::c_long,
48 __reserved: [::c_long; 3],
49 }
50
51 pub struct pthread_attr_t {
52 __size: [u64; 7]
53 }
54 }
55
56 pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40;
57 pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4;
58
59 pub const O_DIRECTORY: ::c_int = 0x4000;
60 pub const O_NOFOLLOW: ::c_int = 0x8000;
61 pub const O_DIRECT: ::c_int = 0x20000;
62
63 pub const MAP_LOCKED: ::c_int = 0x00080;
64 pub const MAP_NORESERVE: ::c_int = 0x00040;
65
66 pub const EDEADLOCK: ::c_int = 58;
67
68 pub const SO_PEERCRED: ::c_int = 21;
69 pub const SO_RCVLOWAT: ::c_int = 16;
70 pub const SO_SNDLOWAT: ::c_int = 17;
71 pub const SO_RCVTIMEO: ::c_int = 18;
72 pub const SO_SNDTIMEO: ::c_int = 19;
73
74 pub const FIOCLEX: ::c_ulong = 0x20006601;
75 pub const FIONBIO: ::c_ulong = 0x8004667e;
76
77 pub const SYS_gettid: ::c_long = 207;
78 pub const SYS_perf_event_open: ::c_long = 319;