Auto merge of #851 - mneumann:dragonfly-several-fixes, r=alexcrichton
Several fixes for DragonFly With these changes in place, crate "nix" works (with some patches applied).
This commit is contained in:
commit
5054b3cbab
|
@ -174,6 +174,7 @@ pub const RAND_MAX: ::c_int = 0x7fff_ffff;
|
|||
pub const PTHREAD_STACK_MIN: ::size_t = 16384;
|
||||
pub const SIGSTKSZ: ::size_t = 40960;
|
||||
pub const MADV_INVAL: ::c_int = 10;
|
||||
pub const MADV_SETMAP: ::c_int = 11;
|
||||
pub const O_CLOEXEC: ::c_int = 0x00020000;
|
||||
pub const O_DIRECTORY: ::c_int = 0x08000000;
|
||||
pub const F_GETLK: ::c_int = 7;
|
||||
|
@ -713,6 +714,9 @@ pub const _SC_V7_LPBIG_OFFBIG: ::c_int = 125;
|
|||
pub const _SC_THREAD_ROBUST_PRIO_INHERIT: ::c_int = 126;
|
||||
pub const _SC_THREAD_ROBUST_PRIO_PROTECT: ::c_int = 127;
|
||||
|
||||
pub const WCONTINUED: ::c_int = 4;
|
||||
pub const WSTOPPED: ::c_int = 0o177;
|
||||
|
||||
extern {
|
||||
pub fn mprotect(addr: *mut ::c_void, len: ::size_t, prot: ::c_int)
|
||||
-> ::c_int;
|
||||
|
|
|
@ -861,6 +861,9 @@ extern {
|
|||
pub fn msgsnd(msqid: ::c_int, msgp: *const ::c_void, msgsz: ::size_t,
|
||||
msgflg: ::c_int) -> ::c_int;
|
||||
pub fn cfmakesane(termios: *mut ::termios);
|
||||
pub fn fexecve(fd: ::c_int, argv: *const *const ::c_char,
|
||||
envp: *const *const ::c_char)
|
||||
-> ::c_int;
|
||||
}
|
||||
|
||||
cfg_if! {
|
||||
|
|
|
@ -1105,9 +1105,6 @@ extern {
|
|||
timeout: *const ::timespec,
|
||||
sigmask: *const sigset_t) -> ::c_int;
|
||||
pub fn settimeofday(tv: *const ::timeval, tz: *const ::timezone) -> ::c_int;
|
||||
pub fn fexecve(fd: ::c_int, argv: *const *const ::c_char,
|
||||
envp: *const *const ::c_char)
|
||||
-> ::c_int;
|
||||
}
|
||||
|
||||
cfg_if! {
|
||||
|
|
Loading…
Reference in New Issue