Module Name: src
Committed By: wiz
Date: Fri Dec 17 01:30:50 UTC 2010
Modified Files:
src/lib/libc/time: ctime.3
Log Message:
Sort ERRORS. Fix a typo. Readd macro usage lost in previous.
Remove trailing whitespace.
To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/lib/libc/time/ctime.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/time/ctime.3
diff -u src/lib/libc/time/ctime.3:1.36 src/lib/libc/time/ctime.3:1.37
--- src/lib/libc/time/ctime.3:1.36 Thu Dec 16 18:38:07 2010
+++ src/lib/libc/time/ctime.3 Fri Dec 17 01:30:50 2010
@@ -1,4 +1,4 @@
-.\" $NetBSD: ctime.3,v 1.36 2010/12/16 18:38:07 christos Exp $
+.\" $NetBSD: ctime.3,v 1.37 2010/12/17 01:30:50 wiz Exp $
.Dd December 14, 2010
.Dt CTIME 3
.Os
@@ -59,7 +59,7 @@
.Fn tzfree "const timezone_t tz"
.Sh DESCRIPTION
.Fn ctime
-converts a
+converts a
.Tp time_t ,
pointed to by
.Fa clock ,
@@ -79,7 +79,7 @@
.Fn ctime_r
is similar to
.Fn ctime ,
-except it places the result of the convertion on the
+except it places the result of the conversion on the
.Fa buf
argument which should be 26 or more bytes long, instead of using a global
static buffer.
@@ -143,7 +143,8 @@
.Pp
.Fn asctime
converts a time value contained in a
-``tm'' structure to a string,
+.Dq tm
+structure to a string,
as shown in the above example,
and returns a pointer to the string.
.Pp
@@ -223,13 +224,13 @@
multiple timezones at the same time by using separate
.Ft timezone_t
objects allocated by
-.Fn tzalloc
+.Fn tzalloc
and calling the
.Dq z
variants of the functions.
.Pp
.Fn tzgetname
-returns the name for the given
+returns the name for the given
.Fa tz .
If
.Fa isdst
@@ -237,7 +238,7 @@
.Va 0 ,
the call is equivalent to
.Va tzname[0] .
-If
+If
.Fa isdst
is set to
.Va 1
@@ -276,7 +277,7 @@
created.
There is no guarantee that these fields will continue to exist
in this form in future releases of this code.
-The
+The
.Fa tm_zone
field will become invalid and point to freed storage if the corresponding
.Va "struct tm"
@@ -384,10 +385,10 @@
.Fn mktime_z
will fail when:
.Bl -tag -width Er
-.It Bq Er EOVERFLOW
-The result cannot be represented.
.It Bq Er EINVAL
The result cannot be represented.
+.It Bq Er EOVERFLOW
+The result cannot be represented.
.El
.Pp
All functions that return values except their