<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">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.<div class=""><br class=""></div><div class="">Implementations lag behind standards, although admittedly that's a rather substantial lag. :-)</div><div class=""><br class=""></div><div class="">(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)<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jan 29, 2022, at 20:59, raf <<a href="mailto:macports@raf.org" class="">macports@raf.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi,<br class=""><br class="">I just tried to compile (/usr/bin/cc) something (not a<br class="">port) that uses openat(2) on 10.6.8 (with current<br class="">macports and Xcode 3.2.6 (1761)) but it wasn't there. I<br class="">expected it to be, because openat() was standardized by<br class="">2008 and the 10.6.8 system is from 2010. Did I compile<br class="">it wrong (e.g., old default compiler), or did openat()<br class="">just not appear until a later version of macOS?<br class=""><br class="">cheers,<br class="">raf<br class=""><br class=""></div></div></blockquote></div><br class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div>-- <br class="">eMail:<span class="Apple-tab-span" style="white-space: pre;">                          </span><a href="mailto:rlhamil@smart.net" class="">mailto:rlhamil@smart.net</a></div><div><br class=""></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br class=""></div></body></html>