Skip to content

Commit a4716b2

Browse files
committed
Add SeekData and SeekHole to Whence for apple targets
1 parent c5a4299 commit a4716b2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

changelog/2473.added.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add `SeekData` and `SeekHole` to `Whence` for apple targets

src/unistd.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,6 +1426,7 @@ pub enum Whence {
14261426
/// equal to offset that contains some data. If offset points to
14271427
/// some data, then the file offset is set to offset.
14281428
#[cfg(any(
1429+
apple_targets,
14291430
freebsdlike,
14301431
solarish,
14311432
target_os = "linux",
@@ -1437,6 +1438,7 @@ pub enum Whence {
14371438
/// then the file offset should be adjusted to the end of the file (i.e., there
14381439
/// is an implicit hole at the end of any file).
14391440
#[cfg(any(
1441+
apple_targets,
14401442
freebsdlike,
14411443
solarish,
14421444
target_os = "linux",

0 commit comments

Comments
 (0)