]> git.proxmox.com Git - rustc.git/blame - src/vendor/libc/src/unix/notbsd/linux/other/b32/powerpc.rs
New upstream version 1.19.0+dfsg1
[rustc.git] / src / vendor / libc / src / unix / notbsd / linux / other / b32 / powerpc.rs
CommitLineData
476ff2be
SL
1pub type c_char = u8;
2pub type wchar_t = i32;
3
4s! {
5 pub struct ipc_perm {
6 __key: ::key_t,
7 pub uid: ::uid_t,
8 pub gid: ::gid_t,
9 pub cuid: ::uid_t,
10 pub cgid: ::gid_t,
11 pub mode: ::mode_t,
12 __seq: ::uint32_t,
13 __pad1: ::uint32_t,
14 __glibc_reserved1: ::uint64_t,
15 __glibc_reserved2: ::uint64_t,
16 }
17
18 pub struct stat64 {
19 pub st_dev: ::dev_t,
20 pub st_ino: ::ino64_t,
21 pub st_mode: ::mode_t,
22 pub st_nlink: ::nlink_t,
23 pub st_uid: ::uid_t,
24 pub st_gid: ::gid_t,
25 pub st_rdev: ::dev_t,
26 __pad2: ::c_ushort,
27 pub st_size: ::off64_t,
28 pub st_blksize: ::blksize_t,
29 pub st_blocks: ::blkcnt64_t,
30 pub st_atime: ::time_t,
31 pub st_atime_nsec: ::c_long,
32 pub st_mtime: ::time_t,
33 pub st_mtime_nsec: ::c_long,
34 pub st_ctime: ::time_t,
35 pub st_ctime_nsec: ::c_long,
36 __glibc_reserved4: ::c_ulong,
37 __glibc_reserved5: ::c_ulong,
38 }
39
40 pub struct shmid_ds {
41 pub shm_perm: ::ipc_perm,
42 __glibc_reserved1: ::c_uint,
43 pub shm_atime: ::time_t,
44 __glibc_reserved2: ::c_uint,
45 pub shm_dtime: ::time_t,
46 __glibc_reserved3: ::c_uint,
47 pub shm_ctime: ::time_t,
48 __glibc_reserved4: ::c_uint,
49 pub shm_segsz: ::size_t,
50 pub shm_cpid: ::pid_t,
51 pub shm_lpid: ::pid_t,
52 pub shm_nattch: ::shmatt_t,
53 __glibc_reserved5: ::c_ulong,
54 __glibc_reserved6: ::c_ulong,
55 }
56
57 pub struct msqid_ds {
58 pub msg_perm: ::ipc_perm,
59 __glibc_reserved1: ::c_uint,
60 pub msg_stime: ::time_t,
61 __glibc_reserved2: ::c_uint,
62 pub msg_rtime: ::time_t,
63 __glibc_reserved3: ::c_uint,
64 pub msg_ctime: ::time_t,
65 __msg_cbytes: ::c_ulong,
66 pub msg_qnum: ::msgqnum_t,
67 pub msg_qbytes: ::msglen_t,
68 pub msg_lspid: ::pid_t,
69 pub msg_lrpid: ::pid_t,
70 __glibc_reserved4: ::c_ulong,
71 __glibc_reserved5: ::c_ulong,
72 }
73}
74
75pub const O_DIRECT: ::c_int = 0x20000;
76pub const O_DIRECTORY: ::c_int = 0x4000;
77pub const O_NOFOLLOW: ::c_int = 0x8000;
78
79pub const MAP_LOCKED: ::c_int = 0x00080;
80pub const MAP_NORESERVE: ::c_int = 0x00040;
81
82pub const EDEADLOCK: ::c_int = 58;
83
8bb4bdeb
XL
84pub const SO_SNDBUFFORCE: ::c_int = 32;
85pub const SO_RCVBUFFORCE: ::c_int = 33;
86pub const SO_NO_CHECK: ::c_int = 11;
87pub const SO_PRIORITY: ::c_int = 12;
88pub const SO_BSDCOMPAT: ::c_int = 14;
476ff2be
SL
89pub const SO_RCVLOWAT: ::c_int = 16;
90pub const SO_SNDLOWAT: ::c_int = 17;
91pub const SO_RCVTIMEO: ::c_int = 18;
92pub const SO_SNDTIMEO: ::c_int = 19;
8bb4bdeb
XL
93pub const SO_PASSCRED: ::c_int = 20;
94pub const SO_PEERCRED: ::c_int = 21;
476ff2be
SL
95
96pub const FIOCLEX: ::c_ulong = 0x20006601;
97pub const FIONBIO: ::c_ulong = 0x8004667e;
98
99pub const SYS_gettid: ::c_long = 207;
100pub const SYS_perf_event_open: ::c_long = 319;
101
102pub const MCL_CURRENT: ::c_int = 0x2000;
103pub const MCL_FUTURE: ::c_int = 0x4000;
104
105pub const SIGSTKSZ: ::size_t = 0x4000;
7cac9316 106pub const MINSIGSTKSZ: ::size_t = 4096;
476ff2be
SL
107pub const CBAUD: ::tcflag_t = 0xff;
108pub const TAB1: ::c_int = 0x400;
109pub const TAB2: ::c_int = 0x800;
110pub const TAB3: ::c_int = 0xc00;
111pub const CR1: ::c_int = 0x1000;
112pub const CR2: ::c_int = 0x2000;
113pub const CR3: ::c_int = 0x3000;
114pub const FF1: ::c_int = 0x4000;
115pub const BS1: ::c_int = 0x8000;
116pub const VT1: ::c_int = 0x10000;
117pub const VWERASE: usize = 0xa;
118pub const VREPRINT: usize = 0xb;
119pub const VSUSP: usize = 0xc;
120pub const VSTART: usize = 0xd;
121pub const VSTOP: usize = 0xe;
122pub const VDISCARD: usize = 0x10;
123pub const VTIME: usize = 0x7;
124pub const IXON: ::tcflag_t = 0x200;
125pub const IXOFF: ::tcflag_t = 0x400;
126pub const ONLCR: ::tcflag_t = 0x2;
127pub const CSIZE: ::tcflag_t = 0x300;
128pub const CS6: ::tcflag_t = 0x100;
129pub const CS7: ::tcflag_t = 0x200;
130pub const CS8: ::tcflag_t = 0x300;
131pub const CSTOPB: ::tcflag_t = 0x400;
132pub const CREAD: ::tcflag_t = 0x800;
133pub const PARENB: ::tcflag_t = 0x1000;
134pub const PARODD: ::tcflag_t = 0x2000;
135pub const HUPCL: ::tcflag_t = 0x4000;
136pub const CLOCAL: ::tcflag_t = 0x8000;
137pub const ECHOKE: ::tcflag_t = 0x1;
138pub const ECHOE: ::tcflag_t = 0x2;
139pub const ECHOK: ::tcflag_t = 0x4;
140pub const ECHONL: ::tcflag_t = 0x10;
141pub const ECHOPRT: ::tcflag_t = 0x20;
142pub const ECHOCTL: ::tcflag_t = 0x40;
143pub const ISIG: ::tcflag_t = 0x80;
144pub const ICANON: ::tcflag_t = 0x100;
145pub const PENDIN: ::tcflag_t = 0x20000000;
146pub const NOFLSH: ::tcflag_t = 0x80000000;
147
8bb4bdeb
XL
148pub const B0: ::speed_t = 0o000000;
149pub const B50: ::speed_t = 0o000001;
150pub const B75: ::speed_t = 0o000002;
151pub const B110: ::speed_t = 0o000003;
152pub const B134: ::speed_t = 0o000004;
153pub const B150: ::speed_t = 0o000005;
154pub const B200: ::speed_t = 0o000006;
155pub const B300: ::speed_t = 0o000007;
156pub const B600: ::speed_t = 0o000010;
157pub const B1200: ::speed_t = 0o000011;
158pub const B1800: ::speed_t = 0o000012;
159pub const B2400: ::speed_t = 0o000013;
160pub const B4800: ::speed_t = 0o000014;
161pub const B9600: ::speed_t = 0o000015;
162pub const B19200: ::speed_t = 0o000016;
163pub const B38400: ::speed_t = 0o000017;
164pub const EXTA: ::speed_t = B19200;
165pub const EXTB: ::speed_t = B38400;
166pub const CBAUDEX: ::speed_t = 0o000020;
167pub const B57600: ::speed_t = 0o0020;
168pub const B115200: ::speed_t = 0o0021;
169pub const B230400: ::speed_t = 0o0022;
170pub const B460800: ::speed_t = 0o0023;
171pub const B500000: ::speed_t = 0o0024;
172pub const B576000: ::speed_t = 0o0025;
173pub const B921600: ::speed_t = 0o0026;
174pub const B1000000: ::speed_t = 0o0027;
175pub const B1152000: ::speed_t = 0o0030;
176pub const B1500000: ::speed_t = 0o0031;
177pub const B2000000: ::speed_t = 0o0032;
178pub const B2500000: ::speed_t = 0o0033;
179pub const B3000000: ::speed_t = 0o0034;
180pub const B3500000: ::speed_t = 0o0035;
181pub const B4000000: ::speed_t = 0o0036;
182
476ff2be
SL
183pub const VEOL: usize = 6;
184pub const VEOL2: usize = 8;
185pub const VMIN: usize = 5;
186pub const IEXTEN: ::tcflag_t = 0x400;
187pub const TOSTOP: ::tcflag_t = 0x400000;
188pub const FLUSHO: ::tcflag_t = 0x800000;
189pub const EXTPROC: ::tcflag_t = 0x10000000;
190pub const TCGETS: ::c_ulong = 0x403c7413;
191pub const TCSETS: ::c_ulong = 0x803c7414;
192pub const TCSETSW: ::c_ulong = 0x803c7415;
193pub const TCSETSF: ::c_ulong = 0x803c7416;
194pub const TCGETA: ::c_ulong = 0x40147417;
195pub const TCSETA: ::c_ulong = 0x80147418;
196pub const TCSETAW: ::c_ulong = 0x80147419;
197pub const TCSETAF: ::c_ulong = 0x8014741c;
198pub const TCSBRK: ::c_ulong = 0x2000741d;
199pub const TCXONC: ::c_ulong = 0x2000741e;
200pub const TCFLSH: ::c_ulong = 0x2000741f;
201pub const TIOCINQ: ::c_ulong = 0x4004667f;
202pub const TIOCGPGRP: ::c_ulong = 0x40047477;
203pub const TIOCSPGRP: ::c_ulong = 0x80047476;
204pub const TIOCOUTQ: ::c_ulong = 0x40047473;
205pub const TIOCGWINSZ: ::c_ulong = 0x40087468;
206pub const TIOCSWINSZ: ::c_ulong = 0x80087467;
207pub const FIONREAD: ::c_ulong = 0x4004667f;