问题
openat() was added to POSIX in the POSIX.1-2008 revision, and has been supported by Linux since 2.6.16. How is support on non-Linux UNIXes? eg, Darwin, the *BSDs, and proprietary UNIXes.
回答1:
Dragonfly BSD supports it, the rest of the BSDs don't. Solaris of course does.
回答2:
Unlike the top answer is saying, all major BSDs and Apple's OS X seem to support it as of today:
- DragonFly since DragonFly 2.3.
- FreeBSD since FreeBSD 8.0.
- Linux since Linux 2.6.16 (for completeness).
- NetBSD since NetBSD 7.0.
- OpenBSD since OpenBSD 5.0.
- OS X since OS X 10.10.
- Solaris.
回答3:
FreeBSD supports it since version 8.0
来源:https://stackoverflow.com/questions/1670135/what-non-linux-unixes-support-openat