diff options
Diffstat (limited to 'third_party/libc/src/unix/notbsd/linux/other/b64/powerpc64.rs')
-rw-r--r-- | third_party/libc/src/unix/notbsd/linux/other/b64/powerpc64.rs | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/third_party/libc/src/unix/notbsd/linux/other/b64/powerpc64.rs b/third_party/libc/src/unix/notbsd/linux/other/b64/powerpc64.rs new file mode 100644 index 0000000..fca4204 --- /dev/null +++ b/third_party/libc/src/unix/notbsd/linux/other/b64/powerpc64.rs | |||
@@ -0,0 +1,79 @@ | |||
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_CONDATTR_T: usize = 4; | ||
57 | pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40; | ||
58 | pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4; | ||
59 | |||
60 | pub const O_DIRECTORY: ::c_int = 0x4000; | ||
61 | pub const O_NOFOLLOW: ::c_int = 0x8000; | ||
62 | pub const O_DIRECT: ::c_int = 0x20000; | ||
63 | |||
64 | pub const MAP_LOCKED: ::c_int = 0x00080; | ||
65 | pub const MAP_NORESERVE: ::c_int = 0x00040; | ||
66 | |||
67 | pub const EDEADLOCK: ::c_int = 58; | ||
68 | |||
69 | pub const SO_PEERCRED: ::c_int = 21; | ||
70 | pub const SO_RCVLOWAT: ::c_int = 16; | ||
71 | pub const SO_SNDLOWAT: ::c_int = 17; | ||
72 | pub const SO_RCVTIMEO: ::c_int = 18; | ||
73 | pub const SO_SNDTIMEO: ::c_int = 19; | ||
74 | |||
75 | pub const FIOCLEX: ::c_ulong = 0x20006601; | ||
76 | pub const FIONBIO: ::c_ulong = 0x8004667e; | ||
77 | |||
78 | pub const SYS_gettid: ::c_long = 207; | ||
79 | pub const SYS_perf_event_open: ::c_long = 319; | ||