Add new sendfile flags for FreeBSD
This commit is contained in:
parent
d0a5726599
commit
96ee7bf81c
@ -521,6 +521,9 @@ fn main() {
|
|||||||
"EVFILT_PROCDESC" | "EVFILT_SENDFILE" | "EVFILT_EMPTY" |
|
"EVFILT_PROCDESC" | "EVFILT_SENDFILE" | "EVFILT_EMPTY" |
|
||||||
"PD_CLOEXEC" | "PD_ALLOWED_AT_FORK" if freebsd => true,
|
"PD_CLOEXEC" | "PD_ALLOWED_AT_FORK" if freebsd => true,
|
||||||
|
|
||||||
|
// These constants were added in FreeBSD 12
|
||||||
|
"SF_USER_READAHEAD" if freebsd => true,
|
||||||
|
|
||||||
// These OSX constants are removed in Sierra.
|
// These OSX constants are removed in Sierra.
|
||||||
// https://developer.apple.com/library/content/releasenotes/General/APIDiffsMacOS10_12/Swift/Darwin.html
|
// https://developer.apple.com/library/content/releasenotes/General/APIDiffsMacOS10_12/Swift/Darwin.html
|
||||||
"KERN_KDENABLE_BG_TRACE" if apple => true,
|
"KERN_KDENABLE_BG_TRACE" if apple => true,
|
||||||
|
@ -168,6 +168,8 @@ pub const SIGSTKSZ: ::size_t = 34816;
|
|||||||
pub const SF_NODISKIO: ::c_int = 0x00000001;
|
pub const SF_NODISKIO: ::c_int = 0x00000001;
|
||||||
pub const SF_MNOWAIT: ::c_int = 0x00000002;
|
pub const SF_MNOWAIT: ::c_int = 0x00000002;
|
||||||
pub const SF_SYNC: ::c_int = 0x00000004;
|
pub const SF_SYNC: ::c_int = 0x00000004;
|
||||||
|
pub const SF_USER_READAHEAD: ::c_int = 0x00000008;
|
||||||
|
pub const SF_NOCACHE: ::c_int = 0x00000010;
|
||||||
pub const O_CLOEXEC: ::c_int = 0x00100000;
|
pub const O_CLOEXEC: ::c_int = 0x00100000;
|
||||||
pub const O_DIRECTORY: ::c_int = 0x00020000;
|
pub const O_DIRECTORY: ::c_int = 0x00020000;
|
||||||
pub const O_EXEC: ::c_int = 0x00040000;
|
pub const O_EXEC: ::c_int = 0x00040000;
|
||||||
|
Loading…
Reference in New Issue
Block a user