aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/zic
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-232-2/+0
| | | | | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/ Similar commit in main: (cherry picked from commit d0b2dbfa0ecf)
* Bring our tzcode up to date.Dag-Erling Smørgrav2023-01-317-148/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Replay 2010[acflm] which had been merged but not recorded. * Merge 2010n. * Reorganize (unsplit) the code to match the upstream layout. * Merge 2022[cdefg]. MFC after: 1 week Sponsored by: Klara, Inc. (cherry picked from commit bc42155199b5b0b479311e05b07aee7f6f9c5172) tzcode: Address some compiler warnings. MFC after: 1 week Sponsored by: Klara, Inc. (cherry picked from commit d5c85ac6526dcd0ac25ebdb71969c8c788d5e13b) tzcode: Move configuration into separate header. MFC after: 1 week Sponsored by: Klara, Inc. (cherry picked from commit 394cf6719a3c665eabe24d96669409e0c5a78076) tzcode: Remove access() again, cf. 02ba1d993fa9. Reported by: Coverity (CID 1250126) MFC after: 1 week Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D38035 (cherry picked from commit 3e2e5eebfaa0aebb2790bbde7f35d4c6c52e2596) tzcode: Avoid memory leak if pthread_setspecific() fails. Reported by: Coverity (CID 1018472, 1018474) MFC after: 1 week Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D38036 (cherry picked from commit 96e68c393f65046c0cf69d29f89efcfee949e5de) tzcode: Fully initialize structs before use. Reported by: Coverity (CID 1502542, 1502548) MFC after: 1 week Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D38037 (cherry picked from commit 55572cff58c4208a9e532356a245676b8eed6a3e) tzcode: Silence warnings. * Ignore failure to remove our temp file. * Avoid a minor memory leak in the -D case. Reported by: Coverity (CID 1502534, 1502535, 1502538) MFC after: 1 week Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D38038 (cherry picked from commit 2aad7570f4e11ac94bb06c44cdc83ad1962fb97e) depend-cleanup.sh: handle zic moving one level up. MFC after: 1 week Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D38044 (cherry picked from commit 4a158fc030b5a31efdbad8b30c9a859df553ae3c) libc: Update mktime(3) / timegm(3) tests. Sponsored by: Klara, Inc. Reviewed by: ngie Differential Revision: https://reviews.freebsd.org/D38177 (cherry picked from commit d8c9f80891872a54d0b21933136644d915096fe3) zoneinfo: On amd64, include 32-bit data. While there, drop the unnecessary posixrules option. Sponsored by: Klara, Inc. Reviewed by: imp, allanjude Differential Revision: https://reviews.freebsd.org/D38142 (cherry picked from commit 783c318fd1181d46554c31a5039db10e7f5eef49) tzcode: Document zic's -D option. Sponsored by: Klara, Inc. Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D38141 (cherry picked from commit a7b1b73935f21a3dcd6fc8d86a37b92f0c9ba93f) zoneinfo: Always produce fat zoneinfo files. These aren't just needed for compatibility with i386 binaries (which need the 32-bit section), but potentially also for compatibility with older binaries on all platforms. Sponsored by: Klara, Inc. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D38194 (cherry picked from commit f1021d27f73efb821213a973e1ab9366278c78f1) Fix cross-build from STABLE or older CURRENT. Previously, zic and tzsetup were both listed as install tools and basic bootstrap tools. Actually, tzsetup is an install tool while zic is a non-basic bootstrap tool. Fixes: 783c318fd118 Sponsored by: Klara, Inc. Reviewed by: jrtc27, emaste Differential Revision: https://reviews.freebsd.org/D38195 (cherry picked from commit 7a4a520064cb7fbff79560113682d6fe1a1ae9ee) Makefile.inc1: Restore adding tzsetup to _basic_bootstrap_tools ITOOLS is only the list of programs to make a copy of during install, it doesn't cause anything to be bootstrapped. Thus, by removing tzsetup from _basic_bootstrap_tools, we end up without it on non-FreeBSD, and so we error out trying to copy it to INSTALLTMP. Note that _basic_bootstrap_tools is only used for BOOTSTRAP_ALL_TOOLS (which is why zic was moved away from it). Should tzsetup evolve such that the host version is insufficient on older FreeBSD it can be moved to be more like zic, but that seems unnecessary for what is likely to remain a simple tool. This partially reverts commit 7a4a520064cb7fbff79560113682d6fe1a1ae9ee. Fixes: 7a4a520064cb ("Fix cross-build from STABLE or older CURRENT.") (cherry picked from commit d4fdfd3f9077216e52f38f7364974959c9e43168)
* Remove tests for obsolete compilers in the build systemEric van Gyzen2020-05-121-1/+1
| | | | | | | | | | | | | | Assume gcc is at least 6.4, the oldest xtoolchain in the ports tree. Assume clang is at least 6, which was in 11.2-RELEASE. Drop conditions for older compilers. Reviewed by: imp (earlier version), emaste, jhb MFC after: 2 weeks Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D24802 Notes: svn path=/head/; revision=360964
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-312-2/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* zic: -Wno-error=strict-overflowRyan Libby2017-09-141-0/+6
| | | | | | | | | Reviewed by: emaste Sponsored by: Dell EMC Isilon X-Differential Revision: https://reviews.freebsd.org/D12284 Notes: svn path=/head/; revision=323572
* Use SRCTOP-relative paths to other directories instead of .CURDIR-relative onesEnji Cooper2017-03-013-5/+5
| | | | | | | | | | | | Also, use :H where possible/sensical to manipulate .CURDIR-relative paths This simplifies pathing in make/displayed output. MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314468
* Use more appropriate ${SHAREDIR} rather than /usr/share.Bryan Drewery2015-10-272-2/+2
| | | | | | | | MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=290083
* Add META_MODE support.Simon J. Gerraty2015-06-132-0/+36
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-082-4/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Updated dependenciesSimon J. Gerraty2014-05-162-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-102-0/+4
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Updated dependenciesSimon J. Gerraty2013-03-112-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * Updated dependenciesSimon J. Gerraty2013-02-162-4/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-222-0/+38
|/ | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* wollman@ has OK'd dropping his maintainership of zic(8)Gavin Atkinson2010-03-201-1/+0
| | | | | | | | Submitted by: linimon Approved by: wollman (via linimon) Notes: svn path=/head/; revision=205366
* Split the contributed code from libc/stdtime from lib/libc/stdtimeEdwin Groothuis2010-02-262-2/+2
| | | | | | | to contrib/tzcode/stdtime. Notes: svn path=/head/; revision=204347
* From contrib/tzcode:Edwin Groothuis2010-02-2510-4929/+2
| | | | | | | | | | | The Makefiles are leftovers from the copies and should live in usr.sbin/zic/* From usr.sbin/zic: The sources are from a vendor contributed source, therefore should live in contrib/tzcode/zic. Notes: svn path=/head/; revision=204332
* The last big commit: let usr.sbin/ use WARNS=6 by default.Ed Schouten2010-01-022-0/+4
| | | | Notes: svn path=/head/; revision=201390
* MFV of tzdata2009t, r200831Edwin Groothuis2009-12-221-5/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | zic: - Fix URL / reference to Calendrical Calculations: Third Edition libc/stdtime: - Fix typo in tzfile.5 (no changes in our part) MFC after: 1 week Notes: svn path=/head/; revision=200832
* | MFV of r198828, tzcode2009qEdwin Groothuis2009-11-022-6/+6
|\| | | | | | | | | | | | | | | | | | | - Cleanup unnecessary local variables in zdump. - Fix man-page MFC after: 1 week Notes: svn path=/head/; revision=198831
* | MFV of r195794Edwin Groothuis2009-08-271-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | MFV of tzcode2009k zic.c: Do not end a binary file with a POSIX-style time zone string for locations that end up in permanent DST (thanks to Andreas Schwab). Notes: svn path=/head/; revision=196587
| * Flatten the dist tree of vendor/tzcodeEdwin Groothuis2008-09-2714-5381/+0
| | | | | | | | Notes: svn path=/vendor/tzcode/dist/; revision=183400
| * Remove files no longer on the vendor branch.Stefan Farfeleder2004-06-202-274/+0
| | | | | | | | Notes: svn path=/vendor/tzcode/dist/; revision=130780
* | MFV of tzcode2009h revision r192887Edwin Groothuis2009-05-275-6/+19
| | | | | | | | | | | | | | | | | | - Clarify the license for the tzcode: public domain MFC after: 1 month Notes: svn path=/head/; revision=192890
* | MFV of tzcode2009e:Edwin Groothuis2009-05-2312-1435/+1491
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upgrade of the tzcode from 2004a to 2009e. Changes are numerous, but include... - New format of the output of zic, which supports both 32 and 64 bit time_t formats. - zdump on 64 bit platforms will actually produce some output instead of doing nothing for a looooooooong time. - linux_base-fX, with X >= at least 8, will work without problems related to the local time again. The original patch, based on the 2008e, has been running for a long time on both my laptop and desktop machine and have been tested by other people. After the installation of this code and the running of zic(8), you need to run tzsetup(8) again to install the new datafile. Approved by: wollman@ for usr.sbin/zic MFC after: 1 month Notes: svn path=/head/; revision=192625
* | Finish a few more .Dl "quoted" arguments missed in revision 184984Giorgos Keramidas2008-11-151-4/+4
| | | | | | | | Notes: svn path=/head/; revision=184985
* | Add missing quotes to .Dl arguments.Giorgos Keramidas2008-11-151-4/+4
| | | | | | | | | | | | | | | | This is harmless for the mandoc output, but it makes syntax highlighting of the .Dl argument string a bit prettier in Emacs. Notes: svn path=/head/; revision=184984
* | getopt(3) returns -1, not EOF.Ruslan Ermilov2008-02-191-1/+1
| | | | | | | | Notes: svn path=/head/; revision=176407
* | zic(8) should exit the loop when the end of the string is reached dueKevin Lo2007-12-031-1/+4
| | | | | | | | | | | | | | | | | | to the call to error(). The problem found by doing fuzz testing. MFC after: 3 days Notes: svn path=/head/; revision=174210
* | Normalize MAN.Ruslan Ermilov2006-10-182-2/+2
| | | | | | | | Notes: svn path=/head/; revision=163484
* | Expand contractions.Ruslan Ermilov2005-02-131-2/+2
| | | | | | | | Notes: svn path=/head/; revision=141851
* | Eliminate macro calls inside literal displays.Ruslan Ermilov2005-01-151-6/+5
| | | | | | | | Notes: svn path=/head/; revision=140295
* | Make the -m option actually work.Ruslan Ermilov2004-10-191-1/+1
| | | | | | | | Notes: svn path=/head/; revision=136708
* | Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-2/+4
| | | | | | | | Notes: svn path=/head/; revision=131500
* | Merge changes from the tzcode2004a import.Stefan Farfeleder2004-06-205-51/+89
| | | | | | | | Notes: svn path=/head/; revision=130819
* | This commit was generated by cvs2svn to compensate for changes in r130780,Stefan Farfeleder2004-06-201-97/+0
| | | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=130781
* | This commit was generated by cvs2svn to compensate for changes in r130777,Stefan Farfeleder2004-06-204-26/+1028
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=130778
| * Import the rest of tzcode2004a, the bits needed for the timezone compiler.Stefan Farfeleder2004-06-209-92/+1162
| | | | | | | | | | | | | | Obtained from: ftp://elsie.nci.nih.gov/pub/tzcode2004a.tar.gz Notes: svn path=/vendor/tzcode/dist/; revision=130777
* | style.Makefile(5)David E. O'Brien2003-04-042-2/+2
| | | | | | | | Notes: svn path=/head/; revision=113091
* | Check whether setmode(3) fails and deallocate its return value afterMike Heffner2003-02-241-0/+4
| | | | | | | | | | | | | | | | | | | | calling getmode(3). Approved by: wollman MFC after: 1 week Notes: svn path=/head/; revision=111414
* | The .Nm utilityPhilippe Charnier2002-07-142-8/+12
| | | | | | | | Notes: svn path=/head/; revision=99968
* | Perform a major cleanup of the usr.sbin Makefiles.David E. O'Brien2001-07-202-6/+6
| | | | | | | | | | | | | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before. Notes: svn path=/head/; revision=80029
* | Set wollman as the MAINTAINER and mention the vendor contact. IdeallyDima Dorfman2001-07-181-0/+4
| | | | | | | | | | | | | | | | | | | | | | this entire subtree would be in src/contrib, but if that isn't going to happen at least this has a chance of warning off unsuspecting committers. Approved by: wollman Notes: svn path=/head/; revision=79859
* | Back out WARNS cleanup: this is apparently vendor code, even thoughDima Dorfman2001-07-185-14/+8
| | | | | | | | | | | | | | | | | | most of the files aren't on the vendor branch. Submitted by: wollman Notes: svn path=/head/; revision=79858
* | Constify, add some prototypes, and set WARNS=2.Dima Dorfman2001-07-155-8/+14
| | | | | | | | | | | | | | Submitted by: Mike Barcroft <mike@q9media.com> Notes: svn path=/head/; revision=79751
* | - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-262-0/+2
| | | | | | | | | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74816
* | Set the default manual section for usr.sbin/ to 8.Ruslan Ermilov2001-03-202-2/+0
| | | | | | | | Notes: svn path=/head/; revision=74532
* | Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-271-11/+11
| | | | | | | | Notes: svn path=/head/; revision=70403
* | mdoc(7) police: use canonical form of .Dd macro.Ruslan Ermilov2000-12-111-1/+1
| | | | | | | | Notes: svn path=/head/; revision=69862
* | -Wall cleaningPhilippe Charnier2000-11-285-7/+6
| | | | | | | | Notes: svn path=/head/; revision=69315