From 2faebe695abab543dc31a06c739ff9b88565a2c8 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sat, 30 Oct 2021 14:20:10 +0200 Subject: ctime.3: SYNOPSIS: Mark [as]ctime[_r]() as [[deprecated]] C2X is going to deprecate these functions, as POSIX.1-2008 already did. Move them to the bottom of the synopsis, to show non-deprecated functions first. Reported-by: Joseph Myers Signed-off-by: Alejandro Colomar --- man3/ctime.3 | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/man3/ctime.3 b/man3/ctime.3 index 6d978b338..c928804a0 100644 --- a/man3/ctime.3 +++ b/man3/ctime.3 @@ -23,14 +23,6 @@ Standard C library .nf .B #include .PP -.BI "[[gnu::nonnull]] char *asctime(const struct tm *" tm ); -.BI "[[gnu::nonnull]] char *asctime_r(const struct tm *restrict " tm , -.BI " char " buf "[restrict 26]);" -.PP -.BI "[[gnu::nonnull]] char *ctime(const time_t *" timep ); -.BI "[[gnu::nonnull]] char *ctime_r(const time_t *restrict " timep , -.BI " char " buf "[restrict 26]);" -.PP .BI "[[gnu::nonnull]] struct tm *gmtime(const time_t *" timep ); .BI "[[gnu::nonnull]] struct tm *gmtime_r(const time_t *restrict " timep , .BI " struct tm *restrict " result ); @@ -40,6 +32,20 @@ Standard C library .BI " struct tm *restrict " result ); .PP .BI "[[gnu::nonnull]] time_t mktime(struct tm *" tm ); +.PP +.B [[deprecated]] [[gnu::nonnull]] +.BI "char *asctime(const struct tm *" tm ); +.PP +.B [[deprecated]] [[gnu::nonnull]] +.BI "char *asctime_r(const struct tm *restrict " tm ", \ +char " buf "[restrict 26]);" +.PP +.B [[deprecated]] [[gnu::nonnull]] +.BI "char *ctime(const time_t *" timep ); +.PP +.B [[deprecated]] [[gnu::nonnull]] +.BI "char *ctime_r(const time_t *restrict " timep ", \ +char " buf "[restrict 26]);" .fi .PP .RS -4 -- cgit v1.2.3