OpenBSD CVS

CVS log for src/usr.bin/at/parsetime.c


[BACK] Up to [local] / src / usr.bin / at

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.27 / (download) - annotate - [select for diffs], Sat Feb 16 15:23:33 2019 UTC (5 years, 3 months ago) by naddy
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, 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, HEAD
Changes since 1.26: +3 -2 lines
Diff to previous 1.26 (colored)

When specifying the time in the form HHMM or HH:MM, if that time
is already past, the next day is assumed.  Handle the case where
we're still in the same hour but the minutes are past.

ok deraadt@ millert@

Revision 1.26 / (download) - annotate - [select for diffs], Wed Nov 11 17:42:51 2015 UTC (8 years, 6 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, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.25: +10 -12 lines
Diff to previous 1.25 (colored)

Use warn/warnx here too.

Revision 1.25 / (download) - annotate - [select for diffs], Wed Nov 11 17:40:31 2015 UTC (8 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.24: +1 -5 lines
Diff to previous 1.24 (colored)

Remove bogus DST code.  mktime() handles DST automatically when
tm_isdst is set to -1.

Revision 1.24 / (download) - annotate - [select for diffs], Fri Nov 6 23:47:42 2015 UTC (8 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.23: +8 -8 lines
Diff to previous 1.23 (colored)

Use __progname instead of the homegrown ProgramName.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Aug 20 22:32:41 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

Do not cast result of malloc/calloc/realloc* if stdlib.h is in scope
ok krw millert

Revision 1.22 / (download) - annotate - [select for diffs], Tue Mar 17 19:31:30 2015 UTC (9 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored)

Eliminate use of TM_YEAR_BASE.  OK guenther@ deraadt@ miod@

Revision 1.21 / (download) - annotate - [select for diffs], Sun Mar 15 00:41:27 2015 UTC (9 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.20: +1 -2 lines
Diff to previous 1.20 (colored)

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 1.20 / (download) - annotate - [select for diffs], Mon Jan 13 23:18:57 2014 UTC (10 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.19: +44 -19 lines
Diff to previous 1.19 (colored)

Add the "next" keyword as an alias for "+ 1" for relative times.
Also support "months" and "years" keywords when specified as relative
time units.  All as per POSIX.  Man page changes OK jmc@ sobrado@

Revision 1.19 / (download) - annotate - [select for diffs], Mon Nov 25 18:02:50 2013 UTC (10 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.18: +6 -6 lines
Diff to previous 1.18 (colored)

variety of unsigned char casts (or conversions) for ctype
ok krw

Revision 1.18 / (download) - annotate - [select for diffs], Fri Jul 2 23:40:09 2010 UTC (13 years, 10 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

'wether' -> 'whether' typo in license text.

ok deraadt@

Revision 1.17 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:35 2009 UTC (14 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.16: +1 -5 lines
Diff to previous 1.16 (colored)

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable).  these days, people use source.  these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

Revision 1.16 / (download) - annotate - [select for diffs], Wed May 23 19:50:28 2007 UTC (17 years ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

Sanity check the time argument specified by the -t argument.  Some
checks adapted from date(1).  Now prevents scheduling jobs in the
past just like the standard (ie: not -n) at(1) date parsing.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Apr 26 03:01:48 2006 UTC (18 years ago) by cloder
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.14: +9 -3 lines
Diff to previous 1.14 (colored)

Cleanup, remove an unused var, use an int to store argc instead of a char,
makes lint a bit happier. OK deraadt

Revision 1.14 / (download) - annotate - [select for diffs], Thu Jun 17 22:09:11 2004 UTC (19 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.13: +5 -5 lines
Diff to previous 1.13 (colored)

Remove trailing whitespace and, for printf, uid/gid are unsigned

Revision 1.13 / (download) - annotate - [select for diffs], Thu Feb 20 20:38:08 2003 UTC (21 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.12: +76 -46 lines
Diff to previous 1.12 (colored)

Sync with ISC cron-current + my at(1) integration.
The at(1) code is now more tightly integrated into the cron codebase.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Jun 14 21:35:00 2002 UTC (21 years, 11 months ago) by todd
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

spelling; from Brian Poole <raj@cerias.purdue.edu>

Revision 1.11 / (download) - annotate - [select for diffs], Tue May 14 18:05:39 2002 UTC (22 years ago) by millert
Branch: MAIN
Changes since 1.10: +18 -29 lines
Diff to previous 1.10 (colored)

Major changes:

Job names are now "runtime.queue" where runtime is when the job will run
in Unix time format.  This is what SysV at does and allows us to nuke
the .SEQ file.

Historic BSD options for atq and atrm are now implemented;
atq and atrm get their own man pages.

At no longer does anything with the -v flag.  We print the execution
time when jobs are submitted so there is no need.

Most *scanf() usage is gone (one remains in atrun).

Better sanity checks in atrun.

Random style/cleanup.

With these changes we have the best of both worlds; POSIX compliance with
the traditional BSD features.

Revision 1.10 / (download) - annotate - [select for diffs], Sat May 11 23:16:44 2002 UTC (22 years ago) by millert
Branch: MAIN
Changes since 1.9: +14 -28 lines
Diff to previous 1.9 (colored)

Pass -Wall and use ANSI function headers.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jan 5 08:06:25 2000 UTC (24 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.8: +19 -17 lines
Diff to previous 1.8 (colored)

Y2K fix.  at(1) would die with 'garbled time' when assign_date() was passed
a year > 99.  This change fixes the conversion of 2-digit years into
tm_year format.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Mar 21 04:04:42 1999 UTC (25 years, 2 months ago) by alex
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.7: +16 -5 lines
Diff to previous 1.7 (colored)

PR 778: Handle 2-digit year values post-Y2K.  Improvements to PR 778
provided by pjanzen.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jul 10 07:07:04 1998 UTC (25 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.6: +14 -2 lines
Diff to previous 1.6 (colored)

long month names; archie@whistle.com

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jul 9 20:40:59 1998 UTC (25 years, 10 months ago) by mickey
Branch: MAIN
Changes since 1.5: +4 -3 lines
Diff to previous 1.5 (colored)

user err/warn; some -Wall

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jun 26 03:20:11 1998 UTC (25 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.4: +9 -3 lines
Diff to previous 1.4 (colored)

make 'now' work as a timespec

Revision 1.4 / (download) - annotate - [select for diffs], Sat Mar 1 23:40:10 1997 UTC (27 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2, OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.3: +423 -365 lines
Diff to previous 1.3 (colored)

Merge in changes from at 2.9

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jun 26 05:31:29 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

rcsid

Revision 1.2 / (download) - annotate - [select for diffs], Tue Jan 2 11:53:58 1996 UTC (28 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +5 -8 lines
Diff to previous 1.1 (colored)

got am/pm reversed when hour is 12; from Mark_Weaver@brown.edu; netbsd pr#1743

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:44:54 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:44:54 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

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.