Skip to content

Commit

Permalink
Auto merge of #319 - posborne:additional-seek-constants, r=alexcrichton
Browse files Browse the repository at this point in the history
Add SEEK_DATA/SEEK_HOLE constants

Relates to nix-rust/nix#377.  These constants
are only available in systems running the Linux kernel.
  • Loading branch information
bors committed Jun 21, 2016
2 parents f73f5c6 + 45448fb commit 1e2d77a
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 1e2d77a

Please sign in to comment.