Skip to content

Commit 30befca

Browse files
committed
Add SEEK_DATA/SEEK_HOLE constants
Relates to nix-rust/nix#377. These constants are only available in systems running the Linux kernel. Signed-off-by: Paul Osborne <[email protected]>
1 parent f73f5c6 commit 30befca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix/notbsd/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ pub const EOF: ::c_int = -1;
188188
pub const SEEK_SET: ::c_int = 0;
189189
pub const SEEK_CUR: ::c_int = 1;
190190
pub const SEEK_END: ::c_int = 2;
191+
pub const SEEK_DATA: ::c_int = 3;
192+
pub const SEEK_HOLE: ::c_int = 4;
191193
pub const _IOFBF: ::c_int = 0;
192194
pub const _IONBF: ::c_int = 2;
193195
pub const _IOLBF: ::c_int = 1;

0 commit comments

Comments
 (0)