What non-Linux unixes support openat()?

喜你入骨 提交于 2020-01-02 08:02:53

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!