Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/time Grammar fixes at few places
details: https://anonhg.NetBSD.org/src/rev/b1ba36a653b1
branches: trunk
changeset: 349770:b1ba36a653b1
user: abhinav <abhinav%NetBSD.org@localhost>
date: Thu Dec 22 17:27:02 2016 +0000
description:
Grammar fixes at few places
Also, don't use .D1 inside .Bd (mandoc -Tlint was complaining)
Remove whitespace at the end of a sentence
diffstat:
lib/libc/time/ctime.3 | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diffs (95 lines):
diff -r 9b260ce71bd2 -r b1ba36a653b1 lib/libc/time/ctime.3
--- a/lib/libc/time/ctime.3 Thu Dec 22 16:32:31 2016 +0000
+++ b/lib/libc/time/ctime.3 Thu Dec 22 17:27:02 2016 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: ctime.3,v 1.51 2014/10/07 21:51:03 christos Exp $
+.\" $NetBSD: ctime.3,v 1.52 2016/12/22 17:27:02 abhinav Exp $
.\"
.\" XXX: License missing?
.\"
@@ -65,7 +65,7 @@
.Fa tm
structure to a string with the following general format:
.Bd -literal -offset indent
-.D1 Thu Nov 24 18:22:48 1986\en\e0
+Thu Nov 24 18:22:48 1986\en\e0
.Ed
.Pp
The
@@ -77,7 +77,7 @@
.Fn asctime_r
has the same behavior as
.Fn asctime ,
-but the result is stored to
+but the result is stored in
.Fa buf ,
which should have a size of at least 26 bytes.
.It Fn ctime "clock"
@@ -91,7 +91,7 @@
Years requiring fewer than four characters are padded with leading zeroes.
For years longer than four characters, the string is of the form
.Bd -literal -offset indent
-.D1 "Thu Nov 24 18:22:48 81986\en\e0"
+Thu Nov 24 18:22:48 81986\en\e0
.Ed
.Pp
with five spaces before the year.
@@ -114,7 +114,7 @@
.Fn ctime_r
is similar to
.Fn ctime ,
-except it places the result of the conversion on the
+except it places the result of the conversion in the
.Fa buf
argument, which should be 26 or more bytes long,
instead of using a global static buffer.
@@ -165,7 +165,7 @@
.Dv NULL ,
UTC is used; otherwise,
.Fa zone
-should be have been allocated by
+should have been allocated by
.Fn tzalloc
and should not be freed until after all uses (e.g., by calls to
.Fn strftime )
@@ -184,11 +184,11 @@
.It Fn gmtime_r "clock" "result"
The
.Fn gmtime_r
-provides the same functionality as
+function provides the same functionality as
.Fn gmtime ,
differing in that the caller must supply a buffer area
.Fa result
-to which the result is stored.
+in which the result is stored.
.It Fn localtime "clock"
Also
.Fn localtime
@@ -215,7 +215,7 @@
.Fn localtime_r
takes an additional buffer
.Fa result
-as a parameter and stores the result to it.
+as a parameter and stores the result in it.
Note however that
.Fn localtime_r
does not imply initialization of the local time conversion information;
@@ -316,7 +316,7 @@
.Pq Tn UTC .
.El
.Pp
-Declarations of all the functions and externals, and the
+Declarations of all the functions and externals, and the
.Ft tm
structure, are in the
.In time.h
@@ -490,7 +490,7 @@
.Sh CAVEATS
The functions that do not take an explicit
.Ft timezone_t
-argument return values point to static data; the data is overwritten by
+argument return values pointing to static data; the data is overwritten by
each call.
For the above functions the
.Fa tm_zone
Home |
Main Index |
Thread Index |
Old Index