Skip to content

Commit 65dac15

Browse files
committed
Auto merge of rust-lang#723 - ncaracci:master, r=alexcrichton
Add SEEK_DATA and SEEK_HOLE constants to FreeBSD and DragonFlyBSD They can be found [here](https://github.com/DragonFlyBSD/DragonFlyBSD/blob/725edadf86d63f56a584adf23265845c8590d734/sys/sys/unistd.h#L126) for DragonFlyBSD and [here](https://github.com/freebsd/freebsd/blob/f5d95e1f8d32db4ccccfd5ad9cecb21ed07a695d/sys/sys/unistd.h) for FreeBSD.
2 parents 916b82d + bb504fd commit 65dac15

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)