Do not declare asctime_r and ctime_r for C2X
commit8382f4c3e5daf28af1aba0743aa3d62c7490bbf3
authorJoseph Myers <joseph@codesourcery.com>
Tue, 18 May 2021 19:47:49 +0000 (18 19:47 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Tue, 18 May 2021 19:47:49 +0000 (18 19:47 +0000)
treec6feb7b1beca26ddf610bda8f0f13b939d9e4a02
parentaf46a4d638930f940c9eb0064727268e1cac900d
Do not declare asctime_r and ctime_r for C2X

ISO C2X added the asctime_r, ctime_r, gmtime_r and localtime_r
functions from POSIX.  It's now removed asctime_r and ctime_r again,
reflecting that they are marked obsolescent in POSIX; update glibc's
time.h accordingly.

The same change that removed those two functions from C2X also marked
asctime and ctime as deprecated (reflecting how POSIX shows them as
obsolescent), i.e. using the [[deprecated]] attribute in the
prototypes shown in C2X.  It's less clear if we should explicitly
deprecate those functions like that in the glibc headers; this patch
does nothing regarding such a deprecation (there's no normative
requirement from C2X showing the functions as deprecated).

Tested for x86_64 and x86.
time/time.h