Add sys/file.h constants
This commit is contained in:
parent
cfde22846d
commit
0358ea8b36
|
@ -533,6 +533,12 @@ pub const SA_RESTART: ::c_ulong = 0x10000000;
|
||||||
pub const SA_NODEFER: ::c_ulong = 0x40000000;
|
pub const SA_NODEFER: ::c_ulong = 0x40000000;
|
||||||
pub const SA_RESETHAND: ::c_ulong = 0x80000000;
|
pub const SA_RESETHAND: ::c_ulong = 0x80000000;
|
||||||
|
|
||||||
|
// sys/file.h
|
||||||
|
pub const LOCK_SH: ::c_int = 1;
|
||||||
|
pub const LOCK_EX: ::c_int = 2;
|
||||||
|
pub const LOCK_NB: ::c_int = 4;
|
||||||
|
pub const LOCK_UN: ::c_int = 8;
|
||||||
|
|
||||||
// sys/epoll.h
|
// sys/epoll.h
|
||||||
pub const EPOLL_CLOEXEC: ::c_int = 0x0100_0000;
|
pub const EPOLL_CLOEXEC: ::c_int = 0x0100_0000;
|
||||||
pub const EPOLL_CTL_ADD: ::c_int = 1;
|
pub const EPOLL_CTL_ADD: ::c_int = 1;
|
||||||
|
|
Loading…
Reference in New Issue