We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SeekData
SeekHole
Whence
1 parent c5a4299 commit a4716b2Copy full SHA for a4716b2
changelog/2473.added.md
@@ -0,0 +1 @@
1
+Add `SeekData` and `SeekHole` to `Whence` for apple targets
src/unistd.rs
@@ -1426,6 +1426,7 @@ pub enum Whence {
1426
/// equal to offset that contains some data. If offset points to
1427
/// some data, then the file offset is set to offset.
1428
#[cfg(any(
1429
+ apple_targets,
1430
freebsdlike,
1431
solarish,
1432
target_os = "linux",
@@ -1437,6 +1438,7 @@ pub enum Whence {
1437
1438
/// then the file offset should be adjusted to the end of the file (i.e., there
1439
/// is an implicit hole at the end of any file).
1440
1441
1442
1443
1444
0 commit comments