Skip to content

Commit 0358ea8

Browse files
committed
Add sys/file.h constants
1 parent cfde228 commit 0358ea8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/unix/redox/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,12 @@ pub const SA_RESTART: ::c_ulong = 0x10000000;
533533
pub const SA_NODEFER: ::c_ulong = 0x40000000;
534534
pub const SA_RESETHAND: ::c_ulong = 0x80000000;
535535

536+
// sys/file.h
537+
pub const LOCK_SH: ::c_int = 1;
538+
pub const LOCK_EX: ::c_int = 2;
539+
pub const LOCK_NB: ::c_int = 4;
540+
pub const LOCK_UN: ::c_int = 8;
541+
536542
// sys/epoll.h
537543
pub const EPOLL_CLOEXEC: ::c_int = 0x0100_0000;
538544
pub const EPOLL_CTL_ADD: ::c_int = 1;

0 commit comments

Comments
 (0)