]> git.proxmox.com Git - rustc.git/blame - src/vendor/libc/src/unix/notbsd/linux/other/b32/powerpc.rs
New upstream version 1.20.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;
476ff2be
SL
87pub const SO_RCVLOWAT: ::c_int = 16;
88pub const SO_SNDLOWAT: ::c_int = 17;
89pub const SO_RCVTIMEO: ::c_int = 18;
90pub const SO_SNDTIMEO: ::c_int = 19;
8bb4bdeb
XL
91pub const SO_PASSCRED: ::c_int = 20;
92pub const SO_PEERCRED: ::c_int = 21;
476ff2be
SL
93
94pub const FIOCLEX: ::c_ulong = 0x20006601;
95pub const FIONBIO: ::c_ulong = 0x8004667e;
96
97pub const SYS_gettid: ::c_long = 207;
98pub const SYS_perf_event_open: ::c_long = 319;
99
100pub const MCL_CURRENT: ::c_int = 0x2000;
101pub const MCL_FUTURE: ::c_int = 0x4000;
102
103pub const SIGSTKSZ: ::size_t = 0x4000;
7cac9316 104pub const MINSIGSTKSZ: ::size_t = 4096;
476ff2be
SL
105pub const CBAUD: ::tcflag_t = 0xff;
106pub const TAB1: ::c_int = 0x400;
107pub const TAB2: ::c_int = 0x800;
108pub const TAB3: ::c_int = 0xc00;
109pub const CR1: ::c_int = 0x1000;
110pub const CR2: ::c_int = 0x2000;
111pub const CR3: ::c_int = 0x3000;
112pub const FF1: ::c_int = 0x4000;
113pub const BS1: ::c_int = 0x8000;
114pub const VT1: ::c_int = 0x10000;
115pub const VWERASE: usize = 0xa;
116pub const VREPRINT: usize = 0xb;
117pub const VSUSP: usize = 0xc;
118pub const VSTART: usize = 0xd;
119pub const VSTOP: usize = 0xe;
120pub const VDISCARD: usize = 0x10;
121pub const VTIME: usize = 0x7;
122pub const IXON: ::tcflag_t = 0x200;
123pub const IXOFF: ::tcflag_t = 0x400;
124pub const ONLCR: ::tcflag_t = 0x2;
125pub const CSIZE: ::tcflag_t = 0x300;
126pub const CS6: ::tcflag_t = 0x100;
127pub const CS7: ::tcflag_t = 0x200;
128pub const CS8: ::tcflag_t = 0x300;
129pub const CSTOPB: ::tcflag_t = 0x400;
130pub const CREAD: ::tcflag_t = 0x800;
131pub const PARENB: ::tcflag_t = 0x1000;
132pub const PARODD: ::tcflag_t = 0x2000;
133pub const HUPCL: ::tcflag_t = 0x4000;
134pub const CLOCAL: ::tcflag_t = 0x8000;
135pub const ECHOKE: ::tcflag_t = 0x1;
136pub const ECHOE: ::tcflag_t = 0x2;
137pub const ECHOK: ::tcflag_t = 0x4;
138pub const ECHONL: ::tcflag_t = 0x10;
139pub const ECHOPRT: ::tcflag_t = 0x20;
140pub const ECHOCTL: ::tcflag_t = 0x40;
141pub const ISIG: ::tcflag_t = 0x80;
142pub const ICANON: ::tcflag_t = 0x100;
143pub const PENDIN: ::tcflag_t = 0x20000000;
144pub const NOFLSH: ::tcflag_t = 0x80000000;
041b39d2
XL
145pub const VSWTC: usize = 9;
146pub const OLCUC: ::tcflag_t = 0o000004;
147pub const NLDLY: ::tcflag_t = 0o001400;
148pub const CRDLY: ::tcflag_t = 0o030000;
149pub const TABDLY: ::tcflag_t = 0o006000;
150pub const BSDLY: ::tcflag_t = 0o100000;
151pub const FFDLY: ::tcflag_t = 0o040000;
152pub const VTDLY: ::tcflag_t = 0o200000;
153pub const XTABS: ::tcflag_t = 0o006000;
476ff2be 154
8bb4bdeb
XL
155pub const B0: ::speed_t = 0o000000;
156pub const B50: ::speed_t = 0o000001;
157pub const B75: ::speed_t = 0o000002;
158pub const B110: ::speed_t = 0o000003;
159pub const B134: ::speed_t = 0o000004;
160pub const B150: ::speed_t = 0o000005;
161pub const B200: ::speed_t = 0o000006;
162pub const B300: ::speed_t = 0o000007;
163pub const B600: ::speed_t = 0o000010;
164pub const B1200: ::speed_t = 0o000011;
165pub const B1800: ::speed_t = 0o000012;
166pub const B2400: ::speed_t = 0o000013;
167pub const B4800: ::speed_t = 0o000014;
168pub const B9600: ::speed_t = 0o000015;
169pub const B19200: ::speed_t = 0o000016;
170pub const B38400: ::speed_t = 0o000017;
171pub const EXTA: ::speed_t = B19200;
172pub const EXTB: ::speed_t = B38400;
173pub const CBAUDEX: ::speed_t = 0o000020;
174pub const B57600: ::speed_t = 0o0020;
175pub const B115200: ::speed_t = 0o0021;
176pub const B230400: ::speed_t = 0o0022;
177pub const B460800: ::speed_t = 0o0023;
178pub const B500000: ::speed_t = 0o0024;
179pub const B576000: ::speed_t = 0o0025;
180pub const B921600: ::speed_t = 0o0026;
181pub const B1000000: ::speed_t = 0o0027;
182pub const B1152000: ::speed_t = 0o0030;
183pub const B1500000: ::speed_t = 0o0031;
184pub const B2000000: ::speed_t = 0o0032;
185pub const B2500000: ::speed_t = 0o0033;
186pub const B3000000: ::speed_t = 0o0034;
187pub const B3500000: ::speed_t = 0o0035;
188pub const B4000000: ::speed_t = 0o0036;
189
476ff2be
SL
190pub const VEOL: usize = 6;
191pub const VEOL2: usize = 8;
192pub const VMIN: usize = 5;
193pub const IEXTEN: ::tcflag_t = 0x400;
194pub const TOSTOP: ::tcflag_t = 0x400000;
195pub const FLUSHO: ::tcflag_t = 0x800000;
196pub const EXTPROC: ::tcflag_t = 0x10000000;
197pub const TCGETS: ::c_ulong = 0x403c7413;
198pub const TCSETS: ::c_ulong = 0x803c7414;
199pub const TCSETSW: ::c_ulong = 0x803c7415;
200pub const TCSETSF: ::c_ulong = 0x803c7416;
201pub const TCGETA: ::c_ulong = 0x40147417;
202pub const TCSETA: ::c_ulong = 0x80147418;
203pub const TCSETAW: ::c_ulong = 0x80147419;
204pub const TCSETAF: ::c_ulong = 0x8014741c;
205pub const TCSBRK: ::c_ulong = 0x2000741d;
206pub const TCXONC: ::c_ulong = 0x2000741e;
207pub const TCFLSH: ::c_ulong = 0x2000741f;
208pub const TIOCINQ: ::c_ulong = 0x4004667f;
209pub const TIOCGPGRP: ::c_ulong = 0x40047477;
210pub const TIOCSPGRP: ::c_ulong = 0x80047476;
211pub const TIOCOUTQ: ::c_ulong = 0x40047473;
212pub const TIOCGWINSZ: ::c_ulong = 0x40087468;
213pub const TIOCSWINSZ: ::c_ulong = 0x80087467;
214pub const FIONREAD: ::c_ulong = 0x4004667f;