Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/time Sort ERRORS. Fix a typo. Readd macro usage los...



details:   https://anonhg.NetBSD.org/src/rev/5c214688f0dc
branches:  trunk
changeset: 759813:5c214688f0dc
user:      wiz <wiz%NetBSD.org@localhost>
date:      Fri Dec 17 01:30:50 2010 +0000

description:
Sort ERRORS. Fix a typo. Readd macro usage lost in previous.
Remove trailing whitespace.

diffstat:

 lib/libc/time/ctime.3 |  21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)

diffs (83 lines):

diff -r 958d37b08cfb -r 5c214688f0dc lib/libc/time/ctime.3
--- a/lib/libc/time/ctime.3     Fri Dec 17 01:30:14 2010 +0000
+++ b/lib/libc/time/ctime.3     Fri Dec 17 01:30:50 2010 +0000
@@ -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,9 +385,9 @@
 .Fn mktime_z
 will fail when:
 .Bl -tag -width Er
-.It Bq Er EOVERFLOW
+.It Bq Er EINVAL
 The result cannot be represented.
-.It Bq Er EINVAL
+.It Bq Er EOVERFLOW
 The result cannot be represented.
 .El
 .Pp



Home | Main Index | Thread Index | Old Index