Commit 422616b
committed
Auto merge of #3374 - SteveLauC:close_range-closefrom-FreeBSD, r=JohnTitor
feat: closefrom() and close_range() for FreeBSD
This PR
1. add `closefrom()` for all the FreeBSD versions since this is available since FreeBSD 8.0
2. add `close_range()` for FreeBSD 13/14
`close_range()` seems to be available since FreeBSD 12.2, so I am not sure what we should do about FreeBSD 12 here :<
Ref:
* [Man page for `closefrom()` on FreeBSD 11](https://man.freebsd.org/cgi/man.cgi?query=closefrom&apropos=0&sektion=2&manpath=FreeBSD+11.4-RELEASE+and+Ports&arch=default&format=html)
* [Man page for `close_range()` on FreeBSD 12.2 RELEASE](https://man.freebsd.org/cgi/man.cgi?query=close_range&apropos=0&sektion=2&manpath=FreeBSD+12.2-RELEASE&arch=default&format=html)File tree
2 files changed
+4
-0
lines changed- libc-test/semver
- src/unix/bsd/freebsdlike/freebsd
2 files changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2237 | 2237 | | |
2238 | 2238 | | |
2239 | 2239 | | |
| 2240 | + | |
| 2241 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5422 | 5422 | | |
5423 | 5423 | | |
5424 | 5424 | | |
| 5425 | + | |
| 5426 | + | |
5425 | 5427 | | |
5426 | 5428 | | |
5427 | 5429 | | |
| |||
0 commit comments