Skip to content

Commit 45448fb

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 and are not defined in musl libc (yet). Signed-off-by: Paul Osborne <[email protected]>
1 parent f73f5c6 commit 45448fb

File tree

1 file changed

+3
-0
lines changed
  • src/unix/notbsd/linux/other

1 file changed

+3
-0
lines changed

src/unix/notbsd/linux/other/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,9 @@ pub const F_SETOWN: ::c_int = 8;
429429
pub const F_SETLK: ::c_int = 6;
430430
pub const F_SETLKW: ::c_int = 7;
431431

432+
pub const SEEK_DATA: ::c_int = 3;
433+
pub const SEEK_HOLE: ::c_int = 4;
434+
432435
pub const SFD_NONBLOCK: ::c_int = 0x0800;
433436

434437
pub const TCSANOW: ::c_int = 0;

0 commit comments

Comments
 (0)