This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 808ad60
authored
Rollup merge of rust-lang#125940 - devnexen:unix_fs_netbsd_get_path, r=cuviper
std::unix::fs::get_path: using fcntl codepath for netbsd instead.
on netbsd, procfs is not as central as on linux/solaris thus can be perfectly not mounted.
Thus using fcntl with F_GETPATH, the kernel deals with MAXPATHLEN internally too.1 file changed
+13
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1481 | 1481 | | |
1482 | 1482 | | |
1483 | 1483 | | |
1484 | | - | |
1485 | | - | |
1486 | | - | |
1487 | | - | |
1488 | | - | |
1489 | | - | |
| 1484 | + | |
1490 | 1485 | | |
1491 | 1486 | | |
1492 | 1487 | | |
1493 | 1488 | | |
1494 | 1489 | | |
1495 | 1490 | | |
1496 | | - | |
| 1491 | + | |
1497 | 1492 | | |
1498 | 1493 | | |
1499 | | - | |
| 1494 | + | |
1500 | 1495 | | |
1501 | 1496 | | |
1502 | 1497 | | |
1503 | 1498 | | |
1504 | 1499 | | |
1505 | 1500 | | |
1506 | | - | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
1507 | 1511 | | |
1508 | 1512 | | |
1509 | 1513 | | |
| |||
0 commit comments