summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2014-01-21 11:51:03 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2014-01-21 11:51:03 +0000
commit3573c0755ea27eb11b71c6938312f7a72c2619aa (patch)
tree2cef691c7d67078cdf4d5426f29e0cc4a9197023 /lib/libc
parent35e63aeae7b08d06ca6ee1c11d1651810e34a985 (diff)
document return values; ok deraadt@, jmc@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/time/ctime.313
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/libc/time/ctime.3 b/lib/libc/time/ctime.3
index 8299d1dcf57..9818eba66ae 100644
--- a/lib/libc/time/ctime.3
+++ b/lib/libc/time/ctime.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ctime.3,v 1.41 2014/01/21 03:15:45 schwarze Exp $
+.\" $OpenBSD: ctime.3,v 1.42 2014/01/21 11:51:02 otto Exp $
.\"
.\"
.Dd $Mdocdate: January 21 2014 $
@@ -257,6 +257,17 @@ is non-zero if summer time is in effect.
is the offset (in seconds) of the time represented
from UTC, with positive values indicating east
of the Prime Meridian.
+.Sh RETURN VALUES
+The functions
+.Fn localtime ,
+.Fn localtime_r ,
+.Fn gmtime
+and
+.Fn gmtime_r
+return NULL on error.
+The function
+.Fn mktime
+returns \-1 on error.
.Sh FILES
.Bl -tag -width "/usr/share/zoneinfo/posixrules" -compact
.It Pa /usr/share/zoneinfo