File tree 2 files changed +5
-0
lines changed 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change
1
+ Add ` SeekData ` and ` SeekHole ` to ` Whence ` for hurd and apple targets
Original file line number Diff line number Diff line change @@ -1426,8 +1426,10 @@ pub enum Whence {
1426
1426
/// equal to offset that contains some data. If offset points to
1427
1427
/// some data, then the file offset is set to offset.
1428
1428
#[ cfg( any(
1429
+ apple_targets,
1429
1430
freebsdlike,
1430
1431
solarish,
1432
+ target_os = "hurd" ,
1431
1433
target_os = "linux" ,
1432
1434
) ) ]
1433
1435
SeekData = libc:: SEEK_DATA ,
@@ -1437,8 +1439,10 @@ pub enum Whence {
1437
1439
/// then the file offset should be adjusted to the end of the file (i.e., there
1438
1440
/// is an implicit hole at the end of any file).
1439
1441
#[ cfg( any(
1442
+ apple_targets,
1440
1443
freebsdlike,
1441
1444
solarish,
1445
+ target_os = "hurd" ,
1442
1446
target_os = "linux" ,
1443
1447
) ) ]
1444
1448
SeekHole = libc:: SEEK_HOLE ,
You can’t perform that action at this time.
0 commit comments