<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 15, 2016 at 3:50 AM, Hal Murray <span dir="ltr"><<a href="mailto:hmurray@megapathdsl.net" target="_blank">hmurray@megapathdsl.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I'm looking for cruft to clean up.<br>
<br>
If we have pthreads, will we also have pthread_attr_getstacksize and<br>
pthread_attr_setstacksize?<br>
<br>
devel/hacking.txt says<br>
> You can view POSIX-1.2001, with 2004 Corrigendum, online for free here:<br>
>    <a href="http://pubs.opengroup.org/onlinepubs/009695399/toc.htm" rel="noreferrer" target="_blank">http://pubs.opengroup.org/onlinepubs/009695399/toc.htm</a><br>
<br>
<a href="http://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_attr_setstack
size.html" rel="noreferrer" target="_blank">http://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_attr_setstack<br>
size.html</a> says:<br>
<br>
The pthread_attr_getstacksize() and pthread_attr_setstacksize() functions are<br>
marked as part of the Threads and Thread Stack Size Attribute options.<br>
<br>
The restrict keyword is added to the pthread_attr_getstacksize() prototype<br>
for alignment with the ISO/IEC 9899:1999 standard.<br>
<br>
I can't figure out if that means somebody could implement Threads without<br>
implementing Thread Stack Size.  Or even if they can, would anybody actually<br>
do it?<br>
<span class=""><font color="#888888"><br></font></span></blockquote><div><br></div><p dir="ltr" style="font-size:12.8px"><span style="font-size:12.8px">The bottom of the Open Group web pages have revision history and note which issue version things appeared or changed. This is the 2013 version:</span><br></p><p dir="ltr" style="font-size:12.8px"><a href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_attr_getstacksize.html" target="_blank">http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_attr_getstacksize.html</a></p><p dir="ltr" style="font-size:12.8px">It has the history at the bottom and says it has been in since Issue 5 and was updated to add restrict keyword in 2001 for Issue 6.</p><p dir="ltr" style="font-size:12.8px">I think this means it is always in the NTPsec assumed base OS profile of POSIX 2001 and C99. My RTEMS memory says we have had this since our first pthreads support which would have been 1994. That may be what is called Issue 5.</p><p dir="ltr" style="font-size:12.8px">I have a paper copy of that POSIX version but forgot to check it at the office.</p><p dir="ltr" style="font-size:12.8px">Bottom line, assume it is safe to use in the NTPsec assumed POSIX 2001 baseline.</p><div><span style="font-size:12.8px">--joel</span> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><font color="#888888">
<br>
--<br>
These are my opinions.  I hate spam.<br>
<br>
<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@ntpsec.org">devel@ntpsec.org</a><br>
<a href="http://lists.ntpsec.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ntpsec.org/mailman/listinfo/devel</a><br>
</font></span></blockquote></div><br></div></div>