Skip to content

Commit 5c31597

Browse files
author
Samuel Ortiz
committed
linux/musl: Add SEEK_HOLE and SEEK_DATA constants
They are defined since Linux 3.1 but not in musl yet. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
1 parent caf17a0 commit 5c31597

File tree

1 file changed

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

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,9 @@ pub const PTRACE_PEEKSIGINFO: ::c_int = 0x4209;
279279

280280
pub const EPOLLWAKEUP: ::c_int = 0x20000000;
281281

282+
pub const SEEK_DATA: ::c_int = 3;
283+
pub const SEEK_HOLE: ::c_int = 4;
284+
282285
pub const EFD_NONBLOCK: ::c_int = ::O_NONBLOCK;
283286

284287
pub const SFD_NONBLOCK: ::c_int = ::O_NONBLOCK;

0 commit comments

Comments
 (0)