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