This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Obsolete and Removed POSIX Functions
- From: Yaakov Selkowitz <yselkowitz at cygwin dot com>
- To: newlib at sourceware dot org
- Date: Mon, 15 Feb 2016 13:21:40 -0600
- Subject: Re: Obsolete and Removed POSIX Functions
- Authentication-results: sourceware.org; auth=none
- References: <56C22272 dot 3090805 at oarcorp dot com>
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