Skip to content

Commit 1e2d77a

Browse files
authored
Auto merge of #319 - posborne:additional-seek-constants, r=alexcrichton
Add SEEK_DATA/SEEK_HOLE constants Relates to nix-rust/nix#377. These constants are only available in systems running the Linux kernel.
2 parents f73f5c6 + 45448fb commit 1e2d77a

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)