OpenBSD CVS

CVS log for src/usr.sbin/zic/zic.c


[BACK] Up to [local] / src / usr.sbin / zic

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.26 / (download) - annotate - [select for diffs], Tue Oct 13 00:18:46 2020 UTC (3 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, HEAD
Changes since 1.25: +58 -58 lines
Diff to previous 1.25 (colored)

annoying whitespace gliches spotted during re-read

Revision 1.25 / (download) - annotate - [select for diffs], Thu Oct 8 11:22:43 2020 UTC (3 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

Remove -y from usage too; noticed by jmc@

Revision 1.24 / (download) - annotate - [select for diffs], Wed Oct 7 22:36:14 2020 UTC (3 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.23: +5 -42 lines
Diff to previous 1.23 (colored)

Remove support for zic's long-obsolete '-y YEARISTYPE' option.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Jan 12 15:33:17 2019 UTC (5 years, 4 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.22: +1 -2 lines
Diff to previous 1.22 (colored)

delete <locale.h>
which was left behind during gettext removal (rev. 1.5) in 2015;
no object change;
patch from Jan Stary <hans at stare dot cz>

Revision 1.22 / (download) - annotate - [select for diffs], Tue Mar 15 19:50:47 2016 UTC (8 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.21: +4 -17 lines
Diff to previous 1.21 (colored)

Don't warn about valid time zone abbreviations.  POSIX through 2000
says that an abbreviation cannot start with ':', and cannot contain
',', '-', '+', NUL, or a digit.  POSIX from 2001 on changes this
rule to say that an abbreviation can contain only '-', '+', and
alphanumeric characters from the portable character set in the
current locale.  To be portable to both sets of rules, an abbreviation
must therefore use only ASCII letters."  Adapted from tzcode2015f.
OK deraadt@ mestre@

Revision 1.21 / (download) - annotate - [select for diffs], Fri Oct 16 22:53:32 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.20: +4 -1 lines
Diff to previous 1.20 (colored)

pledge "stdio rpath wpath cpath proc exec".

Revision 1.20 / (download) - annotate - [select for diffs], Thu Apr 23 05:26:33 2015 UTC (9 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.19: +403 -426 lines
Diff to previous 1.19 (colored)

KNF and other style adjustments to make this more scrutible.
reviewed by millert

Revision 1.19 / (download) - annotate - [select for diffs], Fri Mar 13 17:23:37 2015 UTC (9 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.18: +1 -5 lines
Diff to previous 1.18 (colored)

delete useless comment about Open Group

Revision 1.18 / (download) - annotate - [select for diffs], Wed Mar 11 22:26:03 2015 UTC (9 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.17: +1 -7 lines
Diff to previous 1.17 (colored)

do not handcraft protos that already come from unistd.h

Revision 1.17 / (download) - annotate - [select for diffs], Wed Feb 11 01:07:37 2015 UTC (9 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.16: +7 -6 lines
Diff to previous 1.16 (colored)

use reallocarray; ok doug

Revision 1.16 / (download) - annotate - [select for diffs], Tue Feb 10 09:17:02 2015 UTC (9 years, 3 months ago) by tedu
Branch: MAIN
Changes since 1.15: +12 -30 lines
Diff to previous 1.15 (colored)

redo the tolower/string conversion, but retain itsabbr which is strangely
not quite the same as strncasecmp

Revision 1.15 / (download) - annotate - [select for diffs], Tue Feb 10 05:45:46 2015 UTC (9 years, 3 months ago) by tedu
Branch: MAIN
Changes since 1.14: +44 -7 lines
Diff to previous 1.14 (colored)

revert rev 1.12 (tolower conversion). didn't get it quite right.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Feb 10 05:44:50 2015 UTC (9 years, 3 months ago) by tedu
Branch: MAIN
Changes since 1.13: +48 -0 lines
Diff to previous 1.13 (colored)

move scheck.c into zic.c

Revision 1.13 / (download) - annotate - [select for diffs], Tue Feb 10 03:35:46 2015 UTC (9 years, 3 months ago) by tedu
Branch: MAIN
Changes since 1.12: +42 -132 lines
Diff to previous 1.12 (colored)

seems ansi c is here to stay. update definitions, but drop useless const.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Feb 10 03:07:17 2015 UTC (9 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.11: +7 -44 lines
Diff to previous 1.11 (colored)

lowerit -> tolower
ciequal -> strcasecmp
itsabbr -> strncasecmp
ok krw

Revision 1.11 / (download) - annotate - [select for diffs], Mon Feb 9 23:34:46 2015 UTC (9 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.10: +23 -83 lines
Diff to previous 1.10 (colored)

convert a dozen fprintf/exit pairs to use err().
leave a comment where the original code forgot to call exit.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Feb 9 23:14:32 2015 UTC (9 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.9: +9 -10 lines
Diff to previous 1.9 (colored)

exit() cleanup. don't have to call it in a loop.
usage() always takes the same stream and status arguments (despite a
comment indicating perhaps it shouldn't), so make it void

Revision 1.9 / (download) - annotate - [select for diffs], Mon Feb 9 14:34:44 2015 UTC (9 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.8: +74 -87 lines
Diff to previous 1.8 (colored)

delete lots of unnecessary or incorrect casts, including among other minor
atrocities casting qsort() to void.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Feb 9 14:15:38 2015 UTC (9 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.7: +18 -36 lines
Diff to previous 1.7 (colored)

we are not interested in warnings about what pre-1998 zic could not handle

Revision 1.7 / (download) - annotate - [select for diffs], Mon Feb 9 13:46:22 2015 UTC (9 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.6: +4 -4 lines
Diff to previous 1.6 (colored)

remove INITIALIZE macro and do it the hard way.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Feb 9 13:42:03 2015 UTC (9 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.5: +1 -3 lines
Diff to previous 1.5 (colored)

unifdef the rest of the HAVEs and HAVE nots

Revision 1.5 / (download) - annotate - [select for diffs], Mon Feb 9 13:39:16 2015 UTC (9 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.4: +1 -8 lines
Diff to previous 1.4 (colored)

unifdef have gettext. don't have it, won't have it.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Feb 9 13:21:42 2015 UTC (9 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

be clear that we want the secret libc tzfile.h, not the usual /usr/include
one

Revision 1.3 / (download) - annotate - [select for diffs], Mon Feb 9 12:52:45 2015 UTC (9 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.2: +126 -126 lines
Diff to previous 1.2 (colored)

deregister

Revision 1.2 / (download) - annotate - [select for diffs], Mon Feb 9 12:45:33 2015 UTC (9 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.1: +6 -14 lines
Diff to previous 1.1 (colored)

sort | uniq includes, and use <> instead of quotes

Revision 1.1 / (download) - annotate - [select for diffs], Mon Feb 9 12:37:47 2015 UTC (9 years, 4 months ago) by tedu
Branch: MAIN

move zic and zdump source to appropriate directories

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.