1 //! SPARC64-specific definitions for 64-bit linux-like values
4 pub type wchar_t
= i32;
5 pub type nlink_t
= u32;
6 pub type blksize_t
= i64;
7 pub type suseconds_t
= i32;
8 pub type __u64
= ::c_ulonglong
;
15 pub st_mode
: ::mode_t
,
16 pub st_nlink
: ::nlink_t
,
22 pub st_blksize
: ::blksize_t
,
23 pub st_blocks
: ::blkcnt_t
,
24 pub st_atime
: ::time_t
,
25 pub st_atime_nsec
: ::c_long
,
26 pub st_mtime
: ::time_t
,
27 pub st_mtime_nsec
: ::c_long
,
28 pub st_ctime
: ::time_t
,
29 pub st_ctime_nsec
: ::c_long
,
30 __unused
: [::c_long
; 2],
36 pub st_ino
: ::ino64_t
,
37 pub st_mode
: ::mode_t
,
38 pub st_nlink
: ::nlink_t
,
43 pub st_size
: ::off64_t
,
44 pub st_blksize
: ::blksize_t
,
45 pub st_blocks
: ::blkcnt64_t
,
46 pub st_atime
: ::time_t
,
47 pub st_atime_nsec
: ::c_long
,
48 pub st_mtime
: ::time_t
,
49 pub st_mtime_nsec
: ::c_long
,
50 pub st_ctime
: ::time_t
,
51 pub st_ctime_nsec
: ::c_long
,
52 __reserved
: [::c_long
; 2],
55 pub struct pthread_attr_t
{
67 pub __seq
: ::c_ushort
,
68 __unused1
: ::c_ulonglong
,
69 __unused2
: ::c_ulonglong
,
73 pub shm_perm
: ::ipc_perm
,
74 pub shm_atime
: ::time_t
,
75 pub shm_dtime
: ::time_t
,
76 pub shm_ctime
: ::time_t
,
77 pub shm_segsz
: ::size_t
,
78 pub shm_cpid
: ::pid_t
,
79 pub shm_lpid
: ::pid_t
,
80 pub shm_nattch
: ::shmatt_t
,
81 __reserved1
: ::c_ulong
,
82 __reserved2
: ::c_ulong
86 pub const TIOCGSOFTCAR
: ::c_ulong
= 0x40047464;
87 pub const TIOCSSOFTCAR
: ::c_ulong
= 0x80047465;
89 pub const RLIMIT_NOFILE
: ::c_int
= 6;
90 pub const RLIMIT_NPROC
: ::c_int
= 7;
92 pub const O_APPEND
: ::c_int
= 0x8;
93 pub const O_CREAT
: ::c_int
= 0x200;
94 pub const O_EXCL
: ::c_int
= 0x800;
95 pub const O_NOCTTY
: ::c_int
= 0x8000;
96 pub const O_NONBLOCK
: ::c_int
= 0x4000;
97 pub const O_SYNC
: ::c_int
= 0x802000;
98 pub const O_RSYNC
: ::c_int
= 0x802000;
99 pub const O_DSYNC
: ::c_int
= 0x2000;
100 pub const O_FSYNC
: ::c_int
= 0x802000;
102 pub const MAP_GROWSDOWN
: ::c_int
= 0x0200;
104 pub const EDEADLK
: ::c_int
= 78;
105 pub const ENAMETOOLONG
: ::c_int
= 63;
106 pub const ENOLCK
: ::c_int
= 79;
107 pub const ENOSYS
: ::c_int
= 90;
108 pub const ENOTEMPTY
: ::c_int
= 66;
109 pub const ELOOP
: ::c_int
= 62;
110 pub const ENOMSG
: ::c_int
= 75;
111 pub const EIDRM
: ::c_int
= 77;
112 pub const ECHRNG
: ::c_int
= 94;
113 pub const EL2NSYNC
: ::c_int
= 95;
114 pub const EL3HLT
: ::c_int
= 96;
115 pub const EL3RST
: ::c_int
= 97;
116 pub const ELNRNG
: ::c_int
= 98;
117 pub const EUNATCH
: ::c_int
= 99;
118 pub const ENOCSI
: ::c_int
= 100;
119 pub const EL2HLT
: ::c_int
= 101;
120 pub const EBADE
: ::c_int
= 102;
121 pub const EBADR
: ::c_int
= 103;
122 pub const EXFULL
: ::c_int
= 104;
123 pub const ENOANO
: ::c_int
= 105;
124 pub const EBADRQC
: ::c_int
= 106;
125 pub const EBADSLT
: ::c_int
= 107;
126 pub const EMULTIHOP
: ::c_int
= 87;
127 pub const EOVERFLOW
: ::c_int
= 92;
128 pub const ENOTUNIQ
: ::c_int
= 115;
129 pub const EBADFD
: ::c_int
= 93;
130 pub const EBADMSG
: ::c_int
= 76;
131 pub const EREMCHG
: ::c_int
= 89;
132 pub const ELIBACC
: ::c_int
= 114;
133 pub const ELIBBAD
: ::c_int
= 112;
134 pub const ELIBSCN
: ::c_int
= 124;
135 pub const ELIBMAX
: ::c_int
= 123;
136 pub const ELIBEXEC
: ::c_int
= 110;
137 pub const EILSEQ
: ::c_int
= 122;
138 pub const ERESTART
: ::c_int
= 116;
139 pub const ESTRPIPE
: ::c_int
= 91;
140 pub const EUSERS
: ::c_int
= 68;
141 pub const ENOTSOCK
: ::c_int
= 38;
142 pub const EDESTADDRREQ
: ::c_int
= 39;
143 pub const EMSGSIZE
: ::c_int
= 40;
144 pub const EPROTOTYPE
: ::c_int
= 41;
145 pub const ENOPROTOOPT
: ::c_int
= 42;
146 pub const EPROTONOSUPPORT
: ::c_int
= 43;
147 pub const ESOCKTNOSUPPORT
: ::c_int
= 44;
148 pub const EOPNOTSUPP
: ::c_int
= 45;
149 pub const EPFNOSUPPORT
: ::c_int
= 46;
150 pub const EAFNOSUPPORT
: ::c_int
= 47;
151 pub const EADDRINUSE
: ::c_int
= 48;
152 pub const EADDRNOTAVAIL
: ::c_int
= 49;
153 pub const ENETDOWN
: ::c_int
= 50;
154 pub const ENETUNREACH
: ::c_int
= 51;
155 pub const ENETRESET
: ::c_int
= 52;
156 pub const ECONNABORTED
: ::c_int
= 53;
157 pub const ECONNRESET
: ::c_int
= 54;
158 pub const ENOBUFS
: ::c_int
= 55;
159 pub const EISCONN
: ::c_int
= 56;
160 pub const ENOTCONN
: ::c_int
= 57;
161 pub const ESHUTDOWN
: ::c_int
= 58;
162 pub const ETOOMANYREFS
: ::c_int
= 59;
163 pub const ETIMEDOUT
: ::c_int
= 60;
164 pub const ECONNREFUSED
: ::c_int
= 61;
165 pub const EHOSTDOWN
: ::c_int
= 64;
166 pub const EHOSTUNREACH
: ::c_int
= 65;
167 pub const EALREADY
: ::c_int
= 37;
168 pub const EINPROGRESS
: ::c_int
= 36;
169 pub const ESTALE
: ::c_int
= 70;
170 pub const EDQUOT
: ::c_int
= 69;
171 pub const ENOMEDIUM
: ::c_int
= 125;
172 pub const EMEDIUMTYPE
: ::c_int
= 126;
173 pub const ECANCELED
: ::c_int
= 127;
174 pub const ENOKEY
: ::c_int
= 128;
175 pub const EKEYEXPIRED
: ::c_int
= 129;
176 pub const EKEYREVOKED
: ::c_int
= 130;
177 pub const EKEYREJECTED
: ::c_int
= 131;
178 pub const EOWNERDEAD
: ::c_int
= 132;
179 pub const ENOTRECOVERABLE
: ::c_int
= 133;
180 pub const EHWPOISON
: ::c_int
= 135;
181 pub const ERFKILL
: ::c_int
= 134;
183 pub const SOL_SOCKET
: ::c_int
= 0xffff;
185 pub const SO_REUSEADDR
: ::c_int
= 4;
186 pub const SO_BINDTODEVICE
: ::c_int
= 0x000d;
187 pub const SO_TIMESTAMP
: ::c_int
= 0x001d;
188 pub const SO_MARK
: ::c_int
= 0x0022;
189 pub const SO_RXQ_OVFL
: ::c_int
= 0x0024;
190 pub const SO_PEEK_OFF
: ::c_int
= 0x0026;
191 pub const SO_BUSY_POLL
: ::c_int
= 0x0030;
192 pub const SO_TYPE
: ::c_int
= 0x1008;
193 pub const SO_ERROR
: ::c_int
= 0x1007;
194 pub const SO_DONTROUTE
: ::c_int
= 16;
195 pub const SO_BROADCAST
: ::c_int
= 32;
196 pub const SO_SNDBUF
: ::c_int
= 0x1001;
197 pub const SO_RCVBUF
: ::c_int
= 0x1002;
198 pub const SO_DOMAIN
: ::c_int
= 0x1029;
199 pub const SO_KEEPALIVE
: ::c_int
= 8;
200 pub const SO_OOBINLINE
: ::c_int
= 0x100;
201 pub const SO_LINGER
: ::c_int
= 128;
202 pub const SO_REUSEPORT
: ::c_int
= 0x200;
203 pub const SO_ACCEPTCONN
: ::c_int
= 0x8000;
205 pub const SA_ONSTACK
: ::c_int
= 1;
206 pub const SA_SIGINFO
: ::c_int
= 0x200;
207 pub const SA_NOCLDWAIT
: ::c_int
= 0x100;
209 pub const SIGCHLD
: ::c_int
= 20;
210 pub const SIGBUS
: ::c_int
= 10;
211 pub const SIGUSR1
: ::c_int
= 30;
212 pub const SIGUSR2
: ::c_int
= 31;
213 pub const SIGCONT
: ::c_int
= 19;
214 pub const SIGSTOP
: ::c_int
= 17;
215 pub const SIGTSTP
: ::c_int
= 18;
216 pub const SIGURG
: ::c_int
= 16;
217 pub const SIGIO
: ::c_int
= 23;
218 pub const SIGSYS
: ::c_int
= 12;
219 pub const SIGPOLL
: ::c_int
= 23;
220 pub const SIGPWR
: ::c_int
= 29;
221 pub const SIG_SETMASK
: ::c_int
= 4;
222 pub const SIG_BLOCK
: ::c_int
= 1;
223 pub const SIG_UNBLOCK
: ::c_int
= 2;
225 pub const POLLWRNORM
: ::c_short
= 4;
226 pub const POLLWRBAND
: ::c_short
= 0x100;
228 pub const O_ASYNC
: ::c_int
= 0x40;
229 pub const O_NDELAY
: ::c_int
= 0x4004;
231 pub const PTRACE_DETACH
: ::c_uint
= 11;
233 pub const EFD_NONBLOCK
: ::c_int
= 0x4000;
235 pub const F_GETLK
: ::c_int
= 7;
236 pub const F_GETOWN
: ::c_int
= 5;
237 pub const F_SETOWN
: ::c_int
= 6;
238 pub const F_SETLK
: ::c_int
= 8;
239 pub const F_SETLKW
: ::c_int
= 9;
241 pub const SFD_NONBLOCK
: ::c_int
= 0x4000;
243 pub const TIOCEXCL
: ::c_ulong
= 0x2000740d;
244 pub const TIOCNXCL
: ::c_ulong
= 0x2000740e;
245 pub const TIOCSCTTY
: ::c_ulong
= 0x20007484;
246 pub const TIOCSTI
: ::c_ulong
= 0x80017472;
247 pub const TIOCMGET
: ::c_ulong
= 0x4004746a;
248 pub const TIOCMBIS
: ::c_ulong
= 0x8004746c;
249 pub const TIOCMBIC
: ::c_ulong
= 0x8004746b;
250 pub const TIOCMSET
: ::c_ulong
= 0x8004746d;
251 pub const TIOCCONS
: ::c_ulong
= 0x20007424;
253 pub const SFD_CLOEXEC
: ::c_int
= 0x400000;
255 pub const NCCS
: usize = 17;
256 pub const O_TRUNC
: ::c_int
= 0x400;
258 pub const O_CLOEXEC
: ::c_int
= 0x400000;
260 pub const EBFONT
: ::c_int
= 109;
261 pub const ENOSTR
: ::c_int
= 72;
262 pub const ENODATA
: ::c_int
= 111;
263 pub const ETIME
: ::c_int
= 73;
264 pub const ENOSR
: ::c_int
= 74;
265 pub const ENONET
: ::c_int
= 80;
266 pub const ENOPKG
: ::c_int
= 113;
267 pub const EREMOTE
: ::c_int
= 71;
268 pub const ENOLINK
: ::c_int
= 82;
269 pub const EADV
: ::c_int
= 83;
270 pub const ESRMNT
: ::c_int
= 84;
271 pub const ECOMM
: ::c_int
= 85;
272 pub const EPROTO
: ::c_int
= 86;
273 pub const EDOTDOT
: ::c_int
= 88;
275 pub const SA_NODEFER
: ::c_int
= 0x20;
276 pub const SA_RESETHAND
: ::c_int
= 0x4;
277 pub const SA_RESTART
: ::c_int
= 0x2;
278 pub const SA_NOCLDSTOP
: ::c_int
= 0x00000008;
280 pub const EPOLL_CLOEXEC
: ::c_int
= 0x400000;
282 pub const EFD_CLOEXEC
: ::c_int
= 0x400000;
283 pub const __SIZEOF_PTHREAD_CONDATTR_T
: usize = 4;
284 pub const __SIZEOF_PTHREAD_MUTEX_T
: usize = 40;
285 pub const __SIZEOF_PTHREAD_MUTEXATTR_T
: usize = 4;
287 pub const O_DIRECTORY
: ::c_int
= 0o200000;
288 pub const O_NOFOLLOW
: ::c_int
= 0o400000;
289 pub const O_DIRECT
: ::c_int
= 0x100000;
291 pub const MAP_LOCKED
: ::c_int
= 0x0100;
292 pub const MAP_NORESERVE
: ::c_int
= 0x00040;
294 pub const EDEADLOCK
: ::c_int
= 108;
296 pub const SO_PEERCRED
: ::c_int
= 0x40;
297 pub const SO_RCVLOWAT
: ::c_int
= 0x800;
298 pub const SO_SNDLOWAT
: ::c_int
= 0x1000;
299 pub const SO_RCVTIMEO
: ::c_int
= 0x2000;
300 pub const SO_SNDTIMEO
: ::c_int
= 0x4000;
302 pub const FIOCLEX
: ::c_ulong
= 0x20006601;
303 pub const FIONBIO
: ::c_ulong
= 0x8004667e;
305 pub const SYS_gettid
: ::c_long
= 143;
306 pub const SYS_perf_event_open
: ::c_long
= 327;
308 pub const MCL_CURRENT
: ::c_int
= 0x2000;
309 pub const MCL_FUTURE
: ::c_int
= 0x4000;
311 pub const SIGSTKSZ
: ::size_t
= 16384;
312 pub const MINSIGSTKSZ
: ::size_t
= 4096;
313 pub const CBAUD
: ::tcflag_t
= 0x0000100f;
314 pub const TAB1
: ::c_int
= 0x800;
315 pub const TAB2
: ::c_int
= 0x1000;
316 pub const TAB3
: ::c_int
= 0x1800;
317 pub const CR1
: ::c_int
= 0x200;
318 pub const CR2
: ::c_int
= 0x400;
319 pub const CR3
: ::c_int
= 0x600;
320 pub const FF1
: ::c_int
= 0x8000;
321 pub const BS1
: ::c_int
= 0x2000;
322 pub const VT1
: ::c_int
= 0x4000;
323 pub const VWERASE
: usize = 0xe;
324 pub const VREPRINT
: usize = 0xc;
325 pub const VSUSP
: usize = 0xa;
326 pub const VSTART
: usize = 0x8;
327 pub const VSTOP
: usize = 0x9;
328 pub const VDISCARD
: usize = 0xd;
329 pub const VTIME
: usize = 0x5;
330 pub const IXON
: ::tcflag_t
= 0x400;
331 pub const IXOFF
: ::tcflag_t
= 0x1000;
332 pub const ONLCR
: ::tcflag_t
= 0x4;
333 pub const CSIZE
: ::tcflag_t
= 0x30;
334 pub const CS6
: ::tcflag_t
= 0x10;
335 pub const CS7
: ::tcflag_t
= 0x20;
336 pub const CS8
: ::tcflag_t
= 0x30;
337 pub const CSTOPB
: ::tcflag_t
= 0x40;
338 pub const CREAD
: ::tcflag_t
= 0x80;
339 pub const PARENB
: ::tcflag_t
= 0x100;
340 pub const PARODD
: ::tcflag_t
= 0x200;
341 pub const HUPCL
: ::tcflag_t
= 0x400;
342 pub const CLOCAL
: ::tcflag_t
= 0x800;
343 pub const ECHOKE
: ::tcflag_t
= 0x800;
344 pub const ECHOE
: ::tcflag_t
= 0x10;
345 pub const ECHOK
: ::tcflag_t
= 0x20;
346 pub const ECHONL
: ::tcflag_t
= 0x40;
347 pub const ECHOPRT
: ::tcflag_t
= 0x400;
348 pub const ECHOCTL
: ::tcflag_t
= 0x200;
349 pub const ISIG
: ::tcflag_t
= 0x1;
350 pub const ICANON
: ::tcflag_t
= 0x2;
351 pub const PENDIN
: ::tcflag_t
= 0x4000;
352 pub const NOFLSH
: ::tcflag_t
= 0x80;
353 pub const CIBAUD
: ::tcflag_t
= 0o02003600000;
354 pub const CBAUDEX
: ::tcflag_t
= 0x00001000;
355 pub const VSWTC
: usize = 7;
356 pub const OLCUC
: ::tcflag_t
= 0o000002;
357 pub const NLDLY
: ::tcflag_t
= 0o000400;
358 pub const CRDLY
: ::tcflag_t
= 0o003000;
359 pub const TABDLY
: ::tcflag_t
= 0o014000;
360 pub const BSDLY
: ::tcflag_t
= 0o020000;
361 pub const FFDLY
: ::tcflag_t
= 0o100000;
362 pub const VTDLY
: ::tcflag_t
= 0o040000;
363 pub const XTABS
: ::tcflag_t
= 0o014000;
365 pub const VEOL
: usize = 5;
366 pub const VEOL2
: usize = 6;
367 pub const VMIN
: usize = 4;
368 pub const IEXTEN
: ::tcflag_t
= 0x8000;
369 pub const TOSTOP
: ::tcflag_t
= 0x100;
370 pub const FLUSHO
: ::tcflag_t
= 0x2000;
371 pub const EXTPROC
: ::tcflag_t
= 0x10000;
372 pub const TCGETS
: ::c_ulong
= 0x40245408;
373 pub const TCSETS
: ::c_ulong
= 0x80245409;
374 pub const TCSETSW
: ::c_ulong
= 0x8024540a;
375 pub const TCSETSF
: ::c_ulong
= 0x8024540b;
376 pub const TCGETA
: ::c_ulong
= 0x40125401;
377 pub const TCSETA
: ::c_ulong
= 0x80125402;
378 pub const TCSETAW
: ::c_ulong
= 0x80125403;
379 pub const TCSETAF
: ::c_ulong
= 0x80125404;
380 pub const TCSBRK
: ::c_ulong
= 0x20005405;
381 pub const TCXONC
: ::c_ulong
= 0x20005406;
382 pub const TCFLSH
: ::c_ulong
= 0x20005407;
383 pub const TIOCINQ
: ::c_ulong
= 0x4004667f;
384 pub const TIOCGPGRP
: ::c_ulong
= 0x40047483;
385 pub const TIOCSPGRP
: ::c_ulong
= 0x80047482;
386 pub const TIOCOUTQ
: ::c_ulong
= 0x40047473;
387 pub const TIOCGWINSZ
: ::c_ulong
= 0x40087468;
388 pub const TIOCSWINSZ
: ::c_ulong
= 0x80087467;
389 pub const FIONREAD
: ::c_ulong
= 0x4004667f;