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