C23 deprecates asctime and ctime, so deprecate them in Gnulib too.
* NEWS, doc/posix-functions/asctime.texi:
* doc/posix-functions/ctime.texi: Mention this.
* lib/time.in.h (ctime): Deprecate any ctime replacement.
* modules/ctime: Now obsolete.
+2022-12-21 Paul Eggert <eggert@cs.ucla.edu>
+
+ asctime, ctime: deprecate
+ C23 deprecates asctime and ctime, so deprecate them in Gnulib too.
+ * NEWS, doc/posix-functions/asctime.texi:
+ * doc/posix-functions/ctime.texi: Mention this.
+ * lib/time.in.h (ctime): Deprecate any ctime replacement.
+ * modules/ctime: Now obsolete.
+
2022-12-17 Paul Eggert <eggert@cs.ucla.edu>
memset_explicit: port to older MS-Windows
Date Modules Changes
+2022-12-21 ctime This module is deprecated. Use localtime_r
+ and strftime (or even sprintf) instead.
+
2022-11-03 dynarray These modules are renamed to glibc-internal/dynarray
scratch_buffer and glibc-internal/scratch_buffer, respectively.
They are not meant for general use.
Portability problems not fixed by Gnulib:
@itemize
@item
+This function is deprecated in C23.
+Portable applications can use @code{strftime} (or even @code{sprintf}) instead.
+@item
This function may overflow its internal buffer if an invalid year is passed.
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@item
+This function is deprecated in C23.
+Portable applications can use @code{localtime_r} and @code{strftime}
+(or even @code{sprintf}) instead.
+@item
This function may overflow its internal buffer if an invalid year is passed.
@item
The @code{ctime} function need not be reentrant, and consequently is
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
# define ctime rpl_ctime
# endif
+_GL_ATTRIBUTE_DEPRECATED
_GL_FUNCDECL_RPL (ctime, char *, (time_t const *__tp)
_GL_ARG_NONNULL ((1)));
_GL_CXXALIAS_RPL (ctime, char *, (time_t const *__tp));
Description:
ctime() function: convert time to string.
+Status:
+obsolete
+
+Notice:
+This module is obsolete.
+
Files:
lib/ctime.c
m4/ctime.m4