Skip to content

Commit 8e74bb4

Browse files
authored
Add SeekData and SeekHole to Whence for hurd and apple targets (#2473)
1 parent c5a4299 commit 8e74bb4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-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 hurd and apple targets

src/unistd.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,8 +1426,10 @@ 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,
1432+
target_os = "hurd",
14311433
target_os = "linux",
14321434
))]
14331435
SeekData = libc::SEEK_DATA,
@@ -1437,8 +1439,10 @@ pub enum Whence {
14371439
/// then the file offset should be adjusted to the end of the file (i.e., there
14381440
/// is an implicit hole at the end of any file).
14391441
#[cfg(any(
1442+
apple_targets,
14401443
freebsdlike,
14411444
solarish,
1445+
target_os = "hurd",
14421446
target_os = "linux",
14431447
))]
14441448
SeekHole = libc::SEEK_HOLE,

0 commit comments

Comments
 (0)