Commit 98dcd5e
committed
Auto merge of #26941 - fhartwig:osx-file-debug, r=alexcrichton
This makes `Debug` for `File` show the file path and access mode of the file on OS X, just like on Linux.
I'd be happy about any feedback how to make this code better. In particular, I'm not sure how to handle the buffer passed to `fnctl`. This way works, but it feels a bit cumbersome. `fcntl` unfortunately doesn't return the length of the path.2 files changed
+20
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4978 | 4978 | | |
4979 | 4979 | | |
4980 | 4980 | | |
| 4981 | + | |
| 4982 | + | |
4981 | 4983 | | |
4982 | 4984 | | |
4983 | 4985 | | |
| |||
5130 | 5132 | | |
5131 | 5133 | | |
5132 | 5134 | | |
| 5135 | + | |
5133 | 5136 | | |
5134 | 5137 | | |
5135 | 5138 | | |
| |||
5151 | 5154 | | |
5152 | 5155 | | |
5153 | 5156 | | |
| 5157 | + | |
| 5158 | + | |
5154 | 5159 | | |
5155 | 5160 | | |
5156 | 5161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
374 | 386 | | |
375 | 387 | | |
376 | 388 | | |
377 | 389 | | |
378 | 390 | | |
379 | | - | |
| 391 | + | |
380 | 392 | | |
381 | 393 | | |
382 | 394 | | |
| |||
390 | 402 | | |
391 | 403 | | |
392 | 404 | | |
393 | | - | |
| 405 | + | |
394 | 406 | | |
395 | 407 | | |
396 | 408 | | |
| |||
0 commit comments