summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man3/ctime.326
-rw-r--r--man3/strftime.31
-rw-r--r--man3/strptime.31
-rw-r--r--man3/timegm.34
4 files changed, 17 insertions, 15 deletions
diff --git a/man3/ctime.3 b/man3/ctime.3
index 1424c6baa..6d978b338 100644
--- a/man3/ctime.3
+++ b/man3/ctime.3
@@ -23,23 +23,23 @@ Standard C library
.nf
.B #include <time.h>
.PP
-.BI "char *asctime(const struct tm *" tm );
-.BI "char *asctime_r(const struct tm *restrict " tm ,
-.BI " char " buf "[restrict 26]);"
+.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 "char *ctime(const time_t *" timep );
-.BI "char *ctime_r(const time_t *restrict " timep ,
-.BI " char " buf "[restrict 26]);"
+.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 "struct tm *gmtime(const time_t *" timep );
-.BI "struct tm *gmtime_r(const time_t *restrict " timep ,
-.BI " struct tm *restrict " result );
+.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 );
.PP
-.BI "struct tm *localtime(const time_t *" timep );
-.BI "struct tm *localtime_r(const time_t *restrict " timep ,
-.BI " struct tm *restrict " result );
+.BI "[[gnu::nonnull]] struct tm *localtime(const time_t *" timep );
+.BI "[[gnu::nonnull]] struct tm *localtime_r(const time_t *restrict " timep ,
+.BI " struct tm *restrict " result );
.PP
-.BI "time_t mktime(struct tm *" tm );
+.BI "[[gnu::nonnull]] time_t mktime(struct tm *" tm );
.fi
.PP
.RS -4
diff --git a/man3/strftime.3 b/man3/strftime.3
index 9a10275ca..f16d4a3f7 100644
--- a/man3/strftime.3
+++ b/man3/strftime.3
@@ -24,6 +24,7 @@ Standard C library
.nf
.B #include <time.h>
.PP
+.B [[gnu::nonnull]]
.BI "size_t strftime(char *restrict " s ", size_t " max ,
.BI " const char *restrict " format ,
.BI " const struct tm *restrict " tm );
diff --git a/man3/strptime.3 b/man3/strptime.3
index e220f21b0..0b7fb1240 100644
--- a/man3/strptime.3
+++ b/man3/strptime.3
@@ -19,6 +19,7 @@ Standard C library
.BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */"
.B #include <time.h>
.PP
+.B [[gnu::nonnull]]
.BI "char *strptime(const char *restrict " s ", const char *restrict " format ,
.BI " struct tm *restrict " tm );
.fi
diff --git a/man3/timegm.3 b/man3/timegm.3
index d8dd7f4da..9e590878c 100644
--- a/man3/timegm.3
+++ b/man3/timegm.3
@@ -12,8 +12,8 @@ Standard C library
.nf
.B #include <time.h>
.PP
-.BI "time_t timelocal(struct tm *" tm );
-.BI "time_t timegm(struct tm *" tm );
+.BI "[[gnu::nonnull]] time_t timelocal(struct tm *" tm );
+.BI "[[gnu::nonnull]] time_t timegm(struct tm *" tm );
.PP
.fi
.RS -4