aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/touch/touch.1
Commit message (Collapse)AuthorAgeFilesLines
* touch.1: Update to conform to POSIX 2004Conrad Meyer2018-06-011-20/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | POSIX borrowed the "double leap second" bug from C89. Double leap seconds can never happen. This mistake was present in at least POSIX 1997 and fixed by POSIX 2004. I can't find a copy of 2001 online to determine if the bug was present in that revision. While here, remove duplicate language between -d and -t. A few other minor enhancements and an igor (lint) bugfix. Further reading: 2018 POSIX (documents -d): http://pubs.opengroup.org/onlinepubs/9699919799/utilities/touch.html 2004 POSIX (documents SS from 0-60): http://pubs.opengroup.org/onlinepubs/009695399/utilities/touch.html 1997 POSIX/SUSv2 (historical interest, 0-61): http://pubs.opengroup.org/onlinepubs/007908799/xcu/touch.html More on this subject (start at "Unix system time and the POSIX standard") https://www.ucolick.org/~sla/leapsecs/onlinebib.html And: https://marc.info/?l=openbsd-tech&m=92682843416159&w=2 Reported by: Vishal Sahu <vsahu AT isilon.com> Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=334501
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* touch(1): Xref utimensat(2) instead of utimes(2).Jilles Tjoelker2015-03-081-2/+2
| | | | Notes: svn path=/head/; revision=279795
* touch: Add the -d option from POSIX.1-2008.Jilles Tjoelker2012-06-101-2/+40
| | | | | | | | | | | | | This is much like -t but with a different format which is ISO8601-like and allows fractions of a second. The precision is limited to microseconds because of utimes() and friends, even though stat() returns nanoseconds. MFC after: 10 days Notes: svn path=/head/; revision=236852
* Remove trailing whitespace per mdoc lint warningEitan Adler2012-03-291-6/+6
| | | | | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days Notes: svn path=/head/; revision=233648
* Remove useless and potentially dangerous rw() function which tries toJaakko Heinonen2012-02-041-5/+2
| | | | | | | | | | | | | update access and modification times by reading and writing the file. chmod(2) in rw() doesn't help because utimes(2) allow owner and the super-user to change times. Using just utimes(2) should be sufficient. The -f option becomes no-op. Reviewed by: jilles Notes: svn path=/head/; revision=230979
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-12-111-4/+0
| | | | | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson Notes: svn path=/head/; revision=216370
* Update to match revision 1.23 of touch.c.Greg Lehey2007-04-101-36/+18
| | | | | | | Clarify some details. Notes: svn path=/head/; revision=168572
* Add -A flag to adjust existing time stamps.Greg Lehey2007-04-091-13/+78
| | | | | | | | | Print name by which program was started in usage() message. MFC after: 2 weeks Notes: svn path=/head/; revision=168525
* Expand *n't contractions.Ruslan Ermilov2005-02-131-1/+1
| | | | Notes: svn path=/head/; revision=141846
* Sort sections.Ruslan Ermilov2005-01-181-7/+7
| | | | Notes: svn path=/head/; revision=140420
* Added the EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-171-1/+1
| | | | Notes: svn path=/head/; revision=140368
* Clarify that -h implies -c.David E. O'Brien2001-09-241-0/+5
| | | | Notes: svn path=/head/; revision=83896
* Add the 'h' flag to operate on symlinks rather than what they point to.David E. O'Brien2001-09-221-1/+4
| | | | Notes: svn path=/head/; revision=83826
* mdoc(7) police: utilize the new .Ex macro.Ruslan Ermilov2001-08-151-3/+1
| | | | Notes: svn path=/head/; revision=81687
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-1/+1
| | | | Notes: svn path=/head/; revision=68963
* Add DIAGNOSTICS section namePhilippe Charnier2000-03-261-1/+1
| | | | Notes: svn path=/head/; revision=58628
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48792
* Merge from 2_2 man page change.Daniel O'Callaghan1999-01-051-1/+1
| | | | Notes: svn path=/head/; revision=42310
* Cosmetic.Philippe Charnier1997-08-181-12/+12
| | | | Notes: svn path=/head/; revision=28367
* YY --> CCAdam David1996-09-101-2/+2
| | | | Notes: svn path=/head/; revision=18229
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-271-0/+167
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590