diff options
author | 2014-01-21 11:51:02 +0000 | |
---|---|---|
committer | 2014-01-21 11:51:02 +0000 | |
commit | 021e2eb1aa901776689762f7b3f484e975b8efa7 (patch) | |
tree | ea84c60b752079017bc4c2b37803407b43d2fd9b /lib/libc | |
parent | do not abuse .Cd for userland stuff; use .In or .Fd (diff) | |
download | wireguard-openbsd-021e2eb1aa901776689762f7b3f484e975b8efa7.tar.xz wireguard-openbsd-021e2eb1aa901776689762f7b3f484e975b8efa7.zip |
document return values; ok deraadt@, jmc@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/time/ctime.3 | 13 |
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 |