Pretty sure it first appeared in 10.10, that's the first one for which I see the man page in the OS source code.
Implementations lag behind standards, although admittedly that's a rather substantial lag. :-) (I've downloaded quite a number of versions of the source, and for each built an index file listing the name of each .tar.gz file along with each file within it, so a simple grep can find some things quickly, although in this case I had to also grep for xnu, to keep the search from picking up things like gnutar that optionally _used_ openat) > On Jan 29, 2022, at 20:59, raf <[email protected]> wrote: > > Hi, > > I just tried to compile (/usr/bin/cc) something (not a > port) that uses openat(2) on 10.6.8 (with current > macports and Xcode 3.2.6 (1761)) but it wasn't there. I > expected it to be, because openat() was standardized by > 2008 and the 10.6.8 system is from 2010. Did I compile > it wrong (e.g., old default compiler), or did openat() > just not appear until a later version of macOS? > > cheers, > raf > -- eMail: mailto:[email protected]
smime.p7s
Description: S/MIME cryptographic signature
