summaryrefslogtreecommitdiff
path: root/src/unix/redox/mod.rs
diff options
context:
space:
mode:
authorNoah <33094578+coolreader18@users.noreply.github.com>2020-10-28 14:54:28 -0500
committerNoah <33094578+coolreader18@users.noreply.github.com>2020-10-28 14:54:30 -0500
commit0358ea8b363f2abd0cefde7e863620a6cba51b81 (patch)
tree932a099e06e99247fc6cd7d4af171fd7bf06e9e3 /src/unix/redox/mod.rs
parentcfde22846dfd83169d47278af0cf7d6e99974f6f (diff)
downloadrust-libc-0358ea8b363f2abd0cefde7e863620a6cba51b81.tar.gz
Add sys/file.h constants
Diffstat (limited to 'src/unix/redox/mod.rs')
-rw-r--r--src/unix/redox/mod.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/unix/redox/mod.rs b/src/unix/redox/mod.rs
index f6e91b09d1..faf8f0bf75 100644
--- a/src/unix/redox/mod.rs
+++ b/src/unix/redox/mod.rs
@@ -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;