2 pub type pthread_attr_t
= *mut ::c_void
;
4 pub type pthread_mutex_t
= *mut ::c_void
;
5 pub type pthread_mutexattr_t
= *mut ::c_void
;
6 pub type pthread_cond_t
= *mut ::c_void
;
7 pub type pthread_condattr_t
= *mut ::c_void
;
8 pub type pthread_rwlock_t
= *mut ::c_void
;
9 pub type pthread_rwlockattr_t
= *mut ::c_void
;
10 pub type pthread_key_t
= ::c_int
;
11 pub type tcflag_t
= ::c_uint
;
12 pub type speed_t
= ::c_uint
;
13 pub type nl_item
= ::c_int
;
15 pub type vm_size_t
= ::uintptr_t
;
19 pub type Elf32_Addr
= u32;
20 pub type Elf32_Half
= u16;
21 pub type Elf32_Lword
= u64;
22 pub type Elf32_Off
= u32;
23 pub type Elf32_Sword
= i32;
24 pub type Elf32_Word
= u32;
26 pub type Elf64_Addr
= u64;
27 pub type Elf64_Half
= u16;
28 pub type Elf64_Lword
= u64;
29 pub type Elf64_Off
= u64;
30 pub type Elf64_Sword
= i32;
31 pub type Elf64_Sxword
= i64;
32 pub type Elf64_Word
= u32;
33 pub type Elf64_Xword
= u64;
35 pub type iconv_t
= *mut ::c_void
;
38 if #[cfg(target_pointer_width = "64")] {
39 type Elf_Addr
= Elf64_Addr
;
40 type Elf_Half
= Elf64_Half
;
41 type Elf_Phdr
= Elf64_Phdr
;
42 } else if #[cfg(target_pointer_width = "32")] {
43 type Elf_Addr
= Elf32_Addr
;
44 type Elf_Half
= Elf32_Half
;
45 type Elf_Phdr
= Elf32_Phdr
;
51 #[cfg_attr(feature = "extra_traits", derive(Debug))]
53 impl ::Copy
for timezone {}
54 impl ::Clone
for timezone
{
55 fn clone(&self) -> timezone
{
61 pub unsafe fn si_addr(&self) -> *mut ::c_void
{
65 pub unsafe fn si_value(&self) -> ::sigval
{
69 pub unsafe fn si_pid(&self) -> ::pid_t
{
73 pub unsafe fn si_uid(&self) -> ::uid_t
{
77 pub unsafe fn si_status(&self) -> ::c_int
{
84 pub s_addr
: ::in_addr_t
,
88 pub imr_multiaddr
: in_addr
,
89 pub imr_interface
: in_addr
,
93 pub gl_pathc
: ::size_t
,
94 pub gl_matchc
: ::size_t
,
95 pub gl_offs
: ::size_t
,
96 pub gl_flags
: ::c_int
,
97 pub gl_pathv
: *mut *mut ::c_char
,
98 __unused3
: *mut ::c_void
,
99 __unused4
: *mut ::c_void
,
100 __unused5
: *mut ::c_void
,
101 __unused6
: *mut ::c_void
,
102 __unused7
: *mut ::c_void
,
103 __unused8
: *mut ::c_void
,
106 pub struct addrinfo
{
107 pub ai_flags
: ::c_int
,
108 pub ai_family
: ::c_int
,
109 pub ai_socktype
: ::c_int
,
110 pub ai_protocol
: ::c_int
,
111 pub ai_addrlen
: ::socklen_t
,
112 pub ai_canonname
: *mut ::c_char
,
113 pub ai_addr
: *mut ::sockaddr
,
114 pub ai_next
: *mut addrinfo
,
117 pub struct sigset_t
{
121 pub struct siginfo_t
{
122 pub si_signo
: ::c_int
,
123 pub si_errno
: ::c_int
,
124 pub si_code
: ::c_int
,
127 pub si_status
: ::c_int
,
128 pub si_addr
: *mut ::c_void
,
129 pub si_value
: ::sigval
,
134 pub struct sigaction
{
135 pub sa_sigaction
: ::sighandler_t
,
136 pub sa_flags
: ::c_int
,
137 pub sa_mask
: sigset_t
,
140 pub struct sched_param
{
141 pub sched_priority
: ::c_int
,
145 pub dli_fname
: *const ::c_char
,
146 pub dli_fbase
: *mut ::c_void
,
147 pub dli_sname
: *const ::c_char
,
148 pub dli_saddr
: *mut ::c_void
,
151 pub struct sockaddr_in
{
153 pub sin_family
: ::sa_family_t
,
154 pub sin_port
: ::in_port_t
,
155 pub sin_addr
: ::in_addr
,
156 pub sin_zero
: [::c_char
; 8],
160 pub c_iflag
: ::tcflag_t
,
161 pub c_oflag
: ::tcflag_t
,
162 pub c_cflag
: ::tcflag_t
,
163 pub c_lflag
: ::tcflag_t
,
164 pub c_cc
: [::cc_t
; ::NCCS
],
165 pub c_ispeed
: ::speed_t
,
166 pub c_ospeed
: ::speed_t
,
170 pub l_start
: ::off_t
,
173 pub l_type
: ::c_short
,
174 pub l_whence
: ::c_short
,
175 #[cfg(not(target_os = "dragonfly"))]
176 pub l_sysid
: ::c_int
,
180 pub headers
: *mut ::iovec
,
181 pub hdr_cnt
: ::c_int
,
182 pub trailers
: *mut ::iovec
,
183 pub trl_cnt
: ::c_int
,
187 pub decimal_point
: *mut ::c_char
,
188 pub thousands_sep
: *mut ::c_char
,
189 pub grouping
: *mut ::c_char
,
190 pub int_curr_symbol
: *mut ::c_char
,
191 pub currency_symbol
: *mut ::c_char
,
192 pub mon_decimal_point
: *mut ::c_char
,
193 pub mon_thousands_sep
: *mut ::c_char
,
194 pub mon_grouping
: *mut ::c_char
,
195 pub positive_sign
: *mut ::c_char
,
196 pub negative_sign
: *mut ::c_char
,
197 pub int_frac_digits
: ::c_char
,
198 pub frac_digits
: ::c_char
,
199 pub p_cs_precedes
: ::c_char
,
200 pub p_sep_by_space
: ::c_char
,
201 pub n_cs_precedes
: ::c_char
,
202 pub n_sep_by_space
: ::c_char
,
203 pub p_sign_posn
: ::c_char
,
204 pub n_sign_posn
: ::c_char
,
205 pub int_p_cs_precedes
: ::c_char
,
206 pub int_n_cs_precedes
: ::c_char
,
207 pub int_p_sep_by_space
: ::c_char
,
208 pub int_n_sep_by_space
: ::c_char
,
209 pub int_p_sign_posn
: ::c_char
,
210 pub int_n_sign_posn
: ::c_char
,
213 pub struct cmsgcred
{
214 pub cmcred_pid
: ::pid_t
,
215 pub cmcred_uid
: ::uid_t
,
216 pub cmcred_euid
: ::uid_t
,
217 pub cmcred_gid
: ::gid_t
,
218 pub cmcred_ngroups
: ::c_short
,
219 pub cmcred_groups
: [::gid_t
; CMGROUP_MAX
],
223 pub type_
: ::c_ushort
,
224 pub prio
: ::c_ushort
,
227 pub struct in6_pktinfo
{
228 pub ipi6_addr
: ::in6_addr
,
229 pub ipi6_ifindex
: ::c_uint
,
242 pub offset
: ::c_long
,
244 pub maxerror
: ::c_long
,
245 pub esterror
: ::c_long
,
247 pub constant
: ::c_long
,
248 pub precision
: ::c_long
,
249 pub tolerance
: ::c_long
,
250 pub ppsfreq
: ::c_long
,
251 pub jitter
: ::c_long
,
253 pub stabil
: ::c_long
,
254 pub jitcnt
: ::c_long
,
255 pub calcnt
: ::c_long
,
256 pub errcnt
: ::c_long
,
257 pub stbcnt
: ::c_long
,
260 pub struct ntptimeval
{
261 pub time
: ::timespec
,
262 pub maxerror
: ::c_long
,
263 pub esterror
: ::c_long
,
265 pub time_state
: ::c_int
,
268 pub struct ptrace_io_desc
{
269 pub piod_op
: ::c_int
,
270 pub piod_offs
: *mut ::c_void
,
271 pub piod_addr
: *mut ::c_void
,
272 pub piod_len
: ::size_t
,
277 pub struct bpf_program
{
278 pub bf_len
: ::c_uint
,
279 pub bf_insns
: *mut bpf_insn
,
282 pub struct bpf_stat
{
283 pub bs_recv
: ::c_uint
,
284 pub bs_drop
: ::c_uint
,
287 pub struct bpf_version
{
288 pub bv_major
: ::c_ushort
,
289 pub bv_minor
: ::c_ushort
,
293 pub bh_tstamp
: ::timeval
,
296 pub bh_hdrlen
: ::c_ushort
,
299 pub struct bpf_insn
{
300 pub code
: ::c_ushort
,
306 pub struct bpf_dltlist
{
308 bfl_list
: *mut ::c_uint
,
313 pub struct Elf32_Phdr
{
314 pub p_type
: Elf32_Word
,
315 pub p_offset
: Elf32_Off
,
316 pub p_vaddr
: Elf32_Addr
,
317 pub p_paddr
: Elf32_Addr
,
318 pub p_filesz
: Elf32_Word
,
319 pub p_memsz
: Elf32_Word
,
320 pub p_flags
: Elf32_Word
,
321 pub p_align
: Elf32_Word
,
324 pub struct Elf64_Phdr
{
325 pub p_type
: Elf64_Word
,
326 pub p_flags
: Elf64_Word
,
327 pub p_offset
: Elf64_Off
,
328 pub p_vaddr
: Elf64_Addr
,
329 pub p_paddr
: Elf64_Addr
,
330 pub p_filesz
: Elf64_Xword
,
331 pub p_memsz
: Elf64_Xword
,
332 pub p_align
: Elf64_Xword
,
337 pub struct dl_phdr_info
{
338 pub dlpi_addr
: Elf_Addr
,
339 pub dlpi_name
: *const ::c_char
,
340 pub dlpi_phdr
: *const Elf_Phdr
,
341 pub dlpi_phnum
: Elf_Half
,
342 pub dlpi_adds
: ::c_ulonglong
,
343 pub dlpi_subs
: ::c_ulonglong
,
344 pub dlpi_tls_modid
: usize,
345 pub dlpi_tls_data
: *mut ::c_void
,
350 pub struct sockaddr_storage
{
352 pub ss_family
: ::sa_family_t
,
355 __ss_pad2
: [u8; 112],
360 if #[cfg(feature = "extra_traits")] {
361 impl PartialEq
for sockaddr_storage
{
362 fn eq(&self, other
: &sockaddr_storage
) -> bool
{
363 self.ss_len
== other
.ss_len
364 && self.ss_family
== other
.ss_family
365 && self.__ss_pad1
== other
.__ss_pad1
366 && self.__ss_align
== other
.__ss_align
370 .zip(other
.__ss_pad2
.iter())
371 .all(|(a
, b
)| a
== b
)
374 impl Eq
for sockaddr_storage {}
375 impl ::fmt
::Debug
for sockaddr_storage
{
376 fn fmt(&self, f
: &mut ::fmt
::Formatter
) -> ::fmt
::Result
{
377 f
.debug_struct("sockaddr_storage")
378 .field("ss_len", &self.ss_len
)
379 .field("ss_family", &self.ss_family
)
380 .field("__ss_pad1", &self.__ss_pad1
)
381 .field("__ss_align", &self.__ss_align
)
382 // FIXME: .field("__ss_pad2", &self.__ss_pad2)
386 impl ::hash
::Hash
for sockaddr_storage
{
387 fn hash
<H
: ::hash
::Hasher
>(&self, state
: &mut H
) {
388 self.ss_len
.hash(state
);
389 self.ss_family
.hash(state
);
390 self.__ss_pad1
.hash(state
);
391 self.__ss_align
.hash(state
);
392 self.__ss_pad2
.hash(state
);
398 // Non-public helper constant
399 #[cfg(all(not(libc_const_size_of), target_pointer_width = "32"))]
400 const SIZEOF_LONG
: usize = 4;
401 #[cfg(all(not(libc_const_size_of), target_pointer_width = "64"))]
402 const SIZEOF_LONG
: usize = 8;
403 #[cfg(libc_const_size_of)]
404 const SIZEOF_LONG
: usize = ::mem
::size_of
::<::c_long
>();
408 note
= "Can vary at runtime. Use sysconf(3) instead"
410 pub const AIO_LISTIO_MAX
: ::c_int
= 16;
411 pub const AIO_CANCELED
: ::c_int
= 1;
412 pub const AIO_NOTCANCELED
: ::c_int
= 2;
413 pub const AIO_ALLDONE
: ::c_int
= 3;
414 pub const LIO_NOP
: ::c_int
= 0;
415 pub const LIO_WRITE
: ::c_int
= 1;
416 pub const LIO_READ
: ::c_int
= 2;
417 pub const LIO_WAIT
: ::c_int
= 1;
418 pub const LIO_NOWAIT
: ::c_int
= 0;
420 pub const SIGEV_NONE
: ::c_int
= 0;
421 pub const SIGEV_SIGNAL
: ::c_int
= 1;
422 pub const SIGEV_THREAD
: ::c_int
= 2;
423 pub const SIGEV_KEVENT
: ::c_int
= 3;
425 pub const CODESET
: ::nl_item
= 0;
426 pub const D_T_FMT
: ::nl_item
= 1;
427 pub const D_FMT
: ::nl_item
= 2;
428 pub const T_FMT
: ::nl_item
= 3;
429 pub const T_FMT_AMPM
: ::nl_item
= 4;
430 pub const AM_STR
: ::nl_item
= 5;
431 pub const PM_STR
: ::nl_item
= 6;
433 pub const DAY_1
: ::nl_item
= 7;
434 pub const DAY_2
: ::nl_item
= 8;
435 pub const DAY_3
: ::nl_item
= 9;
436 pub const DAY_4
: ::nl_item
= 10;
437 pub const DAY_5
: ::nl_item
= 11;
438 pub const DAY_6
: ::nl_item
= 12;
439 pub const DAY_7
: ::nl_item
= 13;
441 pub const ABDAY_1
: ::nl_item
= 14;
442 pub const ABDAY_2
: ::nl_item
= 15;
443 pub const ABDAY_3
: ::nl_item
= 16;
444 pub const ABDAY_4
: ::nl_item
= 17;
445 pub const ABDAY_5
: ::nl_item
= 18;
446 pub const ABDAY_6
: ::nl_item
= 19;
447 pub const ABDAY_7
: ::nl_item
= 20;
449 pub const MON_1
: ::nl_item
= 21;
450 pub const MON_2
: ::nl_item
= 22;
451 pub const MON_3
: ::nl_item
= 23;
452 pub const MON_4
: ::nl_item
= 24;
453 pub const MON_5
: ::nl_item
= 25;
454 pub const MON_6
: ::nl_item
= 26;
455 pub const MON_7
: ::nl_item
= 27;
456 pub const MON_8
: ::nl_item
= 28;
457 pub const MON_9
: ::nl_item
= 29;
458 pub const MON_10
: ::nl_item
= 30;
459 pub const MON_11
: ::nl_item
= 31;
460 pub const MON_12
: ::nl_item
= 32;
462 pub const ABMON_1
: ::nl_item
= 33;
463 pub const ABMON_2
: ::nl_item
= 34;
464 pub const ABMON_3
: ::nl_item
= 35;
465 pub const ABMON_4
: ::nl_item
= 36;
466 pub const ABMON_5
: ::nl_item
= 37;
467 pub const ABMON_6
: ::nl_item
= 38;
468 pub const ABMON_7
: ::nl_item
= 39;
469 pub const ABMON_8
: ::nl_item
= 40;
470 pub const ABMON_9
: ::nl_item
= 41;
471 pub const ABMON_10
: ::nl_item
= 42;
472 pub const ABMON_11
: ::nl_item
= 43;
473 pub const ABMON_12
: ::nl_item
= 44;
475 pub const ERA
: ::nl_item
= 45;
476 pub const ERA_D_FMT
: ::nl_item
= 46;
477 pub const ERA_D_T_FMT
: ::nl_item
= 47;
478 pub const ERA_T_FMT
: ::nl_item
= 48;
479 pub const ALT_DIGITS
: ::nl_item
= 49;
481 pub const RADIXCHAR
: ::nl_item
= 50;
482 pub const THOUSEP
: ::nl_item
= 51;
484 pub const YESEXPR
: ::nl_item
= 52;
485 pub const NOEXPR
: ::nl_item
= 53;
487 pub const YESSTR
: ::nl_item
= 54;
488 pub const NOSTR
: ::nl_item
= 55;
490 pub const CRNCYSTR
: ::nl_item
= 56;
492 pub const D_MD_ORDER
: ::nl_item
= 57;
494 pub const ALTMON_1
: ::nl_item
= 58;
495 pub const ALTMON_2
: ::nl_item
= 59;
496 pub const ALTMON_3
: ::nl_item
= 60;
497 pub const ALTMON_4
: ::nl_item
= 61;
498 pub const ALTMON_5
: ::nl_item
= 62;
499 pub const ALTMON_6
: ::nl_item
= 63;
500 pub const ALTMON_7
: ::nl_item
= 64;
501 pub const ALTMON_8
: ::nl_item
= 65;
502 pub const ALTMON_9
: ::nl_item
= 66;
503 pub const ALTMON_10
: ::nl_item
= 67;
504 pub const ALTMON_11
: ::nl_item
= 68;
505 pub const ALTMON_12
: ::nl_item
= 69;
507 pub const EXIT_FAILURE
: ::c_int
= 1;
508 pub const EXIT_SUCCESS
: ::c_int
= 0;
509 pub const EOF
: ::c_int
= -1;
510 pub const SEEK_SET
: ::c_int
= 0;
511 pub const SEEK_CUR
: ::c_int
= 1;
512 pub const SEEK_END
: ::c_int
= 2;
513 pub const SEEK_DATA
: ::c_int
= 3;
514 pub const SEEK_HOLE
: ::c_int
= 4;
515 pub const _IOFBF
: ::c_int
= 0;
516 pub const _IONBF
: ::c_int
= 2;
517 pub const _IOLBF
: ::c_int
= 1;
518 pub const BUFSIZ
: ::c_uint
= 1024;
519 pub const FOPEN_MAX
: ::c_uint
= 20;
520 pub const FILENAME_MAX
: ::c_uint
= 1024;
521 pub const L_tmpnam
: ::c_uint
= 1024;
522 pub const TMP_MAX
: ::c_uint
= 308915776;
524 pub const O_NOCTTY
: ::c_int
= 32768;
525 pub const O_DIRECT
: ::c_int
= 0x00010000;
527 pub const S_IFIFO
: mode_t
= 4096;
528 pub const S_IFCHR
: mode_t
= 8192;
529 pub const S_IFBLK
: mode_t
= 24576;
530 pub const S_IFDIR
: mode_t
= 16384;
531 pub const S_IFREG
: mode_t
= 32768;
532 pub const S_IFLNK
: mode_t
= 40960;
533 pub const S_IFSOCK
: mode_t
= 49152;
534 pub const S_IFMT
: mode_t
= 61440;
535 pub const S_IEXEC
: mode_t
= 64;
536 pub const S_IWRITE
: mode_t
= 128;
537 pub const S_IREAD
: mode_t
= 256;
538 pub const S_IRWXU
: mode_t
= 448;
539 pub const S_IXUSR
: mode_t
= 64;
540 pub const S_IWUSR
: mode_t
= 128;
541 pub const S_IRUSR
: mode_t
= 256;
542 pub const S_IRWXG
: mode_t
= 56;
543 pub const S_IXGRP
: mode_t
= 8;
544 pub const S_IWGRP
: mode_t
= 16;
545 pub const S_IRGRP
: mode_t
= 32;
546 pub const S_IRWXO
: mode_t
= 7;
547 pub const S_IXOTH
: mode_t
= 1;
548 pub const S_IWOTH
: mode_t
= 2;
549 pub const S_IROTH
: mode_t
= 4;
550 pub const F_OK
: ::c_int
= 0;
551 pub const R_OK
: ::c_int
= 4;
552 pub const W_OK
: ::c_int
= 2;
553 pub const X_OK
: ::c_int
= 1;
554 pub const STDIN_FILENO
: ::c_int
= 0;
555 pub const STDOUT_FILENO
: ::c_int
= 1;
556 pub const STDERR_FILENO
: ::c_int
= 2;
557 pub const F_LOCK
: ::c_int
= 1;
558 pub const F_TEST
: ::c_int
= 3;
559 pub const F_TLOCK
: ::c_int
= 2;
560 pub const F_ULOCK
: ::c_int
= 0;
561 pub const F_DUPFD_CLOEXEC
: ::c_int
= 17;
562 pub const SIGHUP
: ::c_int
= 1;
563 pub const SIGINT
: ::c_int
= 2;
564 pub const SIGQUIT
: ::c_int
= 3;
565 pub const SIGILL
: ::c_int
= 4;
566 pub const SIGABRT
: ::c_int
= 6;
567 pub const SIGEMT
: ::c_int
= 7;
568 pub const SIGFPE
: ::c_int
= 8;
569 pub const SIGKILL
: ::c_int
= 9;
570 pub const SIGSEGV
: ::c_int
= 11;
571 pub const SIGPIPE
: ::c_int
= 13;
572 pub const SIGALRM
: ::c_int
= 14;
573 pub const SIGTERM
: ::c_int
= 15;
575 pub const PROT_NONE
: ::c_int
= 0;
576 pub const PROT_READ
: ::c_int
= 1;
577 pub const PROT_WRITE
: ::c_int
= 2;
578 pub const PROT_EXEC
: ::c_int
= 4;
580 pub const MAP_FILE
: ::c_int
= 0x0000;
581 pub const MAP_SHARED
: ::c_int
= 0x0001;
582 pub const MAP_PRIVATE
: ::c_int
= 0x0002;
583 pub const MAP_FIXED
: ::c_int
= 0x0010;
584 pub const MAP_ANON
: ::c_int
= 0x1000;
585 pub const MAP_ANONYMOUS
: ::c_int
= MAP_ANON
;
587 pub const MAP_FAILED
: *mut ::c_void
= !0 as *mut ::c_void
;
589 pub const MCL_CURRENT
: ::c_int
= 0x0001;
590 pub const MCL_FUTURE
: ::c_int
= 0x0002;
592 pub const MS_SYNC
: ::c_int
= 0x0000;
593 pub const MS_ASYNC
: ::c_int
= 0x0001;
594 pub const MS_INVALIDATE
: ::c_int
= 0x0002;
596 pub const EPERM
: ::c_int
= 1;
597 pub const ENOENT
: ::c_int
= 2;
598 pub const ESRCH
: ::c_int
= 3;
599 pub const EINTR
: ::c_int
= 4;
600 pub const EIO
: ::c_int
= 5;
601 pub const ENXIO
: ::c_int
= 6;
602 pub const E2BIG
: ::c_int
= 7;
603 pub const ENOEXEC
: ::c_int
= 8;
604 pub const EBADF
: ::c_int
= 9;
605 pub const ECHILD
: ::c_int
= 10;
606 pub const EDEADLK
: ::c_int
= 11;
607 pub const ENOMEM
: ::c_int
= 12;
608 pub const EACCES
: ::c_int
= 13;
609 pub const EFAULT
: ::c_int
= 14;
610 pub const ENOTBLK
: ::c_int
= 15;
611 pub const EBUSY
: ::c_int
= 16;
612 pub const EEXIST
: ::c_int
= 17;
613 pub const EXDEV
: ::c_int
= 18;
614 pub const ENODEV
: ::c_int
= 19;
615 pub const ENOTDIR
: ::c_int
= 20;
616 pub const EISDIR
: ::c_int
= 21;
617 pub const EINVAL
: ::c_int
= 22;
618 pub const ENFILE
: ::c_int
= 23;
619 pub const EMFILE
: ::c_int
= 24;
620 pub const ENOTTY
: ::c_int
= 25;
621 pub const ETXTBSY
: ::c_int
= 26;
622 pub const EFBIG
: ::c_int
= 27;
623 pub const ENOSPC
: ::c_int
= 28;
624 pub const ESPIPE
: ::c_int
= 29;
625 pub const EROFS
: ::c_int
= 30;
626 pub const EMLINK
: ::c_int
= 31;
627 pub const EPIPE
: ::c_int
= 32;
628 pub const EDOM
: ::c_int
= 33;
629 pub const ERANGE
: ::c_int
= 34;
630 pub const EAGAIN
: ::c_int
= 35;
631 pub const EWOULDBLOCK
: ::c_int
= 35;
632 pub const EINPROGRESS
: ::c_int
= 36;
633 pub const EALREADY
: ::c_int
= 37;
634 pub const ENOTSOCK
: ::c_int
= 38;
635 pub const EDESTADDRREQ
: ::c_int
= 39;
636 pub const EMSGSIZE
: ::c_int
= 40;
637 pub const EPROTOTYPE
: ::c_int
= 41;
638 pub const ENOPROTOOPT
: ::c_int
= 42;
639 pub const EPROTONOSUPPORT
: ::c_int
= 43;
640 pub const ESOCKTNOSUPPORT
: ::c_int
= 44;
641 pub const EOPNOTSUPP
: ::c_int
= 45;
642 pub const ENOTSUP
: ::c_int
= EOPNOTSUPP
;
643 pub const EPFNOSUPPORT
: ::c_int
= 46;
644 pub const EAFNOSUPPORT
: ::c_int
= 47;
645 pub const EADDRINUSE
: ::c_int
= 48;
646 pub const EADDRNOTAVAIL
: ::c_int
= 49;
647 pub const ENETDOWN
: ::c_int
= 50;
648 pub const ENETUNREACH
: ::c_int
= 51;
649 pub const ENETRESET
: ::c_int
= 52;
650 pub const ECONNABORTED
: ::c_int
= 53;
651 pub const ECONNRESET
: ::c_int
= 54;
652 pub const ENOBUFS
: ::c_int
= 55;
653 pub const EISCONN
: ::c_int
= 56;
654 pub const ENOTCONN
: ::c_int
= 57;
655 pub const ESHUTDOWN
: ::c_int
= 58;
656 pub const ETOOMANYREFS
: ::c_int
= 59;
657 pub const ETIMEDOUT
: ::c_int
= 60;
658 pub const ECONNREFUSED
: ::c_int
= 61;
659 pub const ELOOP
: ::c_int
= 62;
660 pub const ENAMETOOLONG
: ::c_int
= 63;
661 pub const EHOSTDOWN
: ::c_int
= 64;
662 pub const EHOSTUNREACH
: ::c_int
= 65;
663 pub const ENOTEMPTY
: ::c_int
= 66;
664 pub const EPROCLIM
: ::c_int
= 67;
665 pub const EUSERS
: ::c_int
= 68;
666 pub const EDQUOT
: ::c_int
= 69;
667 pub const ESTALE
: ::c_int
= 70;
668 pub const EREMOTE
: ::c_int
= 71;
669 pub const EBADRPC
: ::c_int
= 72;
670 pub const ERPCMISMATCH
: ::c_int
= 73;
671 pub const EPROGUNAVAIL
: ::c_int
= 74;
672 pub const EPROGMISMATCH
: ::c_int
= 75;
673 pub const EPROCUNAVAIL
: ::c_int
= 76;
674 pub const ENOLCK
: ::c_int
= 77;
675 pub const ENOSYS
: ::c_int
= 78;
676 pub const EFTYPE
: ::c_int
= 79;
677 pub const EAUTH
: ::c_int
= 80;
678 pub const ENEEDAUTH
: ::c_int
= 81;
679 pub const EIDRM
: ::c_int
= 82;
680 pub const ENOMSG
: ::c_int
= 83;
681 pub const EOVERFLOW
: ::c_int
= 84;
682 pub const ECANCELED
: ::c_int
= 85;
683 pub const EILSEQ
: ::c_int
= 86;
684 pub const ENOATTR
: ::c_int
= 87;
685 pub const EDOOFUS
: ::c_int
= 88;
686 pub const EBADMSG
: ::c_int
= 89;
687 pub const EMULTIHOP
: ::c_int
= 90;
688 pub const ENOLINK
: ::c_int
= 91;
689 pub const EPROTO
: ::c_int
= 92;
691 pub const POLLSTANDARD
: ::c_short
= ::POLLIN
701 pub const EAI_AGAIN
: ::c_int
= 2;
702 pub const EAI_BADFLAGS
: ::c_int
= 3;
703 pub const EAI_FAIL
: ::c_int
= 4;
704 pub const EAI_FAMILY
: ::c_int
= 5;
705 pub const EAI_MEMORY
: ::c_int
= 6;
706 pub const EAI_NONAME
: ::c_int
= 8;
707 pub const EAI_SERVICE
: ::c_int
= 9;
708 pub const EAI_SOCKTYPE
: ::c_int
= 10;
709 pub const EAI_SYSTEM
: ::c_int
= 11;
710 pub const EAI_OVERFLOW
: ::c_int
= 14;
712 pub const F_DUPFD
: ::c_int
= 0;
713 pub const F_GETFD
: ::c_int
= 1;
714 pub const F_SETFD
: ::c_int
= 2;
715 pub const F_GETFL
: ::c_int
= 3;
716 pub const F_SETFL
: ::c_int
= 4;
718 pub const SIGTRAP
: ::c_int
= 5;
720 pub const GLOB_APPEND
: ::c_int
= 0x0001;
721 pub const GLOB_DOOFFS
: ::c_int
= 0x0002;
722 pub const GLOB_ERR
: ::c_int
= 0x0004;
723 pub const GLOB_MARK
: ::c_int
= 0x0008;
724 pub const GLOB_NOCHECK
: ::c_int
= 0x0010;
725 pub const GLOB_NOSORT
: ::c_int
= 0x0020;
726 pub const GLOB_NOESCAPE
: ::c_int
= 0x2000;
728 pub const GLOB_NOSPACE
: ::c_int
= -1;
729 pub const GLOB_ABORTED
: ::c_int
= -2;
730 pub const GLOB_NOMATCH
: ::c_int
= -3;
732 pub const POSIX_MADV_NORMAL
: ::c_int
= 0;
733 pub const POSIX_MADV_RANDOM
: ::c_int
= 1;
734 pub const POSIX_MADV_SEQUENTIAL
: ::c_int
= 2;
735 pub const POSIX_MADV_WILLNEED
: ::c_int
= 3;
736 pub const POSIX_MADV_DONTNEED
: ::c_int
= 4;
738 pub const PTHREAD_PROCESS_PRIVATE
: ::c_int
= 0;
739 pub const PTHREAD_PROCESS_SHARED
: ::c_int
= 1;
740 pub const PTHREAD_CREATE_JOINABLE
: ::c_int
= 0;
741 pub const PTHREAD_CREATE_DETACHED
: ::c_int
= 1;
743 pub const RLIMIT_CPU
: ::c_int
= 0;
744 pub const RLIMIT_FSIZE
: ::c_int
= 1;
745 pub const RLIMIT_DATA
: ::c_int
= 2;
746 pub const RLIMIT_STACK
: ::c_int
= 3;
747 pub const RLIMIT_CORE
: ::c_int
= 4;
748 pub const RLIMIT_RSS
: ::c_int
= 5;
749 pub const RLIMIT_MEMLOCK
: ::c_int
= 6;
750 pub const RLIMIT_NPROC
: ::c_int
= 7;
751 pub const RLIMIT_NOFILE
: ::c_int
= 8;
752 pub const RLIMIT_SBSIZE
: ::c_int
= 9;
753 pub const RLIMIT_VMEM
: ::c_int
= 10;
754 pub const RLIMIT_AS
: ::c_int
= RLIMIT_VMEM
;
755 pub const RLIM_INFINITY
: rlim_t
= 0x7fff_ffff_ffff_ffff;
757 pub const RUSAGE_SELF
: ::c_int
= 0;
758 pub const RUSAGE_CHILDREN
: ::c_int
= -1;
760 pub const CLOCK_REALTIME
: ::clockid_t
= 0;
761 pub const CLOCK_VIRTUAL
: ::clockid_t
= 1;
762 pub const CLOCK_PROF
: ::clockid_t
= 2;
763 pub const CLOCK_MONOTONIC
: ::clockid_t
= 4;
764 pub const CLOCK_UPTIME
: ::clockid_t
= 5;
765 pub const CLOCK_UPTIME_PRECISE
: ::clockid_t
= 7;
766 pub const CLOCK_UPTIME_FAST
: ::clockid_t
= 8;
767 pub const CLOCK_REALTIME_PRECISE
: ::clockid_t
= 9;
768 pub const CLOCK_REALTIME_FAST
: ::clockid_t
= 10;
769 pub const CLOCK_MONOTONIC_PRECISE
: ::clockid_t
= 11;
770 pub const CLOCK_MONOTONIC_FAST
: ::clockid_t
= 12;
771 pub const CLOCK_SECOND
: ::clockid_t
= 13;
772 pub const CLOCK_THREAD_CPUTIME_ID
: ::clockid_t
= 14;
773 pub const CLOCK_PROCESS_CPUTIME_ID
: ::clockid_t
= 15;
775 pub const MADV_NORMAL
: ::c_int
= 0;
776 pub const MADV_RANDOM
: ::c_int
= 1;
777 pub const MADV_SEQUENTIAL
: ::c_int
= 2;
778 pub const MADV_WILLNEED
: ::c_int
= 3;
779 pub const MADV_DONTNEED
: ::c_int
= 4;
780 pub const MADV_FREE
: ::c_int
= 5;
781 pub const MADV_NOSYNC
: ::c_int
= 6;
782 pub const MADV_AUTOSYNC
: ::c_int
= 7;
783 pub const MADV_NOCORE
: ::c_int
= 8;
784 pub const MADV_CORE
: ::c_int
= 9;
786 pub const MINCORE_INCORE
: ::c_int
= 0x1;
787 pub const MINCORE_REFERENCED
: ::c_int
= 0x2;
788 pub const MINCORE_MODIFIED
: ::c_int
= 0x4;
789 pub const MINCORE_REFERENCED_OTHER
: ::c_int
= 0x8;
790 pub const MINCORE_MODIFIED_OTHER
: ::c_int
= 0x10;
791 pub const MINCORE_SUPER
: ::c_int
= 0x20;
793 pub const AF_UNSPEC
: ::c_int
= 0;
794 pub const AF_LOCAL
: ::c_int
= 1;
795 pub const AF_UNIX
: ::c_int
= AF_LOCAL
;
796 pub const AF_INET
: ::c_int
= 2;
797 pub const AF_IMPLINK
: ::c_int
= 3;
798 pub const AF_PUP
: ::c_int
= 4;
799 pub const AF_CHAOS
: ::c_int
= 5;
800 pub const AF_NETBIOS
: ::c_int
= 6;
801 pub const AF_ISO
: ::c_int
= 7;
802 pub const AF_OSI
: ::c_int
= AF_ISO
;
803 pub const AF_ECMA
: ::c_int
= 8;
804 pub const AF_DATAKIT
: ::c_int
= 9;
805 pub const AF_CCITT
: ::c_int
= 10;
806 pub const AF_SNA
: ::c_int
= 11;
807 pub const AF_DECnet
: ::c_int
= 12;
808 pub const AF_DLI
: ::c_int
= 13;
809 pub const AF_LAT
: ::c_int
= 14;
810 pub const AF_HYLINK
: ::c_int
= 15;
811 pub const AF_APPLETALK
: ::c_int
= 16;
812 pub const AF_ROUTE
: ::c_int
= 17;
813 pub const AF_LINK
: ::c_int
= 18;
814 pub const pseudo_AF_XTP
: ::c_int
= 19;
815 pub const AF_COIP
: ::c_int
= 20;
816 pub const AF_CNT
: ::c_int
= 21;
817 pub const pseudo_AF_RTIP
: ::c_int
= 22;
818 pub const AF_IPX
: ::c_int
= 23;
819 pub const AF_SIP
: ::c_int
= 24;
820 pub const pseudo_AF_PIP
: ::c_int
= 25;
821 pub const AF_ISDN
: ::c_int
= 26;
822 pub const AF_E164
: ::c_int
= AF_ISDN
;
823 pub const pseudo_AF_KEY
: ::c_int
= 27;
824 pub const AF_INET6
: ::c_int
= 28;
825 pub const AF_NATM
: ::c_int
= 29;
826 pub const AF_ATM
: ::c_int
= 30;
827 pub const pseudo_AF_HDRCMPLT
: ::c_int
= 31;
828 pub const AF_NETGRAPH
: ::c_int
= 32;
830 pub const PF_UNSPEC
: ::c_int
= AF_UNSPEC
;
831 pub const PF_LOCAL
: ::c_int
= AF_LOCAL
;
832 pub const PF_UNIX
: ::c_int
= PF_LOCAL
;
833 pub const PF_INET
: ::c_int
= AF_INET
;
834 pub const PF_IMPLINK
: ::c_int
= AF_IMPLINK
;
835 pub const PF_PUP
: ::c_int
= AF_PUP
;
836 pub const PF_CHAOS
: ::c_int
= AF_CHAOS
;
837 pub const PF_NETBIOS
: ::c_int
= AF_NETBIOS
;
838 pub const PF_ISO
: ::c_int
= AF_ISO
;
839 pub const PF_OSI
: ::c_int
= AF_ISO
;
840 pub const PF_ECMA
: ::c_int
= AF_ECMA
;
841 pub const PF_DATAKIT
: ::c_int
= AF_DATAKIT
;
842 pub const PF_CCITT
: ::c_int
= AF_CCITT
;
843 pub const PF_SNA
: ::c_int
= AF_SNA
;
844 pub const PF_DECnet
: ::c_int
= AF_DECnet
;
845 pub const PF_DLI
: ::c_int
= AF_DLI
;
846 pub const PF_LAT
: ::c_int
= AF_LAT
;
847 pub const PF_HYLINK
: ::c_int
= AF_HYLINK
;
848 pub const PF_APPLETALK
: ::c_int
= AF_APPLETALK
;
849 pub const PF_ROUTE
: ::c_int
= AF_ROUTE
;
850 pub const PF_LINK
: ::c_int
= AF_LINK
;
851 pub const PF_XTP
: ::c_int
= pseudo_AF_XTP
;
852 pub const PF_COIP
: ::c_int
= AF_COIP
;
853 pub const PF_CNT
: ::c_int
= AF_CNT
;
854 pub const PF_SIP
: ::c_int
= AF_SIP
;
855 pub const PF_IPX
: ::c_int
= AF_IPX
;
856 pub const PF_RTIP
: ::c_int
= pseudo_AF_RTIP
;
857 pub const PF_PIP
: ::c_int
= pseudo_AF_PIP
;
858 pub const PF_ISDN
: ::c_int
= AF_ISDN
;
859 pub const PF_KEY
: ::c_int
= pseudo_AF_KEY
;
860 pub const PF_INET6
: ::c_int
= AF_INET6
;
861 pub const PF_NATM
: ::c_int
= AF_NATM
;
862 pub const PF_ATM
: ::c_int
= AF_ATM
;
863 pub const PF_NETGRAPH
: ::c_int
= AF_NETGRAPH
;
865 pub const PIOD_READ_D
: ::c_int
= 1;
866 pub const PIOD_WRITE_D
: ::c_int
= 2;
867 pub const PIOD_READ_I
: ::c_int
= 3;
868 pub const PIOD_WRITE_I
: ::c_int
= 4;
870 pub const PT_TRACE_ME
: ::c_int
= 0;
871 pub const PT_READ_I
: ::c_int
= 1;
872 pub const PT_READ_D
: ::c_int
= 2;
873 pub const PT_WRITE_I
: ::c_int
= 4;
874 pub const PT_WRITE_D
: ::c_int
= 5;
875 pub const PT_CONTINUE
: ::c_int
= 7;
876 pub const PT_KILL
: ::c_int
= 8;
877 pub const PT_STEP
: ::c_int
= 9;
878 pub const PT_ATTACH
: ::c_int
= 10;
879 pub const PT_DETACH
: ::c_int
= 11;
880 pub const PT_IO
: ::c_int
= 12;
882 pub const SOMAXCONN
: ::c_int
= 128;
884 pub const MSG_OOB
: ::c_int
= 0x00000001;
885 pub const MSG_PEEK
: ::c_int
= 0x00000002;
886 pub const MSG_DONTROUTE
: ::c_int
= 0x00000004;
887 pub const MSG_EOR
: ::c_int
= 0x00000008;
888 pub const MSG_TRUNC
: ::c_int
= 0x00000010;
889 pub const MSG_CTRUNC
: ::c_int
= 0x00000020;
890 pub const MSG_WAITALL
: ::c_int
= 0x00000040;
891 pub const MSG_DONTWAIT
: ::c_int
= 0x00000080;
892 pub const MSG_EOF
: ::c_int
= 0x00000100;
894 pub const SCM_TIMESTAMP
: ::c_int
= 0x02;
895 pub const SCM_CREDS
: ::c_int
= 0x03;
897 pub const SOCK_STREAM
: ::c_int
= 1;
898 pub const SOCK_DGRAM
: ::c_int
= 2;
899 pub const SOCK_RAW
: ::c_int
= 3;
900 pub const SOCK_RDM
: ::c_int
= 4;
901 pub const SOCK_SEQPACKET
: ::c_int
= 5;
902 pub const SOCK_CLOEXEC
: ::c_int
= 0x10000000;
903 pub const SOCK_NONBLOCK
: ::c_int
= 0x20000000;
904 pub const SOCK_MAXADDRLEN
: ::c_int
= 255;
905 pub const IP_TTL
: ::c_int
= 4;
906 pub const IP_HDRINCL
: ::c_int
= 2;
907 pub const IP_RECVDSTADDR
: ::c_int
= 7;
908 pub const IP_SENDSRCADDR
: ::c_int
= IP_RECVDSTADDR
;
909 pub const IP_ADD_MEMBERSHIP
: ::c_int
= 12;
910 pub const IP_DROP_MEMBERSHIP
: ::c_int
= 13;
911 pub const IP_RECVIF
: ::c_int
= 20;
912 pub const IPV6_JOIN_GROUP
: ::c_int
= 12;
913 pub const IPV6_LEAVE_GROUP
: ::c_int
= 13;
914 pub const IPV6_CHECKSUM
: ::c_int
= 26;
915 pub const IPV6_RECVPKTINFO
: ::c_int
= 36;
916 pub const IPV6_PKTINFO
: ::c_int
= 46;
917 pub const IPV6_HOPLIMIT
: ::c_int
= 47;
918 pub const IPV6_RECVTCLASS
: ::c_int
= 57;
919 pub const IPV6_TCLASS
: ::c_int
= 61;
921 pub const TCP_NOPUSH
: ::c_int
= 4;
922 pub const TCP_NOOPT
: ::c_int
= 8;
923 pub const TCP_KEEPIDLE
: ::c_int
= 256;
924 pub const TCP_KEEPINTVL
: ::c_int
= 512;
925 pub const TCP_KEEPCNT
: ::c_int
= 1024;
927 pub const SOL_SOCKET
: ::c_int
= 0xffff;
928 pub const SO_DEBUG
: ::c_int
= 0x01;
929 pub const SO_ACCEPTCONN
: ::c_int
= 0x0002;
930 pub const SO_REUSEADDR
: ::c_int
= 0x0004;
931 pub const SO_KEEPALIVE
: ::c_int
= 0x0008;
932 pub const SO_DONTROUTE
: ::c_int
= 0x0010;
933 pub const SO_BROADCAST
: ::c_int
= 0x0020;
934 pub const SO_USELOOPBACK
: ::c_int
= 0x0040;
935 pub const SO_LINGER
: ::c_int
= 0x0080;
936 pub const SO_OOBINLINE
: ::c_int
= 0x0100;
937 pub const SO_REUSEPORT
: ::c_int
= 0x0200;
938 pub const SO_TIMESTAMP
: ::c_int
= 0x0400;
939 pub const SO_NOSIGPIPE
: ::c_int
= 0x0800;
940 pub const SO_ACCEPTFILTER
: ::c_int
= 0x1000;
941 pub const SO_SNDBUF
: ::c_int
= 0x1001;
942 pub const SO_RCVBUF
: ::c_int
= 0x1002;
943 pub const SO_SNDLOWAT
: ::c_int
= 0x1003;
944 pub const SO_RCVLOWAT
: ::c_int
= 0x1004;
945 pub const SO_SNDTIMEO
: ::c_int
= 0x1005;
946 pub const SO_RCVTIMEO
: ::c_int
= 0x1006;
947 pub const SO_ERROR
: ::c_int
= 0x1007;
948 pub const SO_TYPE
: ::c_int
= 0x1008;
950 pub const SHUT_RD
: ::c_int
= 0;
951 pub const SHUT_WR
: ::c_int
= 1;
952 pub const SHUT_RDWR
: ::c_int
= 2;
954 pub const LOCK_SH
: ::c_int
= 1;
955 pub const LOCK_EX
: ::c_int
= 2;
956 pub const LOCK_NB
: ::c_int
= 4;
957 pub const LOCK_UN
: ::c_int
= 8;
959 pub const MAP_COPY
: ::c_int
= 0x0002;
961 #[deprecated(since = "0.2.54", note = "Removed in FreeBSD 11")]
962 pub const MAP_RENAME
: ::c_int
= 0x0020;
964 #[deprecated(since = "0.2.54", note = "Removed in FreeBSD 11")]
965 pub const MAP_NORESERVE
: ::c_int
= 0x0040;
966 pub const MAP_HASSEMAPHORE
: ::c_int
= 0x0200;
967 pub const MAP_STACK
: ::c_int
= 0x0400;
968 pub const MAP_NOSYNC
: ::c_int
= 0x0800;
969 pub const MAP_NOCORE
: ::c_int
= 0x020000;
971 pub const IPPROTO_RAW
: ::c_int
= 255;
973 pub const _PC_LINK_MAX
: ::c_int
= 1;
974 pub const _PC_MAX_CANON
: ::c_int
= 2;
975 pub const _PC_MAX_INPUT
: ::c_int
= 3;
976 pub const _PC_NAME_MAX
: ::c_int
= 4;
977 pub const _PC_PATH_MAX
: ::c_int
= 5;
978 pub const _PC_PIPE_BUF
: ::c_int
= 6;
979 pub const _PC_CHOWN_RESTRICTED
: ::c_int
= 7;
980 pub const _PC_NO_TRUNC
: ::c_int
= 8;
981 pub const _PC_VDISABLE
: ::c_int
= 9;
982 pub const _PC_ALLOC_SIZE_MIN
: ::c_int
= 10;
983 pub const _PC_FILESIZEBITS
: ::c_int
= 12;
984 pub const _PC_REC_INCR_XFER_SIZE
: ::c_int
= 14;
985 pub const _PC_REC_MAX_XFER_SIZE
: ::c_int
= 15;
986 pub const _PC_REC_MIN_XFER_SIZE
: ::c_int
= 16;
987 pub const _PC_REC_XFER_ALIGN
: ::c_int
= 17;
988 pub const _PC_SYMLINK_MAX
: ::c_int
= 18;
989 pub const _PC_MIN_HOLE_SIZE
: ::c_int
= 21;
990 pub const _PC_ASYNC_IO
: ::c_int
= 53;
991 pub const _PC_PRIO_IO
: ::c_int
= 54;
992 pub const _PC_SYNC_IO
: ::c_int
= 55;
993 pub const _PC_ACL_EXTENDED
: ::c_int
= 59;
994 pub const _PC_ACL_PATH_MAX
: ::c_int
= 60;
995 pub const _PC_CAP_PRESENT
: ::c_int
= 61;
996 pub const _PC_INF_PRESENT
: ::c_int
= 62;
997 pub const _PC_MAC_PRESENT
: ::c_int
= 63;
999 pub const _SC_ARG_MAX
: ::c_int
= 1;
1000 pub const _SC_CHILD_MAX
: ::c_int
= 2;
1001 pub const _SC_CLK_TCK
: ::c_int
= 3;
1002 pub const _SC_NGROUPS_MAX
: ::c_int
= 4;
1003 pub const _SC_OPEN_MAX
: ::c_int
= 5;
1004 pub const _SC_JOB_CONTROL
: ::c_int
= 6;
1005 pub const _SC_SAVED_IDS
: ::c_int
= 7;
1006 pub const _SC_VERSION
: ::c_int
= 8;
1007 pub const _SC_BC_BASE_MAX
: ::c_int
= 9;
1008 pub const _SC_BC_DIM_MAX
: ::c_int
= 10;
1009 pub const _SC_BC_SCALE_MAX
: ::c_int
= 11;
1010 pub const _SC_BC_STRING_MAX
: ::c_int
= 12;
1011 pub const _SC_COLL_WEIGHTS_MAX
: ::c_int
= 13;
1012 pub const _SC_EXPR_NEST_MAX
: ::c_int
= 14;
1013 pub const _SC_LINE_MAX
: ::c_int
= 15;
1014 pub const _SC_RE_DUP_MAX
: ::c_int
= 16;
1015 pub const _SC_2_VERSION
: ::c_int
= 17;
1016 pub const _SC_2_C_BIND
: ::c_int
= 18;
1017 pub const _SC_2_C_DEV
: ::c_int
= 19;
1018 pub const _SC_2_CHAR_TERM
: ::c_int
= 20;
1019 pub const _SC_2_FORT_DEV
: ::c_int
= 21;
1020 pub const _SC_2_FORT_RUN
: ::c_int
= 22;
1021 pub const _SC_2_LOCALEDEF
: ::c_int
= 23;
1022 pub const _SC_2_SW_DEV
: ::c_int
= 24;
1023 pub const _SC_2_UPE
: ::c_int
= 25;
1024 pub const _SC_STREAM_MAX
: ::c_int
= 26;
1025 pub const _SC_TZNAME_MAX
: ::c_int
= 27;
1026 pub const _SC_ASYNCHRONOUS_IO
: ::c_int
= 28;
1027 pub const _SC_MAPPED_FILES
: ::c_int
= 29;
1028 pub const _SC_MEMLOCK
: ::c_int
= 30;
1029 pub const _SC_MEMLOCK_RANGE
: ::c_int
= 31;
1030 pub const _SC_MEMORY_PROTECTION
: ::c_int
= 32;
1031 pub const _SC_MESSAGE_PASSING
: ::c_int
= 33;
1032 pub const _SC_PRIORITIZED_IO
: ::c_int
= 34;
1033 pub const _SC_PRIORITY_SCHEDULING
: ::c_int
= 35;
1034 pub const _SC_REALTIME_SIGNALS
: ::c_int
= 36;
1035 pub const _SC_SEMAPHORES
: ::c_int
= 37;
1036 pub const _SC_FSYNC
: ::c_int
= 38;
1037 pub const _SC_SHARED_MEMORY_OBJECTS
: ::c_int
= 39;
1038 pub const _SC_SYNCHRONIZED_IO
: ::c_int
= 40;
1039 pub const _SC_TIMERS
: ::c_int
= 41;
1040 pub const _SC_AIO_LISTIO_MAX
: ::c_int
= 42;
1041 pub const _SC_AIO_MAX
: ::c_int
= 43;
1042 pub const _SC_AIO_PRIO_DELTA_MAX
: ::c_int
= 44;
1043 pub const _SC_DELAYTIMER_MAX
: ::c_int
= 45;
1044 pub const _SC_MQ_OPEN_MAX
: ::c_int
= 46;
1045 pub const _SC_PAGESIZE
: ::c_int
= 47;
1046 pub const _SC_PAGE_SIZE
: ::c_int
= _SC_PAGESIZE
;
1047 pub const _SC_RTSIG_MAX
: ::c_int
= 48;
1048 pub const _SC_SEM_NSEMS_MAX
: ::c_int
= 49;
1049 pub const _SC_SEM_VALUE_MAX
: ::c_int
= 50;
1050 pub const _SC_SIGQUEUE_MAX
: ::c_int
= 51;
1051 pub const _SC_TIMER_MAX
: ::c_int
= 52;
1052 pub const _SC_IOV_MAX
: ::c_int
= 56;
1053 pub const _SC_NPROCESSORS_CONF
: ::c_int
= 57;
1054 pub const _SC_2_PBS
: ::c_int
= 59;
1055 pub const _SC_2_PBS_ACCOUNTING
: ::c_int
= 60;
1056 pub const _SC_2_PBS_CHECKPOINT
: ::c_int
= 61;
1057 pub const _SC_2_PBS_LOCATE
: ::c_int
= 62;
1058 pub const _SC_2_PBS_MESSAGE
: ::c_int
= 63;
1059 pub const _SC_2_PBS_TRACK
: ::c_int
= 64;
1060 pub const _SC_ADVISORY_INFO
: ::c_int
= 65;
1061 pub const _SC_BARRIERS
: ::c_int
= 66;
1062 pub const _SC_CLOCK_SELECTION
: ::c_int
= 67;
1063 pub const _SC_CPUTIME
: ::c_int
= 68;
1064 pub const _SC_FILE_LOCKING
: ::c_int
= 69;
1065 pub const _SC_NPROCESSORS_ONLN
: ::c_int
= 58;
1066 pub const _SC_GETGR_R_SIZE_MAX
: ::c_int
= 70;
1067 pub const _SC_GETPW_R_SIZE_MAX
: ::c_int
= 71;
1068 pub const _SC_HOST_NAME_MAX
: ::c_int
= 72;
1069 pub const _SC_LOGIN_NAME_MAX
: ::c_int
= 73;
1070 pub const _SC_MONOTONIC_CLOCK
: ::c_int
= 74;
1071 pub const _SC_MQ_PRIO_MAX
: ::c_int
= 75;
1072 pub const _SC_READER_WRITER_LOCKS
: ::c_int
= 76;
1073 pub const _SC_REGEXP
: ::c_int
= 77;
1074 pub const _SC_SHELL
: ::c_int
= 78;
1075 pub const _SC_SPAWN
: ::c_int
= 79;
1076 pub const _SC_SPIN_LOCKS
: ::c_int
= 80;
1077 pub const _SC_SPORADIC_SERVER
: ::c_int
= 81;
1078 pub const _SC_THREAD_ATTR_STACKADDR
: ::c_int
= 82;
1079 pub const _SC_THREAD_ATTR_STACKSIZE
: ::c_int
= 83;
1080 pub const _SC_THREAD_DESTRUCTOR_ITERATIONS
: ::c_int
= 85;
1081 pub const _SC_THREAD_KEYS_MAX
: ::c_int
= 86;
1082 pub const _SC_THREAD_PRIO_INHERIT
: ::c_int
= 87;
1083 pub const _SC_THREAD_PRIO_PROTECT
: ::c_int
= 88;
1084 pub const _SC_THREAD_PRIORITY_SCHEDULING
: ::c_int
= 89;
1085 pub const _SC_THREAD_PROCESS_SHARED
: ::c_int
= 90;
1086 pub const _SC_THREAD_SAFE_FUNCTIONS
: ::c_int
= 91;
1087 pub const _SC_THREAD_SPORADIC_SERVER
: ::c_int
= 92;
1088 pub const _SC_THREAD_STACK_MIN
: ::c_int
= 93;
1089 pub const _SC_THREAD_THREADS_MAX
: ::c_int
= 94;
1090 pub const _SC_TIMEOUTS
: ::c_int
= 95;
1091 pub const _SC_THREADS
: ::c_int
= 96;
1092 pub const _SC_TRACE
: ::c_int
= 97;
1093 pub const _SC_TRACE_EVENT_FILTER
: ::c_int
= 98;
1094 pub const _SC_TRACE_INHERIT
: ::c_int
= 99;
1095 pub const _SC_TRACE_LOG
: ::c_int
= 100;
1096 pub const _SC_TTY_NAME_MAX
: ::c_int
= 101;
1097 pub const _SC_TYPED_MEMORY_OBJECTS
: ::c_int
= 102;
1098 pub const _SC_V6_ILP32_OFF32
: ::c_int
= 103;
1099 pub const _SC_V6_ILP32_OFFBIG
: ::c_int
= 104;
1100 pub const _SC_V6_LP64_OFF64
: ::c_int
= 105;
1101 pub const _SC_V6_LPBIG_OFFBIG
: ::c_int
= 106;
1102 pub const _SC_ATEXIT_MAX
: ::c_int
= 107;
1103 pub const _SC_XOPEN_CRYPT
: ::c_int
= 108;
1104 pub const _SC_XOPEN_ENH_I18N
: ::c_int
= 109;
1105 pub const _SC_XOPEN_LEGACY
: ::c_int
= 110;
1106 pub const _SC_XOPEN_REALTIME
: ::c_int
= 111;
1107 pub const _SC_XOPEN_REALTIME_THREADS
: ::c_int
= 112;
1108 pub const _SC_XOPEN_SHM
: ::c_int
= 113;
1109 pub const _SC_XOPEN_STREAMS
: ::c_int
= 114;
1110 pub const _SC_XOPEN_UNIX
: ::c_int
= 115;
1111 pub const _SC_XOPEN_VERSION
: ::c_int
= 116;
1112 pub const _SC_XOPEN_XCU_VERSION
: ::c_int
= 117;
1113 pub const _SC_IPV6
: ::c_int
= 118;
1114 pub const _SC_RAW_SOCKETS
: ::c_int
= 119;
1115 pub const _SC_SYMLOOP_MAX
: ::c_int
= 120;
1116 pub const _SC_PHYS_PAGES
: ::c_int
= 121;
1118 pub const PTHREAD_MUTEX_INITIALIZER
: pthread_mutex_t
= 0 as *mut _
;
1119 pub const PTHREAD_COND_INITIALIZER
: pthread_cond_t
= 0 as *mut _
;
1120 pub const PTHREAD_RWLOCK_INITIALIZER
: pthread_rwlock_t
= 0 as *mut _
;
1121 pub const PTHREAD_MUTEX_ERRORCHECK
: ::c_int
= 1;
1122 pub const PTHREAD_MUTEX_RECURSIVE
: ::c_int
= 2;
1123 pub const PTHREAD_MUTEX_NORMAL
: ::c_int
= 3;
1124 pub const PTHREAD_MUTEX_DEFAULT
: ::c_int
= PTHREAD_MUTEX_ERRORCHECK
;
1126 pub const SCHED_FIFO
: ::c_int
= 1;
1127 pub const SCHED_OTHER
: ::c_int
= 2;
1128 pub const SCHED_RR
: ::c_int
= 3;
1130 pub const FD_SETSIZE
: usize = 1024;
1132 pub const ST_NOSUID
: ::c_ulong
= 2;
1134 pub const NI_MAXHOST
: ::size_t
= 1025;
1136 pub const RTLD_LOCAL
: ::c_int
= 0;
1137 pub const RTLD_NODELETE
: ::c_int
= 0x1000;
1138 pub const RTLD_NOLOAD
: ::c_int
= 0x2000;
1139 pub const RTLD_GLOBAL
: ::c_int
= 0x100;
1141 pub const LOG_NTP
: ::c_int
= 12 << 3;
1142 pub const LOG_SECURITY
: ::c_int
= 13 << 3;
1143 pub const LOG_CONSOLE
: ::c_int
= 14 << 3;
1144 pub const LOG_NFACILITIES
: ::c_int
= 24;
1146 pub const TIOCEXCL
: ::c_uint
= 0x2000740d;
1147 pub const TIOCNXCL
: ::c_uint
= 0x2000740e;
1148 pub const TIOCFLUSH
: ::c_ulong
= 0x80047410;
1149 pub const TIOCGETA
: ::c_uint
= 0x402c7413;
1150 pub const TIOCSETA
: ::c_ulong
= 0x802c7414;
1151 pub const TIOCSETAW
: ::c_ulong
= 0x802c7415;
1152 pub const TIOCSETAF
: ::c_ulong
= 0x802c7416;
1153 pub const TIOCGETD
: ::c_uint
= 0x4004741a;
1154 pub const TIOCSETD
: ::c_ulong
= 0x8004741b;
1155 pub const TIOCGDRAINWAIT
: ::c_uint
= 0x40047456;
1156 pub const TIOCSDRAINWAIT
: ::c_ulong
= 0x80047457;
1157 pub const TIOCTIMESTAMP
: ::c_uint
= 0x40107459;
1158 pub const TIOCMGDTRWAIT
: ::c_uint
= 0x4004745a;
1159 pub const TIOCMSDTRWAIT
: ::c_ulong
= 0x8004745b;
1160 pub const TIOCDRAIN
: ::c_uint
= 0x2000745e;
1161 pub const TIOCEXT
: ::c_ulong
= 0x80047460;
1162 pub const TIOCSCTTY
: ::c_uint
= 0x20007461;
1163 pub const TIOCCONS
: ::c_ulong
= 0x80047462;
1164 pub const TIOCGSID
: ::c_uint
= 0x40047463;
1165 pub const TIOCSTAT
: ::c_uint
= 0x20007465;
1166 pub const TIOCUCNTL
: ::c_ulong
= 0x80047466;
1167 pub const TIOCSWINSZ
: ::c_ulong
= 0x80087467;
1168 pub const TIOCGWINSZ
: ::c_uint
= 0x40087468;
1169 pub const TIOCMGET
: ::c_uint
= 0x4004746a;
1170 pub const TIOCM_LE
: ::c_int
= 0x1;
1171 pub const TIOCM_DTR
: ::c_int
= 0x2;
1172 pub const TIOCM_RTS
: ::c_int
= 0x4;
1173 pub const TIOCM_ST
: ::c_int
= 0x8;
1174 pub const TIOCM_SR
: ::c_int
= 0x10;
1175 pub const TIOCM_CTS
: ::c_int
= 0x20;
1176 pub const TIOCM_RI
: ::c_int
= 0x80;
1177 pub const TIOCM_DSR
: ::c_int
= 0x100;
1178 pub const TIOCM_CD
: ::c_int
= 0x40;
1179 pub const TIOCM_CAR
: ::c_int
= 0x40;
1180 pub const TIOCM_RNG
: ::c_int
= 0x80;
1181 pub const TIOCMBIC
: ::c_ulong
= 0x8004746b;
1182 pub const TIOCMBIS
: ::c_ulong
= 0x8004746c;
1183 pub const TIOCMSET
: ::c_ulong
= 0x8004746d;
1184 pub const TIOCSTART
: ::c_uint
= 0x2000746e;
1185 pub const TIOCSTOP
: ::c_uint
= 0x2000746f;
1186 pub const TIOCPKT
: ::c_ulong
= 0x80047470;
1187 pub const TIOCPKT_DATA
: ::c_int
= 0x0;
1188 pub const TIOCPKT_FLUSHREAD
: ::c_int
= 0x1;
1189 pub const TIOCPKT_FLUSHWRITE
: ::c_int
= 0x2;
1190 pub const TIOCPKT_STOP
: ::c_int
= 0x4;
1191 pub const TIOCPKT_START
: ::c_int
= 0x8;
1192 pub const TIOCPKT_NOSTOP
: ::c_int
= 0x10;
1193 pub const TIOCPKT_DOSTOP
: ::c_int
= 0x20;
1194 pub const TIOCPKT_IOCTL
: ::c_int
= 0x40;
1195 pub const TIOCNOTTY
: ::c_uint
= 0x20007471;
1196 pub const TIOCSTI
: ::c_ulong
= 0x80017472;
1197 pub const TIOCOUTQ
: ::c_uint
= 0x40047473;
1198 pub const TIOCSPGRP
: ::c_ulong
= 0x80047476;
1199 pub const TIOCGPGRP
: ::c_uint
= 0x40047477;
1200 pub const TIOCCDTR
: ::c_uint
= 0x20007478;
1201 pub const TIOCSDTR
: ::c_uint
= 0x20007479;
1202 pub const TTYDISC
: ::c_int
= 0x0;
1203 pub const SLIPDISC
: ::c_int
= 0x4;
1204 pub const PPPDISC
: ::c_int
= 0x5;
1205 pub const NETGRAPHDISC
: ::c_int
= 0x6;
1207 pub const BIOCGRSIG
: ::c_ulong
= 0x40044272;
1208 pub const BIOCSRSIG
: ::c_ulong
= 0x80044273;
1209 pub const BIOCSDLT
: ::c_ulong
= 0x80044278;
1210 pub const BIOCGSEESENT
: ::c_ulong
= 0x40044276;
1211 pub const BIOCSSEESENT
: ::c_ulong
= 0x80044277;
1212 pub const BIOCSETF
: ::c_ulong
= 0x80104267;
1213 pub const BIOCGDLTLIST
: ::c_ulong
= 0xc0104279;
1214 pub const BIOCSRTIMEOUT
: ::c_ulong
= 0x8010426d;
1215 pub const BIOCGRTIMEOUT
: ::c_ulong
= 0x4010426e;
1217 pub const FIODTYPE
: ::c_ulong
= 0x4004667a;
1218 pub const FIOGETLBA
: ::c_ulong
= 0x40046679;
1219 pub const FIODGNAME
: ::c_ulong
= 0x80106678;
1221 pub const B0
: speed_t
= 0;
1222 pub const B50
: speed_t
= 50;
1223 pub const B75
: speed_t
= 75;
1224 pub const B110
: speed_t
= 110;
1225 pub const B134
: speed_t
= 134;
1226 pub const B150
: speed_t
= 150;
1227 pub const B200
: speed_t
= 200;
1228 pub const B300
: speed_t
= 300;
1229 pub const B600
: speed_t
= 600;
1230 pub const B1200
: speed_t
= 1200;
1231 pub const B1800
: speed_t
= 1800;
1232 pub const B2400
: speed_t
= 2400;
1233 pub const B4800
: speed_t
= 4800;
1234 pub const B9600
: speed_t
= 9600;
1235 pub const B19200
: speed_t
= 19200;
1236 pub const B38400
: speed_t
= 38400;
1237 pub const B7200
: speed_t
= 7200;
1238 pub const B14400
: speed_t
= 14400;
1239 pub const B28800
: speed_t
= 28800;
1240 pub const B57600
: speed_t
= 57600;
1241 pub const B76800
: speed_t
= 76800;
1242 pub const B115200
: speed_t
= 115200;
1243 pub const B230400
: speed_t
= 230400;
1244 pub const EXTA
: speed_t
= 19200;
1245 pub const EXTB
: speed_t
= 38400;
1247 pub const SEM_FAILED
: *mut sem_t
= 0 as *mut sem_t
;
1249 pub const CRTSCTS
: ::tcflag_t
= 0x00030000;
1250 pub const CCTS_OFLOW
: ::tcflag_t
= 0x00010000;
1251 pub const CRTS_IFLOW
: ::tcflag_t
= 0x00020000;
1252 pub const CDTR_IFLOW
: ::tcflag_t
= 0x00040000;
1253 pub const CDSR_OFLOW
: ::tcflag_t
= 0x00080000;
1254 pub const CCAR_OFLOW
: ::tcflag_t
= 0x00100000;
1255 pub const VERASE2
: usize = 7;
1256 pub const OCRNL
: ::tcflag_t
= 0x10;
1257 pub const ONOCR
: ::tcflag_t
= 0x20;
1258 pub const ONLRET
: ::tcflag_t
= 0x40;
1260 pub const CMGROUP_MAX
: usize = 16;
1262 // https://github.com/freebsd/freebsd/blob/master/sys/net/bpf.h
1263 pub const BPF_ALIGNMENT
: usize = SIZEOF_LONG
;
1265 // Values for rtprio struct (prio field) and syscall (function argument)
1266 pub const RTP_PRIO_MIN
: ::c_ushort
= 0;
1267 pub const RTP_PRIO_MAX
: ::c_ushort
= 31;
1268 pub const RTP_LOOKUP
: ::c_int
= 0;
1269 pub const RTP_SET
: ::c_int
= 1;
1271 // Flags for chflags(2)
1272 pub const UF_SETTABLE
: ::c_ulong
= 0x0000ffff;
1273 pub const UF_NODUMP
: ::c_ulong
= 0x00000001;
1274 pub const UF_IMMUTABLE
: ::c_ulong
= 0x00000002;
1275 pub const UF_APPEND
: ::c_ulong
= 0x00000004;
1276 pub const UF_OPAQUE
: ::c_ulong
= 0x00000008;
1277 pub const UF_NOUNLINK
: ::c_ulong
= 0x00000010;
1278 pub const SF_SETTABLE
: ::c_ulong
= 0xffff0000;
1279 pub const SF_ARCHIVED
: ::c_ulong
= 0x00010000;
1280 pub const SF_IMMUTABLE
: ::c_ulong
= 0x00020000;
1281 pub const SF_APPEND
: ::c_ulong
= 0x00040000;
1282 pub const SF_NOUNLINK
: ::c_ulong
= 0x00100000;
1284 pub const TIMER_ABSTIME
: ::c_int
= 1;
1287 pub const NTP_API
: ::c_int
= 4;
1288 pub const MAXPHASE
: ::c_long
= 500000000;
1289 pub const MAXFREQ
: ::c_long
= 500000;
1290 pub const MINSEC
: ::c_int
= 256;
1291 pub const MAXSEC
: ::c_int
= 2048;
1292 pub const NANOSECOND
: ::c_long
= 1000000000;
1293 pub const SCALE_PPM
: ::c_int
= 65;
1294 pub const MAXTC
: ::c_int
= 10;
1295 pub const MOD_OFFSET
: ::c_uint
= 0x0001;
1296 pub const MOD_FREQUENCY
: ::c_uint
= 0x0002;
1297 pub const MOD_MAXERROR
: ::c_uint
= 0x0004;
1298 pub const MOD_ESTERROR
: ::c_uint
= 0x0008;
1299 pub const MOD_STATUS
: ::c_uint
= 0x0010;
1300 pub const MOD_TIMECONST
: ::c_uint
= 0x0020;
1301 pub const MOD_PPSMAX
: ::c_uint
= 0x0040;
1302 pub const MOD_TAI
: ::c_uint
= 0x0080;
1303 pub const MOD_MICRO
: ::c_uint
= 0x1000;
1304 pub const MOD_NANO
: ::c_uint
= 0x2000;
1305 pub const MOD_CLKB
: ::c_uint
= 0x4000;
1306 pub const MOD_CLKA
: ::c_uint
= 0x8000;
1307 pub const STA_PLL
: ::c_int
= 0x0001;
1308 pub const STA_PPSFREQ
: ::c_int
= 0x0002;
1309 pub const STA_PPSTIME
: ::c_int
= 0x0004;
1310 pub const STA_FLL
: ::c_int
= 0x0008;
1311 pub const STA_INS
: ::c_int
= 0x0010;
1312 pub const STA_DEL
: ::c_int
= 0x0020;
1313 pub const STA_UNSYNC
: ::c_int
= 0x0040;
1314 pub const STA_FREQHOLD
: ::c_int
= 0x0080;
1315 pub const STA_PPSSIGNAL
: ::c_int
= 0x0100;
1316 pub const STA_PPSJITTER
: ::c_int
= 0x0200;
1317 pub const STA_PPSWANDER
: ::c_int
= 0x0400;
1318 pub const STA_PPSERROR
: ::c_int
= 0x0800;
1319 pub const STA_CLOCKERR
: ::c_int
= 0x1000;
1320 pub const STA_NANO
: ::c_int
= 0x2000;
1321 pub const STA_MODE
: ::c_int
= 0x4000;
1322 pub const STA_CLK
: ::c_int
= 0x8000;
1323 pub const STA_RONLY
: ::c_int
= STA_PPSSIGNAL
1331 pub const TIME_OK
: ::c_int
= 0;
1332 pub const TIME_INS
: ::c_int
= 1;
1333 pub const TIME_DEL
: ::c_int
= 2;
1334 pub const TIME_OOP
: ::c_int
= 3;
1335 pub const TIME_WAIT
: ::c_int
= 4;
1336 pub const TIME_ERROR
: ::c_int
= 5;
1338 pub const REG_ENOSYS
: ::c_int
= -1;
1339 pub const REG_ILLSEQ
: ::c_int
= 17;
1342 pub {const}
fn WIFCONTINUED(status
: ::c_int
) -> bool
{
1346 pub {const}
fn WSTOPSIG(status
: ::c_int
) -> ::c_int
{
1350 pub {const}
fn WIFSTOPPED(status
: ::c_int
) -> bool
{
1351 (status
& 0o177) == 0o177
1356 pub fn sem_destroy(sem
: *mut sem_t
) -> ::c_int
;
1363 pub fn daemon(nochdir
: ::c_int
, noclose
: ::c_int
) -> ::c_int
;
1364 pub fn gettimeofday(tp
: *mut ::timeval
, tz
: *mut ::timezone
) -> ::c_int
;
1367 addr
: *mut ::sockaddr
,
1368 addrlen
: *mut ::socklen_t
,
1371 pub fn chflags(path
: *const ::c_char
, flags
: ::c_ulong
) -> ::c_int
;
1374 path
: *const ::c_char
,
1379 pub fn clock_getres(clk_id
: ::clockid_t
, tp
: *mut ::timespec
) -> ::c_int
;
1380 pub fn clock_gettime(clk_id
: ::clockid_t
, tp
: *mut ::timespec
) -> ::c_int
;
1381 pub fn clock_settime(
1382 clk_id
: ::clockid_t
,
1383 tp
: *const ::timespec
,
1385 pub fn clock_getcpuclockid(
1387 clk_id
: *mut ::clockid_t
,
1390 pub fn dirfd(dirp
: *mut ::DIR
) -> ::c_int
;
1391 pub fn duplocale(base
: ::locale_t
) -> ::locale_t
;
1393 pub fn fchflags(fd
: ::c_int
, flags
: ::c_ulong
) -> ::c_int
;
1394 pub fn futimens(fd
: ::c_int
, times
: *const ::timespec
) -> ::c_int
;
1395 pub fn getdomainname(name
: *mut ::c_char
, len
: ::c_int
) -> ::c_int
;
1400 result
: *mut *mut ::group
,
1406 result
: *mut *mut ::passwd
,
1408 pub fn getgrouplist(
1409 name
: *const ::c_char
,
1411 groups
: *mut ::gid_t
,
1412 ngroups
: *mut ::c_int
,
1415 sa
: *const ::sockaddr
,
1417 host
: *mut ::c_char
,
1419 serv
: *mut ::c_char
,
1423 pub fn getpriority(which
: ::c_int
, who
: ::c_int
) -> ::c_int
;
1424 pub fn getutxent() -> *mut utmpx
;
1425 pub fn getutxid(ut
: *const utmpx
) -> *mut utmpx
;
1426 pub fn getutxline(ut
: *const utmpx
) -> *mut utmpx
;
1427 pub fn initgroups(name
: *const ::c_char
, basegid
: ::gid_t
) -> ::c_int
;
1429 all(target_os
= "freebsd", any(freebsd11
, freebsd10
)),
1430 link_name
= "kevent@FBSD_1.0"
1434 changelist
: *const ::kevent
,
1436 eventlist
: *mut ::kevent
,
1438 timeout
: *const ::timespec
,
1440 pub fn lchflags(path
: *const ::c_char
, flags
: ::c_ulong
) -> ::c_int
;
1441 pub fn lutimes(file
: *const ::c_char
, times
: *const ::timeval
) -> ::c_int
;
1443 cx
: *const ::c_void
,
1449 pathname
: *const ::c_char
,
1453 all(target_os
= "freebsd", any(freebsd11
, freebsd10
)),
1454 link_name
= "mknodat@FBSD_1.1"
1458 pathname
: *const ::c_char
,
1463 addr
: *const ::c_void
,
1469 locale
: *const ::c_char
,
1472 pub fn nl_langinfo_l(item
: ::nl_item
, locale
: ::locale_t
)
1474 pub fn pipe2(fds
: *mut ::c_int
, flags
: ::c_int
) -> ::c_int
;
1478 timeout
: *const ::timespec
,
1479 sigmask
: *const sigset_t
,
1483 iov
: *const ::iovec
,
1487 pub fn pthread_attr_get_np(
1489 attr
: *mut ::pthread_attr_t
,
1491 pub fn pthread_attr_getguardsize(
1492 attr
: *const ::pthread_attr_t
,
1493 guardsize
: *mut ::size_t
,
1495 pub fn pthread_attr_getstack(
1496 attr
: *const ::pthread_attr_t
,
1497 stackaddr
: *mut *mut ::c_void
,
1498 stacksize
: *mut ::size_t
,
1500 pub fn pthread_condattr_getclock(
1501 attr
: *const pthread_condattr_t
,
1502 clock_id
: *mut clockid_t
,
1504 pub fn pthread_condattr_getpshared(
1505 attr
: *const pthread_condattr_t
,
1506 pshared
: *mut ::c_int
,
1508 pub fn pthread_condattr_setclock(
1509 attr
: *mut pthread_condattr_t
,
1510 clock_id
: ::clockid_t
,
1512 pub fn pthread_condattr_setpshared(
1513 attr
: *mut pthread_condattr_t
,
1516 pub fn pthread_main_np() -> ::c_int
;
1517 pub fn pthread_mutex_timedlock(
1518 lock
: *mut pthread_mutex_t
,
1519 abstime
: *const ::timespec
,
1521 pub fn pthread_mutexattr_getpshared(
1522 attr
: *const pthread_mutexattr_t
,
1523 pshared
: *mut ::c_int
,
1525 pub fn pthread_mutexattr_setpshared(
1526 attr
: *mut pthread_mutexattr_t
,
1529 pub fn pthread_rwlockattr_getpshared(
1530 attr
: *const pthread_rwlockattr_t
,
1533 pub fn pthread_rwlockattr_setpshared(
1534 attr
: *mut pthread_rwlockattr_t
,
1537 pub fn pthread_set_name_np(tid
: ::pthread_t
, name
: *const ::c_char
);
1541 addr
: *mut ::c_char
,
1544 pub fn pututxline(ut
: *const utmpx
) -> *mut utmpx
;
1547 iov
: *const ::iovec
,
1551 pub fn querylocale(mask
: ::c_int
, loc
: ::locale_t
) -> *const ::c_char
;
1557 pub fn sched_getscheduler(pid
: ::pid_t
) -> ::c_int
;
1558 pub fn sched_setscheduler(
1561 param
: *const ::sched_param
,
1563 pub fn sem_getvalue(sem
: *mut sem_t
, sval
: *mut ::c_int
) -> ::c_int
;
1564 pub fn sem_timedwait(
1566 abstime
: *const ::timespec
,
1573 hdtr
: *mut ::sf_hdtr
,
1574 sbytes
: *mut ::off_t
,
1577 pub fn setdomainname(name
: *const ::c_char
, len
: ::c_int
) -> ::c_int
;
1578 pub fn sethostname(name
: *const ::c_char
, len
: ::c_int
) -> ::c_int
;
1579 pub fn setpriority(which
: ::c_int
, who
: ::c_int
, prio
: ::c_int
)
1581 pub fn setresgid(rgid
: ::gid_t
, egid
: ::gid_t
, sgid
: ::gid_t
) -> ::c_int
;
1582 pub fn setresuid(ruid
: ::uid_t
, euid
: ::uid_t
, suid
: ::uid_t
) -> ::c_int
;
1583 pub fn settimeofday(
1584 tv
: *const ::timeval
,
1585 tz
: *const ::timezone
,
1589 name
: *const ::c_char
,
1593 pub fn sigtimedwait(
1594 set
: *const sigset_t
,
1595 info
: *mut siginfo_t
,
1596 timeout
: *const ::timespec
,
1598 pub fn sigwaitinfo(set
: *const sigset_t
, info
: *mut siginfo_t
) -> ::c_int
;
1600 name
: *const ::c_int
,
1602 oldp
: *mut ::c_void
,
1603 oldlenp
: *mut ::size_t
,
1604 newp
: *const ::c_void
,
1607 pub fn sysctlbyname(
1608 name
: *const ::c_char
,
1609 oldp
: *mut ::c_void
,
1610 oldlenp
: *mut ::size_t
,
1611 newp
: *const ::c_void
,
1614 pub fn sysctlnametomib(
1615 name
: *const ::c_char
,
1617 sizep
: *mut ::size_t
,
1619 pub fn uselocale(loc
: ::locale_t
) -> ::locale_t
;
1622 path
: *const ::c_char
,
1623 times
: *const ::timespec
,
1627 pub fn ntp_adjtime(buf
: *mut timex
) -> ::c_int
;
1628 pub fn ntp_gettime(buf
: *mut ntptimeval
) -> ::c_int
;
1630 // #include <link.h>
1631 pub fn dl_iterate_phdr(
1633 unsafe extern "C" fn(
1634 info
: *mut dl_phdr_info
,
1636 data
: *mut ::c_void
,
1639 data
: *mut ::c_void
,
1643 tocode
: *const ::c_char
,
1644 fromcode
: *const ::c_char
,
1648 inbuf
: *mut *mut ::c_char
,
1649 inbytesleft
: *mut ::size_t
,
1650 outbuf
: *mut *mut ::c_char
,
1651 outbytesleft
: *mut ::size_t
,
1653 pub fn iconv_close(cd
: iconv_t
) -> ::c_int
;
1656 #[link(name = "rt")]
1658 pub fn mq_close(mqd
: ::mqd_t
) -> ::c_int
;
1659 pub fn mq_getattr(mqd
: ::mqd_t
, attr
: *mut ::mq_attr
) -> ::c_int
;
1660 pub fn mq_notify(mqd
: ::mqd_t
, notification
: *const ::sigevent
)
1662 pub fn mq_open(name
: *const ::c_char
, oflag
: ::c_int
, ...) -> ::mqd_t
;
1665 msg_ptr
: *mut ::c_char
,
1667 msg_prio
: *mut ::c_uint
,
1671 msg_ptr
: *const ::c_char
,
1677 newattr
: *const ::mq_attr
,
1678 oldattr
: *mut ::mq_attr
,
1680 pub fn mq_timedreceive(
1682 msg_ptr
: *mut ::c_char
,
1684 msg_prio
: *mut ::c_uint
,
1685 abs_timeout
: *const ::timespec
,
1687 pub fn mq_timedsend(
1689 msg_ptr
: *const ::c_char
,
1692 abs_timeout
: *const ::timespec
,
1694 pub fn mq_unlink(name
: *const ::c_char
) -> ::c_int
;
1697 #[link(name = "util")]
1700 amaster
: *mut ::c_int
,
1701 aslave
: *mut ::c_int
,
1702 name
: *mut ::c_char
,
1703 termp
: *mut termios
,
1704 winp
: *mut ::winsize
,
1707 amaster
: *mut ::c_int
,
1708 name
: *mut ::c_char
,
1709 termp
: *mut termios
,
1710 winp
: *mut ::winsize
,
1712 pub fn login_tty(fd
: ::c_int
) -> ::c_int
;
1716 if #[cfg(target_os = "freebsd")] {
1718 pub use self::freebsd
::*;
1719 } else if #[cfg(target_os = "dragonfly")] {
1721 pub use self::dragonfly
::*;