Add sys/file.h constants

This commit is contained in:
Noah 2020-10-28 14:54:28 -05:00
parent cfde22846d
commit 0358ea8b36
No known key found for this signature in database
GPG Key ID: E8C14146AE337195
1 changed files with 6 additions and 0 deletions

View File

@ -533,6 +533,12 @@ pub const SA_RESTART: ::c_ulong = 0x10000000;
pub const SA_NODEFER: ::c_ulong = 0x40000000;
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
pub const EPOLL_CLOEXEC: ::c_int = 0x0100_0000;
pub const EPOLL_CTL_ADD: ::c_int = 1;