summaryrefslogtreecommitdiffstats
path: root/usr.bin/touch (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Delete a useless call to setlocale(3): strptime(3) is only calledschwarze2019-03-101-7/+4
| | | | | | | | | | | | | with %F and %T, neither of which is locale-dependent, and nothing else in the code depends on the locale either, since most of the parsing is done by hand and only supports numerical formats in the first place. While here, make usage() static and return from main rather than exit(3). Patch from Jan Stary <hans at stare dot cz>. tedu@ agrees.
* Change all tame callers to namechange to pledge(2).deraadt2015-10-091-3/+3
|
* use tame "stdio rpath wpath cpath fattr". There is some timezonederaadt2015-10-061-1/+4
| | | | | database stuff here which goes further than most programs, but the neccessary files are readable using "rpath".
* drop redundant .Ns and reduce quotingschwarze2015-09-251-4/+4
|
* ouch, sorry, fix previousschwarze2015-09-121-2/+3
|
* use .Cm rather than .Li for fixed string arguments, andschwarze2015-09-121-6/+9
| | | | don't manually add blank characters inside .Sm off
* Eliminate use of TM_YEAR_BASE. OK guenther@ deraadt@ miod@millert2015-03-171-4/+4
|
* tzfile.h is an internal header that should never have been installed.millert2015-03-151-2/+1
| | | | | | | | | 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@
* revert previous: guenther says it's wrong;jmc2014-06-031-5/+2
|
* no support for TZ;jmc2014-06-031-3/+6
|
* use Li for the T/Z specifiers;jmc2013-03-081-7/+7
|
* Mention that if you use a space as the separator in the argumentmillert2013-03-051-2/+4
| | | | | for the -d option you should quote the argument. Based on a diff from jmc@. OK jmc@
* after some thought, i think it unlikely that we will need to specifyjmc2011-09-161-3/+3
| | | | | | | | | | a revision number for ISO 8601; in addition, the revision number makes the text unwieldy when discussing the standard in a casual manner. therefore change the macro from -8601-4 to simply -8601, which will output "ISO 8601". i'll get kristaps or ingo to make the change upstream to mandoc. discussed with/ok millert
* use .St -iso8601-4;jmc2011-09-091-3/+5
|
* some additional information on the -d option, for clarification;jmc2011-09-081-3/+4
| | | | ok millert guenther
* we've already stated the format of the -d and -t arguments: no need tojmc2011-09-041-8/+4
| | | | | | repeat it; ok millert
* use the same format/text, as far as possible, for date strings;jmc2011-08-312-59/+51
| | | | help/ok guenther millert
* Make the code match the manpage and POSIX spec when the year is specifiedguenther2011-08-301-5/+10
| | | | | | but the century isn't: century is 1900 if year >= 69; else 2000 ok millert@
* remove redundant final paragraph of STANDARDS: it merely repeats what hasjmc2011-08-281-16/+2
| | | | | | | already been documented and, worse, is difficult to understand unless you know that it is tied to the previous paragraph; ok guenther
* With gettimeofday() removed from the top of main(), need to call time()guenther2011-08-211-3/+3
| | | | | | | for the defaulting of the year to work in the -t and arg1 forms that were broken by previous change ok millert@
* (slightly) saner SEE ALSO;jmc2011-08-201-2/+2
|
* -make .frac and .SS more consistent (may have to revisit this)jmc2011-08-201-7/+9
| | | | | | -STANDARDS tweak ok guenther
* tweak some text;jmc2011-08-201-6/+6
|
* prettify date strings;jmc2011-08-201-5/+9
|
* Add nanosecond precision and support for -d option (new in POSIX 2008)guenther2011-08-202-72/+130
| | | | ok millert@, manpage fixes jmc@
* add an EXIT STATUS section for /usr/bin;jmc2010-09-031-3/+3
|
* bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewjmc2009-02-081-3/+3
| | | | updates to follow;
* replace hardcoded exit values with .Ex macros;sobrado2009-01-041-5/+3
| | | | ok jmc@
* the ellipsis is not an optional argument; while here, sync the usagesobrado2007-08-062-5/+6
| | | | | | | | and synopsis of commands lots of good ideas by jmc@ ok jmc@
* Fix typo introduced in seconds parsing. From Tim van der Molen.millert2007-06-181-2/+2
|
* convert to new .Dd format;jmc2007-05-311-2/+2
|
* - use a consistent text for STANDARDSjmc2007-05-301-7/+7
| | | | - note which options are extensions to POSIX
* Sanity check time spec and if no century is specified, just use themillert2007-05-251-38/+58
| | | | current one.
* -r and -t take arguments; from Igor Sobradojmc2007-03-291-3/+3
|
* even bettererhenning2006-03-081-5/+5
| | | | From: Przemyslaw Nowaczyk <p_nowaczyk@o2.pl>
* KNF & cleanuphenning2006-03-071-31/+20
| | | | mostly From: Przemyslaw Nowaczyk <p_nowaczyk@o2.pl>
* spacingderaadt2005-04-201-5/+5
|
* Remove redundant rw() function, which is unsafe and, well, redundant.otto2005-04-202-65/+9
| | | | ok tedu@ deraadt@
* mostly ansi cleanup; pval okderaadt2003-06-101-20/+8
|
* - section reorderjmc2003-06-101-3/+3
| | | | | | | | | - COMPATIBILITY merge - macro cleanup - kill whitespace at EOL - new sentence, new line ssh pages ok markus@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-032-13/+5
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* typo in comment; Jim Geovedihenning2003-01-101-3/+3
|
* typo; jmchenning2003-01-101-2/+2
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-7/+7
|
* Missed one TM_YEAR_BASE in previous commit; pointed out by peters@telia.netpjanzen2000-10-131-5/+4
| | | | in PR 1445.
* use TM_YEAR_BASE and set seconds to zero in obsolescent "compatibility" case;pjanzen2000-09-201-8/+11
| | | | from NetBSD.
* fix pasto and comma splicepjanzen2000-09-201-3/+3
|
* Y2K fix for obsolescent time format: found by Camiel Dobbelaar.pjanzen2000-09-201-6/+10
|
* Various cleanups and standardizations.aaron2000-03-111-9/+9
|
* Finish standardizing options list introduction.aaron2000-03-051-2/+2
|