git: a9a38dea37ef - main - libc: Remove prototype and documentation for tzsetwall().
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 07 Mar 2023 17:21:43 UTC
The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=a9a38dea37ef4b8a404978de9c5db0ab9f0ba07b commit a9a38dea37ef4b8a404978de9c5db0ab9f0ba07b Author: Dag-Erling Smørgrav <des@FreeBSD.org> AuthorDate: 2023-03-07 16:04:29 +0000 Commit: Dag-Erling Smørgrav <des@FreeBSD.org> CommitDate: 2023-03-07 17:20:49 +0000 libc: Remove prototype and documentation for tzsetwall(). PR: 269445 Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D38481 --- ObsoleteFiles.inc | 3 +++ include/time.h | 1 - lib/libc/gen/Makefile.inc | 1 - lib/libc/gen/tzset.3 | 22 +++------------------- lib/libc/stdtime/ctime.3 | 6 ++---- 5 files changed, 8 insertions(+), 25 deletions(-) diff --git a/ObsoleteFiles.inc b/ObsoleteFiles.inc index 74f0c70c25f1..23bdd366f40b 100644 --- a/ObsoleteFiles.inc +++ b/ObsoleteFiles.inc @@ -52,6 +52,9 @@ # xargs -n1 | sort | uniq -d; # done +# 20230306: remove tzsetwall(3) +OLD_FILES+=usr/share/man/man3/tzsetwall.3.gz + # 20230208: new clang import which bumps version from 14.0.5 to 15.0.7 OLD_FILES+=usr/lib/clang/14.0.5/include/cuda_wrappers/algorithm OLD_FILES+=usr/lib/clang/14.0.5/include/cuda_wrappers/complex diff --git a/include/time.h b/include/time.h index a64a331ee52e..f8560a285bb0 100644 --- a/include/time.h +++ b/include/time.h @@ -169,7 +169,6 @@ char *strptime(const char * __restrict, const char * __restrict, #if __BSD_VISIBLE char *timezone(int, int); /* XXX XSI conflict */ -void tzsetwall(void); time_t timelocal(struct tm * const); time_t timegm(struct tm * const); int timer_oshandle_np(timer_t timerid); diff --git a/lib/libc/gen/Makefile.inc b/lib/libc/gen/Makefile.inc index f222565fd0bc..860e96bcd291 100644 --- a/lib/libc/gen/Makefile.inc +++ b/lib/libc/gen/Makefile.inc @@ -547,7 +547,6 @@ MLINKS+=tcsetattr.3 cfgetispeed.3 \ tcsetattr.3 tcgetattr.3 MLINKS+=ttyname.3 isatty.3 \ ttyname.3 ttyname_r.3 -MLINKS+=tzset.3 tzsetwall.3 MLINKS+=unvis.3 strunvis.3 \ unvis.3 strunvisx.3 MLINKS+=vis.3 nvis.3 \ diff --git a/lib/libc/gen/tzset.3 b/lib/libc/gen/tzset.3 index 788a6259b727..0403fd4a5366 100644 --- a/lib/libc/gen/tzset.3 +++ b/lib/libc/gen/tzset.3 @@ -31,12 +31,11 @@ .\" @(#)tzset.3 8.2 (Berkeley) 11/17/93 .\" $FreeBSD$ .\" -.Dd February 8, 2023 +.Dd March 6, 2023 .Dt TZSET 3 .Os .Sh NAME -.Nm tzset , -.Nm tzsetwall +.Nm tzset .Nd initialize time conversion information .Sh LIBRARY .Lb libc @@ -44,8 +43,6 @@ .In time.h .Ft void .Fn tzset void -.Ft void -.Fn tzsetwall void .Sh DESCRIPTION The .Fn tzset @@ -99,17 +96,6 @@ environment variable does not specify a file and cannot be interpreted as a direct specification, .Tn UTC is used. -.Pp -The -.Fn tzsetwall -function is equivalent to calling -.Fn tzset -with the -.Ev TZ -environment variable unset. -It is deprecated and may not be available in -.Fx 14.0 -and later. .Sh SPECIFICATION FORMAT When .Ev TZ @@ -336,7 +322,5 @@ leap seconds are loaded from .Sh HISTORY The .Fn tzset -and -.Fn tzsetwall -functions first appeared in +function first appeared in .Bx 4.4 . diff --git a/lib/libc/stdtime/ctime.3 b/lib/libc/stdtime/ctime.3 index de3a57bab59e..b347e5362948 100644 --- a/lib/libc/stdtime/ctime.3 +++ b/lib/libc/stdtime/ctime.3 @@ -30,7 +30,7 @@ .\" From: @(#)ctime.3 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd September 16, 2022 +.Dd March 6, 2023 .Dt CTIME 3 .Os .Sh NAME @@ -395,9 +395,7 @@ field of a returned structure points to a static array of characters, which will also be overwritten by any subsequent calls (as well as by subsequent calls to -.Xr tzset 3 -and -.Xr tzsetwall 3 ) . +.Xr tzset 3 ) . .Pp Use of the external variable .Fa tzname