Repository navigation
Commit dc44e7f
committed
Auto merge of #163552 - RalfJung:dir-entry-metadata, r=Mark-Simulacrum
DirEntry::metadata: use dirfd on more targets
Most of the BSDs support `dirfd` and `fstatat` just fine but for some reason we've not been using it for `DirEntry::metadata`. This syncs the `cfg` for using `dirfd` with the one that we use in `Dir::close` for the FD sanity check. Those target evidently all have `dirfd` as we're using it there, and that's a strict subset of the targets that have `Dir` handles, so they should support `fstatat` as well.
try-job: *bsd*
try-job: *various*1 file changed
Lines changed: 11 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | 42 | | |
52 | 43 | | |
53 | 44 | | |
| |||
1023 | 1014 | | |
1024 | 1015 | | |
1025 | 1016 | | |
1026 | | - | |
1027 | 1017 | | |
1028 | 1018 | | |
1029 | 1019 | | |
1030 | 1020 | | |
1031 | | - | |
1032 | 1021 | | |
1033 | 1022 | | |
1034 | 1023 | | |
| |||
1060 | 1049 | | |
1061 | 1050 | | |
1062 | 1051 | | |
1063 | | - | |
1064 | | - | |
1065 | | - | |
1066 | | - | |
1067 | | - | |
1068 | | - | |
1069 | | - | |
1070 | | - | |
1071 | | - | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
1072 | 1063 | | |
1073 | 1064 | | |
1074 | 1065 | | |
| |||
0 commit comments