#
1.27 |
|
08-Mar-2023 |
guenther |
Delete obsolete /* ARGSUSED */ lint comments.
ok miod@ millert@
|
Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
|
#
1.26 |
|
20-Jul-2017 |
okan |
Add missing <time.h> header.
ok joris@
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
|
#
1.25 |
|
05-Nov-2015 |
nicm |
Remove xfree(), like already done for RCS. From Michael W Bombardieri, ok mmcc
|
Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.24 |
|
03-Dec-2013 |
deraadt |
do not need timeb.h
|
Revision tags: OPENBSD_5_4_BASE
|
#
1.23 |
|
19-Apr-2013 |
deraadt |
Constrain the 2038 check to only when sizeof(time_t) == sizeof(int). Adding more powerful checking is too difficult. We'll fix this problem by moving to 64-bit time_t.. and once we do, we don't want this code to falsely trigger. ok millert
|
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
|
#
1.22 |
|
31-Jul-2010 |
ray |
Checking for -1 as an overflow value is pretty absurd. Returning the unix epoch is equally absurd. Just return Start for now. We may add overflow checks in the future.
OK xsa nicm
|
#
1.21 |
|
29-Jul-2010 |
ray |
Replace abort(), fatal(), and errx() with return -1, since date_parse returns -1 on error.
OK nicm
|
#
1.20 |
|
23-Jul-2010 |
ray |
Reduce variable/function name and whitespace differences between cvs/rcs.
OK xsa zinovik
|
#
1.19 |
|
23-Jul-2010 |
ray |
Clean up struct tm handling. Instead of calling gmtime/localtime and making copies (among other weird dances), use reentrant versions.
Not being able to tell the time is a fatal error, so die if that happens.
Diff originally from nicm.
OK nicm xsa
|
Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
|
#
1.18 |
|
16-Feb-2008 |
cnst |
* yyInput doesn't seem to contain anything meaningful at the time when yyerror() is called, so there's no point in printing it * unbreak `env CFLAGS='-DTEST' make date`
ok joris@
|
#
1.17 |
|
06-Oct-2007 |
chl |
replace abort() by return (-1)
from ray@ suggestion "looks good" ray@
|
Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE
|
#
1.16 |
|
22-Feb-2007 |
otto |
general includes cleanup sweep. ok joris@ niallo@
|
#
1.15 |
|
20-Jan-2007 |
ray |
Prevent negative array index accesses when strlen(buff) == 0.
OK joris@
|
#
1.14 |
|
09-Nov-2006 |
xsa |
sync with usr.bin/rcs version.
|
Revision tags: OPENBSD_4_0_BASE
|
#
1.13 |
|
03-May-2006 |
ray |
Use xasprintf and xfree.
``But i thought it already went in...'' xsa@
|
#
1.12 |
|
29-Apr-2006 |
ray |
Remove dead code.
OK niallo@
|
Revision tags: OPENBSD_3_9_BASE
|
#
1.11 |
|
02-Jan-2006 |
xsa |
#include's cleanup; ok joris@ niallo@.
|
#
1.10 |
|
07-Oct-2005 |
reyk |
knf and spacing, ok joris@
|
#
1.9 |
|
25-Sep-2005 |
otto |
Produce more clear error message parsing date strings. ok joris@
|
Revision tags: OPENBSD_3_8_BASE
|
#
1.8 |
|
20-May-2005 |
jfb |
* missing prototype for lookup() * remove crufty VMS-specific code * sprinkle some magic knf dust
|
#
1.7 |
|
19-May-2005 |
jfb |
use the date parsing code from date.y and fix timestamps on newly created files so they match the values found in the corresponding entries, otherwise all files appear as modified
ok joris
|
#
1.6 |
|
18-Apr-2005 |
joris |
missing prototype for get_date();
from deraadt@
|
#
1.5 |
|
30-Mar-2005 |
joris |
allow this to be compiled on its own for testing.
ok jfb@
|
#
1.4 |
|
28-Mar-2005 |
jfb |
alignment
|
#
1.3 |
|
24-Mar-2005 |
jfb |
more cleanup and knf
|
#
1.2 |
|
24-Mar-2005 |
jfb |
add missing prototypes for standard yacc functions and make yyerror() accept a format with variable arguments
|
#
1.1 |
|
23-Mar-2005 |
jfb |
public domain yacc date parser with a first round of knf
|
Revision tags: OPENBSD_6_2_BASE
|
#
1.26 |
|
20-Jul-2017 |
okan |
Add missing <time.h> header.
ok joris@
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
|
#
1.25 |
|
05-Nov-2015 |
nicm |
Remove xfree(), like already done for RCS. From Michael W Bombardieri, ok mmcc
|
Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.24 |
|
03-Dec-2013 |
deraadt |
do not need timeb.h
|
Revision tags: OPENBSD_5_4_BASE
|
#
1.23 |
|
19-Apr-2013 |
deraadt |
Constrain the 2038 check to only when sizeof(time_t) == sizeof(int). Adding more powerful checking is too difficult. We'll fix this problem by moving to 64-bit time_t.. and once we do, we don't want this code to falsely trigger. ok millert
|
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
|
#
1.22 |
|
31-Jul-2010 |
ray |
Checking for -1 as an overflow value is pretty absurd. Returning the unix epoch is equally absurd. Just return Start for now. We may add overflow checks in the future.
OK xsa nicm
|
#
1.21 |
|
29-Jul-2010 |
ray |
Replace abort(), fatal(), and errx() with return -1, since date_parse returns -1 on error.
OK nicm
|
#
1.20 |
|
23-Jul-2010 |
ray |
Reduce variable/function name and whitespace differences between cvs/rcs.
OK xsa zinovik
|
#
1.19 |
|
23-Jul-2010 |
ray |
Clean up struct tm handling. Instead of calling gmtime/localtime and making copies (among other weird dances), use reentrant versions.
Not being able to tell the time is a fatal error, so die if that happens.
Diff originally from nicm.
OK nicm xsa
|
Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
|
#
1.18 |
|
16-Feb-2008 |
cnst |
* yyInput doesn't seem to contain anything meaningful at the time when yyerror() is called, so there's no point in printing it * unbreak `env CFLAGS='-DTEST' make date`
ok joris@
|
#
1.17 |
|
06-Oct-2007 |
chl |
replace abort() by return (-1)
from ray@ suggestion "looks good" ray@
|
Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE
|
#
1.16 |
|
22-Feb-2007 |
otto |
general includes cleanup sweep. ok joris@ niallo@
|
#
1.15 |
|
20-Jan-2007 |
ray |
Prevent negative array index accesses when strlen(buff) == 0.
OK joris@
|
#
1.14 |
|
09-Nov-2006 |
xsa |
sync with usr.bin/rcs version.
|
Revision tags: OPENBSD_4_0_BASE
|
#
1.13 |
|
03-May-2006 |
ray |
Use xasprintf and xfree.
``But i thought it already went in...'' xsa@
|
#
1.12 |
|
29-Apr-2006 |
ray |
Remove dead code.
OK niallo@
|
Revision tags: OPENBSD_3_9_BASE
|
#
1.11 |
|
02-Jan-2006 |
xsa |
#include's cleanup; ok joris@ niallo@.
|
#
1.10 |
|
07-Oct-2005 |
reyk |
knf and spacing, ok joris@
|
#
1.9 |
|
25-Sep-2005 |
otto |
Produce more clear error message parsing date strings. ok joris@
|
Revision tags: OPENBSD_3_8_BASE
|
#
1.8 |
|
20-May-2005 |
jfb |
* missing prototype for lookup() * remove crufty VMS-specific code * sprinkle some magic knf dust
|
#
1.7 |
|
19-May-2005 |
jfb |
use the date parsing code from date.y and fix timestamps on newly created files so they match the values found in the corresponding entries, otherwise all files appear as modified
ok joris
|
#
1.6 |
|
18-Apr-2005 |
joris |
missing prototype for get_date();
from deraadt@
|
#
1.5 |
|
30-Mar-2005 |
joris |
allow this to be compiled on its own for testing.
ok jfb@
|
#
1.4 |
|
28-Mar-2005 |
jfb |
alignment
|
#
1.3 |
|
24-Mar-2005 |
jfb |
more cleanup and knf
|
#
1.2 |
|
24-Mar-2005 |
jfb |
add missing prototypes for standard yacc functions and make yyerror() accept a format with variable arguments
|
#
1.1 |
|
23-Mar-2005 |
jfb |
public domain yacc date parser with a first round of knf
|