Commit Graph

108 Commits

Author SHA1 Message Date
bjh21 a17ce6ad1e When setting the date, ask mktime() to work out whether we're in DST or not.
Seems to fix PR bin/8750.
2000-10-08 10:30:44 +00:00
simonb 51ee9dc68d Don't declare 'extern opt*' getopt variables. 2000-04-14 05:52:56 +00:00
kleink c5d7701cd4 Make this slightly more portable by using putenv(). 2000-01-04 14:15:09 +00:00
hubertf 6f51bb4732 make example cut&paste-ready 1999-12-29 04:11:30 +00:00
ross 6fe4eb2696 Work around a spurious warning. 1999-03-09 03:02:40 +00:00
kristerw c6d1478acf Fixed off-by-one error where HOSTNAME+1 characters was copied into
tsp_name that has size HOSTNAME.
1998-12-19 22:44:19 +00:00
christos ab0eebb3f6 cast to unsigned char for is*() 1998-11-04 12:51:00 +00:00
christos 6e381b4c96 #ifdef BSD4_4 for sin_len 1998-11-04 12:50:17 +00:00
mycroft d32f290dae GMT -> UTC 1998-10-24 03:45:51 +00:00
wsanchez 1b845eea1b For the case where mktime() fails exit with "illegal time" error rather than
"illegal time format", which is misleading.
1998-10-14 00:49:44 +00:00
mycroft ee9e50eacb Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
mycroft 9dc385beb1 Delint. 1998-07-28 05:31:22 +00:00
mycroft ce7d757530 Delint. 1998-07-28 03:47:14 +00:00
mycroft dbfa4f81b0 __AUDIT__ cleanup. 1998-07-27 16:43:25 +00:00
mrg 2beab49a06 - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:45:41 +00:00
lukem a7881b9570 remove unnecessary comment 1998-06-08 09:07:13 +00:00
kleink 314d411687 Need <time.h> for time(), strftime(), localtime() and mktime() prototypes. 1998-04-01 13:54:44 +00:00
mycroft 65139bd9be Slight code rearrangement. 1998-01-21 00:07:44 +00:00
mycroft 76b3c10513 Don't validate the mmddhhmm.ss values here. mktime(3) does it. 1998-01-20 22:06:02 +00:00
mycroft c7273dc993 Make the documented parsing order for the date match reality. 1998-01-20 21:47:43 +00:00
mycroft 0166097d26 Fix documentation of `-r'. 1998-01-20 21:34:53 +00:00
mycroft f9a6471ec7 Allow a century to be specified.
Cut and paste some text from touch(1) about date parsing.
1998-01-20 21:16:38 +00:00
mycroft eeec814a41 Use TM_YEAR_BASE to adjust tm_year, not 1900. 1998-01-20 20:53:32 +00:00
lukem c3c0dec69f use IP_PORTRANGE_LOW sockopt rather than home-grown code 1998-01-10 00:27:34 +00:00
cgd bad15fd37f lint 1997-11-05 21:17:14 +00:00
kleink 64c0cead8c s/UCT/UTC/ 1997-11-03 18:42:49 +00:00
enami c3872193cf Fix .Nm usage. 1997-10-20 08:50:59 +00:00
christos 23edbe3557 Remove WARNS=1 from all the subdirectory Makefiles, and add it to Makefile.inc
now that all /bin has been cleaned.
1997-07-20 22:36:20 +00:00
thorpej ed53b9b6c3 Build with WARNS 1997-07-20 05:18:14 +00:00
thorpej a71a8b8761 __RCSID()/__COPYRIGHT()/prototype police. 1997-07-20 05:17:33 +00:00
mikel bd361a3aba fix broken timed(8) xrefs, noted by David Brownlee. 1997-05-11 08:34:37 +00:00
cgd 4274523efe pull in util.h rather than prototypeing logtwmp() locally. 1997-03-26 20:28:11 +00:00
perry 15d0dbe011 Add documentation of the fact that date does indeed understand years
after 2000 (years 00 through 68 are interpreted as meaning 2000-2068;
this should be updated sometime before 2068 :-)
1997-03-11 23:43:41 +00:00
perry b195ec73d5 nuke the BUGS section -- it was vax specific 1997-01-25 00:17:00 +00:00
perry 61974fdce1 remove obsolete -d and -t options -- kernel timezone handling is long gone 1997-01-24 18:17:17 +00:00
tls 3811362c9a kill use of register 1997-01-09 16:31:05 +00:00
phil 3e4d50990e a a => a (close pr 2204). 1996-03-12 04:32:37 +00:00
jtc 9a3ca97f12 ENVIRONMENTAL -> ENVIRONMENT 1995-12-05 02:41:35 +00:00
jtc 5fc5415e25 Sync with 4.4lite2 1995-09-07 06:12:53 +00:00
jtc 23e6aab105 Use "utility" instead of "command". Modern definitions of these terms
are distinct (See POSIX.2 glossary).

A utility is a executable, script or shell builtin; while a command
can be any of those things plus lists, pipelines, compound commands
(if, for, while) and shell function definitions.
1995-07-25 19:36:36 +00:00
mycroft c7ad9c47f1 Fill in sin_len. 1995-06-03 22:24:45 +00:00
cgd d7290b7687 clean up RCS Ids slightly, etc. 1995-04-23 10:07:18 +00:00
cgd 49f0ad8601 convert to new RCS id conventions. 1995-03-21 09:01:59 +00:00
mycroft 667b5ea158 Merge 4.4-Lite version. 1994-09-22 09:24:46 +00:00
mycroft e40b06360c Import original 4.4-Lite version. 1994-09-22 03:04:15 +00:00
deraadt 2e219d989f typo fix 1994-02-03 12:50:21 +00:00
jtc 18356811e6 Minor tweaks. 1993-12-31 19:25:23 +00:00
deraadt df1ab8279c should bzero automatic sockaddr's before use 1993-12-05 13:26:52 +00:00
jtc a5960e1999 Print correct default output format.
Note that date (with a suitable strftime()), is 1003.2 compliant.
1993-08-19 17:02:40 +00:00
jtc 7bab32a746 1003.2: 4.15.4: The output always shall be terminated by a newline character. 1993-08-16 23:08:51 +00:00
mycroft 56dfa729f2 Minor tweak for cross-compiling. 1993-08-09 04:42:36 +00:00
mycroft a579b792ce Add RCS identifiers. 1993-08-01 18:59:54 +00:00
mycroft b1bd4afedc Add RCS indentifiers. 1993-08-01 07:42:49 +00:00
mycroft 1b9ce7ae24 Add RCS identifiers. 1993-08-01 05:47:31 +00:00
deraadt 6012a4f69e date comamnd ignored seconds value. patch from <mhw@cs.brown.edu> 1993-06-21 05:18:44 +00:00
cgd 06be60083d changed "Id" to "Header" for rcsids 1993-03-23 00:22:59 +00:00
cgd 346aa5dd48 added rcs ids to all files 1993-03-22 08:04:00 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00