What non-Linux unixes support openat()?
openat() was added to POSIX in the POSIX.1-20开发者_运维知识库08 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.
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.
Dragonfly BSD supports it, the rest of the BSDs don't. Solaris of course does.
FreeBSD supports it since version 8.0
精彩评论