History log of /freebsd-current/usr.bin/calendar/parsedata.c
Revision Date Author Comments
# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 4d846d26 10-May-2023 Warner Losh <imp@FreeBSD.org>

spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD

The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with: pfg
MFC After: 3 days
Sponsored by: Netflix


# a3c29cdb 30-Dec-2020 Stefan Eßer <se@FreeBSD.org>

Replace strcat, strcpy and snprintf with bounds checking versions


# 1462201c 31-Oct-2020 Stefan Eßer <se@FreeBSD.org>

Add file names and line numbers to calendar format error messages

Without file name and line number it is very cumbersum to identify the
locations of errors in calendar files.

MFC after: 3 days


# c01c8ccc 02-Apr-2020 Oleksandr Tymoshenko <gonzo@FreeBSD.org>

Fix calculation of the recurring weekdays

Both the result of the first_dayofweek_of_year and the target
weekday are zero-based (0 fo sunday) while the target month-day
or year-day is 1-based. Adjust logic accordingly.

Also add testcase for this PR to the kyua test suite

PR: 201062
Submitted by: Richard Narron <comet.berkeley@gmail.com>
MFC after: 1 week


# fd1efedc 02-Mar-2020 Conrad Meyer <cem@FreeBSD.org>

Add extremely useful calendar(1) application to FreeBSD

It does extremely useful things like execute sendmail and spew dubiously
accurate factoids.

From the feedback, it seems like it is an essential utility in a modern unix
and not at all a useless bikeshed. How do those Linux people live without it?
Reverts r358561.


# 3c565de3 02-Mar-2020 Conrad Meyer <cem@FreeBSD.org>

Fix typo in r278616

FreeBSD isn't an encyclopedia.


# 1de7b4b8 27-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

various: general adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

No functional change intended.


# 463a577b 20-Oct-2015 Eitan Adler <eadler@FreeBSD.org>

Fix a ton of speelling errors

arc lint is helpful

Reviewed By: allanjude, wblock, #manpages, chris@bsdjunk.com
Differential Revision: https://reviews.freebsd.org/D3337


# 90c72ba9 12-Jun-2013 Greg Lehey <grog@FreeBSD.org>

Handle some expression regressions.
Explicitly use GNU cpp for preprocessing.
Remove explicit debugging code.
Change some variable names to be less confusing.
Improve some comments.
Improve indentation.

PR: 162211
168785
MFC after: 2 weeks


# 34be3012 12-Dec-2012 Greg Lehey <grog@FreeBSD.org>

Use even more conventional conversion routines.

Reported by: peterj@


# d6a381f8 12-Dec-2012 Greg Lehey <grog@FreeBSD.org>

Reluctantly remove one of the most extraordinary numeric conversion
routines I have ever seen and replace with something far more boring.


# 415f0311 08-Nov-2011 Greg Lehey <grog@FreeBSD.org>

Tidy up command line processing:
- Add ? option to optstring.
- Sort options alphabetically.
- Vertical space.

Tidy up usage() function.

Bring man page in sync with source.

Ensure that debug code is only executed with the -d option.

Submitted by: Christiane Yeardley


# fcc2fa49 11-Jul-2011 Edwin Groothuis <edwin@FreeBSD.org>

Fix run-time breakage when encoutering invalid input-data.

PR: bin/157718


# 5a5bcf88 11-Jul-2011 Edwin Groothuis <edwin@FreeBSD.org>

Fix the interpreter for:

Jul/Sat+3 Every third saturday of July - Jul/Sat+3

which was able to be done via:

Jul/SatThird Every third saturday of July - Jul/SatThird

Add interpreters for:

SatFourth Every third saturday of each month - SatFourth
Sat+4 Every third saturday of each month - Sat+4
Sat Every saturday of each month - Sat

MFC after: 2 weeks


# 2aa24519 08-Feb-2011 Sergey A. Osokin <osa@FreeBSD.org>

Fix Paskha and Paskha-specific holidays.


# f6db4696 25-Dec-2010 Sergey A. Osokin <osa@FreeBSD.org>

Fix typo (Pashka -> Paskha).


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# b3f4d7e1 13-Sep-2010 Ed Maste <emaste@FreeBSD.org>

Remove extra ;


# c31776f0 30-Aug-2010 Edwin Groothuis <edwin@FreeBSD.org>

For calendars which don't match the solar-based Gregorian calendar,
be able to specify a year string in an entry.


# e86a8937 06-May-2010 Andrey A. Chernov <ache@FreeBSD.org>

While I am here, add more missing (unsigned char) casts to ctype() macros


# bb06482c 30-Mar-2010 Edwin Groothuis <edwin@FreeBSD.org>

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.


# 9d5d3712 29-Mar-2010 Dag-Erling Smørgrav <des@FreeBSD.org>

size_t is not equivalent to int on 64-bit platforms.

Pointy hat to: edwin@


# 2b84020d 29-Mar-2010 Edwin Groothuis <edwin@FreeBSD.org>

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