History log of /freebsd-9.3-release/usr.bin/calendar/calendar.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 267654 19-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 225736 22-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


# 205872 30-Mar-2010 edwin

On request of joel@:

- Remove the 3rd clause of the UC Berkeley copyrighted files.
- For the files added copyrighted by me, move the "All rights
reserved" to the next line.


# 205821 29-Mar-2010 edwin

Long awaited update to the calendar system:

- Repeating events which span multiple years (because of -A, -B or
just the three days before the end of the year).

- Support for lunar events (full moon, new moon) and solar events
(equinox and solstice, chinese new year). Because of this, the
options -U (UTC offset) and -l (longitude) are available to
compensate if reality doesn't match the calculated values.

MFC after: 1 month


# 200470 13-Dec-2009 delphij

- Remove times.h from C programs that does not manipulate with time at
all.
- Remove pathnames.h from all but io.c since it's the only module that
used these definations.


# 200462 13-Dec-2009 delphij

Revert most part of 200420 as requested, as more review and polish is
needed.


# 200420 11-Dec-2009 delphij

Remove unneeded header includes from usr.bin/ except contributed code.

Tested with: make universe


# 181323 05-Aug-2008 edwin

Move functions which are only locally used into their C files and
make them static.

usage() in calendar.c
event_*() in io.c

PR: bin/118644
Approved by: bde@ (mentor)


# 181322 05-Aug-2008 edwin

style(9)ify usr.bin/calendar

PR: bin/118644
Approved by: bde@ (mentor)
MFC after: 1 week


# 169343 07-May-2007 dwmalone

ANSIfy function definitions.
Move some extern declarations to a header file.
Remove an unneeded extern declaration for optarg.


# 101862 14-Aug-2002 ru

Fix the usage() to match style(9).


# 98181 13-Jun-2002 grog

Add two new options:

-W is like -A (number of days in the future to consider, but also
specifies that we don't want special treatment at weekends.
-F changes our notion of "Friday" (the day before the weekend).

Arguably, calendar(1) is broken to have special treatment of weekends
by default, but this method maintains POLA.


# 87628 10-Dec-2001 dwmalone

Style improvements recommended by Bruce as a follow up to some
of the recent WARNS commits. The idea is:

1) FreeBSD id tags should follow vendor tags.
2) Vendor tags should not be compiled (though copyrights probably should).
3) There should be no blank line between including cdefs and __FBSDIF.


# 87235 02-Dec-2001 markm

WARNS=2 fixup (mostly. Some are Hard To Fix(tm), so NO_WERROR is set)
Use __FBSDID().
Sort some headers.


# 73256 01-Mar-2001 imp

Remove redundant declaration of optind. It has been declared in unistd.h
for ages.


# 66742 06-Oct-2000 alex

List the -t option in usage().

PR: 21734
Submitted by: Giorgos Keramidas <keramida@ceid.upatras.gr>


# 59945 04-May-2000 phantom

Add missing $FreeBSD$ tags


# 48172 24-Jun-1999 imp

Don't add '?' to getopt's options.


# 24360 29-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


# 22323 06-Feb-1997 mpp

Initialize the group list when we switch uids when run as
root with "calendar -a". Drop all privs when execing other
programs.

Obtained from: OpenBSD


# 15714 10-May-1996 ache

Localize it
Handle Orthodox Eastern
-Wall cleanup


# 13840 02-Feb-1996 wosch

- handle events that move around from year to year, i.e.,
``the last Monday in April'
- handle easter

new options
-f calendarfile
-A days
-B days

Calendar HOME directory ~/.calendar
don't sent mail if ~/.calendar/nomail exist


# 11335 08-Oct-1995 ache

Change error diagnostic to be less confusing:
no calendar file -> no calendar file in current directory


# 11334 08-Oct-1995 ache

Remove hack inserted by me long time ago (cd $HOME for user-called case),
no other system do it and it can cause problem with multi-calendars
for single user.


# 9987 07-Aug-1995 wollman

Delete bogus referneces to timezone code internal header file `tzfile.h',
which is no longer bogusly installed in /usr/include.


# 8874 30-May-1995 rgrimes

Remove trailing whitespace.


# 5311 31-Dec-1994 ache

Fix for two problems:
Calendar not cd $HOME when running by user
Calendar calls cpp with # lines allowed


# 1591 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1590,
which included commits to RCS files with non-trunk default branches.


# 1590 27-May-1994 rgrimes

BSD 4.4 Lite Usr.bin Sources