Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #3374 - SteveLauC:close_range-closefrom-FreeBSD, r=John…
…Titor 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)
- Loading branch information