Skip to content

Commit

Permalink
Add SEEK_DATA/SEEK_HOLE constants
Browse files Browse the repository at this point in the history
Relates to nix-rust/nix#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>
  • Loading branch information
posborne committed Jun 21, 2016
1 parent f73f5c6 commit 45448fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/unix/notbsd/linux/other/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 45448fb

Please sign in to comment.