summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Osborne <osbpau@gmail.com>2016-06-19 23:58:36 -0500
committerPaul Osborne <osbpau@gmail.com>2016-06-21 00:55:32 -0500
commit45448fbee4f4f6a93fdc8f15dd69eea2c53c24e8 (patch)
treed4771496017502b4cef76c9527918cef4515ec95
parentf73f5c6c4060e474ccd76167d20ebadb63b0f52a (diff)
downloadrust-libc-45448fbee4f4f6a93fdc8f15dd69eea2c53c24e8.tar.gz
Add SEEK_DATA/SEEK_HOLE constants
Relates to https://github.com/nix-rust/nix/pull/377. These constants are only available in systems running the Linux kernel and are not defined in musl libc (yet). Signed-off-by: Paul Osborne <osbpau@gmail.com>
-rw-r--r--src/unix/notbsd/linux/other/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/unix/notbsd/linux/other/mod.rs b/src/unix/notbsd/linux/other/mod.rs
index 6ecfe3ccaa..2998fbc21e 100644
--- a/src/unix/notbsd/linux/other/mod.rs
+++ b/src/unix/notbsd/linux/other/mod.rs
@@ -429,6 +429,9 @@ pub const F_SETOWN: ::c_int = 8;
pub const F_SETLK: ::c_int = 6;
pub const F_SETLKW: ::c_int = 7;
+pub const SEEK_DATA: ::c_int = 3;
+pub const SEEK_HOLE: ::c_int = 4;
+
pub const SFD_NONBLOCK: ::c_int = 0x0800;
pub const TCSANOW: ::c_int = 0;