Module Name: src Committed By: martin Date: Sun Oct 13 15:20:49 UTC 2024
Modified Files: src/share/man/man3 [netbsd-10]: tm.3 Log Message: Pull up following revision(s) (requested by riastradh in ticket #966): 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.5 -r1.5.2.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.5 src/share/man/man3/tm.3:1.5.2.1 --- src/share/man/man3/tm.3:1.5 Sun Oct 23 15:43:40 2022 +++ src/share/man/man3/tm.3 Sun Oct 13 15:20:49 2024 @@ -1,4 +1,4 @@ -.\" $NetBSD: tm.3,v 1.5 2022/10/23 15:43:40 jschauma Exp $ +.\" $NetBSD: tm.3,v 1.5.2.1 2024/10/13 15:20:49 martin Exp $ .\" .\" Copyright (c) 2011 Jukka Ruohonen <jruoho...@iki.fi> .\" 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