Skip to content

Commit bb504fd

Browse files
committed
Add SEEK_DATA and SEEK_HOLE constants to FreeBSD and DragonFlyBSD
1 parent 916b82d commit bb504fd

File tree

1 file changed

+2
-0
lines changed
  • src/unix/bsd/freebsdlike

1 file changed

+2
-0
lines changed

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ pub const EOF: ::c_int = -1;
264264
pub const SEEK_SET: ::c_int = 0;
265265
pub const SEEK_CUR: ::c_int = 1;
266266
pub const SEEK_END: ::c_int = 2;
267+
pub const SEEK_DATA: ::c_int = 3;
268+
pub const SEEK_HOLE: ::c_int = 4;
267269
pub const _IOFBF: ::c_int = 0;
268270
pub const _IONBF: ::c_int = 2;
269271
pub const _IOLBF: ::c_int = 1;

0 commit comments

Comments
 (0)