Obsolete and Removed POSIX Functions
Yaakov Selkowitz
yselkowitz@cygwin.com
Mon Feb 15 19:21:00 GMT 2016
On 2016-02-15 13:09, Joel Sherrill wrote:
> I am unsure how methods noted by POSIX as obsolete should
> be guarded.
>
> http://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xsh_chap01.html
>
> For example, asctime() and asctime_r() were marked as obsolescent
> in Issue 7.
obsolete != removed:
http://man7.org/linux/man-pages/man3/asctime.3.html
> Similarly, that page lists some methods that should be removed.
> I am assuming it is OK to still support them but what should the
> guards be?
Did you see my RFC:
https://sourceware.org/ml/newlib/2016/msg00072.html
There are several examples therein, which can easily be found by
searching for "&& !__"
--
Yaakov
More information about the Newlib
mailing list