summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2021-10-30 14:20:10 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-09-05 04:13:31 +0200
commit2faebe695abab543dc31a06c739ff9b88565a2c8 (patch)
tree30f7a3264777209e979b4300012e332dbe6a1afa
parentb830f9b63af54454f026341585f8d9e997ed851e (diff)
ctime.3: SYNOPSIS: Mark [as]ctime[_r]() as [[deprecated]]synopsis
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 <joseph@codesourcery.com> Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rw-r--r--man3/ctime.322
1 files 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 <time.h>
.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