Module Name: src
Committed By: martin
Date: Sun Oct 13 15:22:04 UTC 2024
Modified Files:
src/share/man/man3 [netbsd-9]: tm.3
Log Message:
Pull up following revision(s) (requested by riastradh in ticket #1908):
share/man/man3/tm.3: revision 1.6
share/man/man3/tm.3: revision 1.7
tm(3): Fix types in man page.
PR lib/58651: tm(3): wrong type in man page for tm_gmtoff
tm(3): Fix type of tm_zone again, and describe it as const.
It is `char *', not `char'. But it's also not supposed to be written
to, as kre@ noted, so just document it as `const' even though it's
technically not declared that way, presumably for expedience of
managing it with malloc/free internally.
PR lib/58651: tm(3): wrong type in man page for tm_gmtoff
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.4.46.1 src/share/man/man3/tm.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/man/man3/tm.3
diff -u src/share/man/man3/tm.3:1.4 src/share/man/man3/tm.3:1.4.46.1
--- src/share/man/man3/tm.3:1.4 Thu Apr 14 05:45:34 2011
+++ src/share/man/man3/tm.3 Sun Oct 13 15:22:04 2024
@@ -1,4 +1,4 @@
-.\" $NetBSD: tm.3,v 1.4 2011/04/14 05:45:34 jruoho Exp $
+.\" $NetBSD: tm.3,v 1.4.46.1 2024/10/13 15:22:04 martin Exp $
.\"
.\" Copyright (c) 2011 Jukka Ruohonen <[email protected]>
.\" All rights reserved.
@@ -68,8 +68,8 @@ In addition, the following NetBSD-specif
.Bl -column -offset indent \
"Type " "Field " "Months since January 1"
.It Sy Type Ta Sy Field Ta Sy Represents
-.It Vt int Ta Va tm_gmtoff Ta Offset from UTC in seconds
-.It Vt __aconst char Ta Va tm_zone Ta Timezone abbreviation
+.It Vt long Ta Va tm_gmtoff Ta Offset from UTC in seconds
+.It Vt "const char *" Ta Va tm_zone Ta Timezone abbreviation
.El
.Pp
The