History log of /openbsd-current/usr.bin/calendar/calendar.h
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.17 01-Feb-2019 millert

Fix regresion that prevented -A0 from working as before.
This can be used to disable the default behavior of reporting events
for the weekend on a Friday.


# 1.16 29-Jan-2019 millert

Fix a bug with -flag where later events may be shown when they should not be.
The problem is caused by the special handling of Friday, where calendar will
show the upcoming events for the weeked as well. This change disables the
special handling of Friday for the -B option, as was already done for -A.
From Andy Bradford.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.15 07-Dec-2015 espie

tweak the code a bit and add a -w option to display day of week.
okay jmc@, millert@


Revision tags: OPENBSD_5_8_BASE
# 1.14 15-Mar-2015 millert

tzfile.h is an internal header that should never have been installed.
What's worse, the tzfile.h that gets installed is over 20 years old
and doesn't match the real tzfile.h in libc/time. This makes the
tree safe for /usr/include/tzfile.h removal. The TM_YEAR_BASE
define has been moved to time.h temporarily until its usage is
replaced by 1900 in the tree. Actual removal of tzfile.h is pending
a ports build. Based on a diff from deraadt@


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE
# 1.13 28-Apr-2010 jsg

shuffle extern decl of header[] so gcc4 doesn't complain about
incomplete types.

ok deraadt@ 'Looks acceptable' miod@


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.12 09-Aug-2005 mickey

handle -A0 correctly; from koen@egelink.nl


Revision tags: OPENBSD_3_7_BASE
# 1.11 10-Dec-2004 mickey

define pesach (by gauss) and fix judaic calendar


# 1.10 10-Dec-2004 mickey

allow calendar files in julian


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE
# 1.9 03-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.8 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


Revision tags: OPENBSD_3_0_BASE
# 1.7 27-Sep-2001 mickey

some fixes and cleanups some from dfa@solo.ee, some pointed
out by pjanzen@ .


# 1.6 26-Sep-2001 mickey

special procesing for cyrillic calendars (.ru, .ua, .by for now).
does not affect any existing behaviour for everything else.
old idea expressed by form@; millert@ ok


# 1.5 03-Sep-2001 pjanzen

- Prevent users from hanging or killing 'calendar -a', at the cost of
one additional fork() per user who has a calendar file. Side effect is
that root runs much less code.
- Use login caps so we don't, for example, give a user more processes than
he's allowed.
- tmpfile() rather than mkstemp() means never leaving junk behind.
- Don't let 'calendar -a' take more than a day.

Reviewed by millert@


Revision tags: OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.4 13-Dec-1998 pjanzen

Show periodic events the correct number of times.
Calculate special events (Easter) correctly regardless of which year
they occur in (thus fixing user/562).
Keep locales and special event names from propogating from one user
to the next during "calendar -a".
Set up a framework to handle special events other than Easter (for instance,
Jewish events, eventually).
Various other fixes.


# 1.3 08-Nov-1998 pjanzen

Sort output by date; include framework for showing periodic events more than
once


Revision tags: OPENBSD_2_3_BASE OPENBSD_2_4_BASE
# 1.2 30-Mar-1998 deraadt

Y2K fixes from Andreas.Gunnarsson@emw.ericsson.se; culled from various places


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE
# 1.1 05-Dec-1996 millert

FreeBSD calendar(1) + OpenBSD changes.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.15 07-Dec-2015 espie

tweak the code a bit and add a -w option to display day of week.
okay jmc@, millert@


Revision tags: OPENBSD_5_8_BASE
# 1.14 15-Mar-2015 millert

tzfile.h is an internal header that should never have been installed.
What's worse, the tzfile.h that gets installed is over 20 years old
and doesn't match the real tzfile.h in libc/time. This makes the
tree safe for /usr/include/tzfile.h removal. The TM_YEAR_BASE
define has been moved to time.h temporarily until its usage is
replaced by 1900 in the tree. Actual removal of tzfile.h is pending
a ports build. Based on a diff from deraadt@


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE
# 1.13 28-Apr-2010 jsg

shuffle extern decl of header[] so gcc4 doesn't complain about
incomplete types.

ok deraadt@ 'Looks acceptable' miod@


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.12 09-Aug-2005 mickey

handle -A0 correctly; from koen@egelink.nl


Revision tags: OPENBSD_3_7_BASE
# 1.11 10-Dec-2004 mickey

define pesach (by gauss) and fix judaic calendar


# 1.10 10-Dec-2004 mickey

allow calendar files in julian


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE
# 1.9 03-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.8 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


Revision tags: OPENBSD_3_0_BASE
# 1.7 27-Sep-2001 mickey

some fixes and cleanups some from dfa@solo.ee, some pointed
out by pjanzen@ .


# 1.6 26-Sep-2001 mickey

special procesing for cyrillic calendars (.ru, .ua, .by for now).
does not affect any existing behaviour for everything else.
old idea expressed by form@; millert@ ok


# 1.5 03-Sep-2001 pjanzen

- Prevent users from hanging or killing 'calendar -a', at the cost of
one additional fork() per user who has a calendar file. Side effect is
that root runs much less code.
- Use login caps so we don't, for example, give a user more processes than
he's allowed.
- tmpfile() rather than mkstemp() means never leaving junk behind.
- Don't let 'calendar -a' take more than a day.

Reviewed by millert@


Revision tags: OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.4 13-Dec-1998 pjanzen

Show periodic events the correct number of times.
Calculate special events (Easter) correctly regardless of which year
they occur in (thus fixing user/562).
Keep locales and special event names from propogating from one user
to the next during "calendar -a".
Set up a framework to handle special events other than Easter (for instance,
Jewish events, eventually).
Various other fixes.


# 1.3 08-Nov-1998 pjanzen

Sort output by date; include framework for showing periodic events more than
once


Revision tags: OPENBSD_2_3_BASE OPENBSD_2_4_BASE
# 1.2 30-Mar-1998 deraadt

Y2K fixes from Andreas.Gunnarsson@emw.ericsson.se; culled from various places


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE
# 1.1 05-Dec-1996 millert

FreeBSD calendar(1) + OpenBSD changes.