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.

Signed-off-by: Paul Osborne <osbpau@gmail.com>
  • Loading branch information
posborne committed Jun 20, 2016
1 parent f73f5c6 commit 30befca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unix/notbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ pub const EOF: ::c_int = -1;
pub const SEEK_SET: ::c_int = 0;
pub const SEEK_CUR: ::c_int = 1;
pub const SEEK_END: ::c_int = 2;
pub const SEEK_DATA: ::c_int = 3;
pub const SEEK_HOLE: ::c_int = 4;
pub const _IOFBF: ::c_int = 0;
pub const _IONBF: ::c_int = 2;
pub const _IOLBF: ::c_int = 1;
Expand Down

0 comments on commit 30befca

Please sign in to comment.