Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Change all our own code to use st_*tim instead of st_*timespec. | ed | 2010-03-28 | 1 | -6/+6 |
| | | | | Also remove some local patches to diff(1) which are now unneeded. | ||||
* | - If lstat()/stat() fails with an error other than ENOENT, don't ignore | jh | 2009-10-16 | 1 | -4/+11 |
| | | | | | | | | | | | | | | | the error and assume that the file doesn't exist. Touch could return success with -c option even if the file existed and time was not set. - If the first utimes_f() call fails with -A option, give up and don't continue trying to set times to current time. [1] - Set exit status to 1 when setting of timestamps fails for a directory or symbolic link even though lstat()/stat() would succeed. - Don't print bogus error message when rw() succeeds. PR: bin/112213 Submitted by: jilles [1] Reviewed by: jilles Approved by: trasz (mentor) | ||||
* | Update to match revision 1.23 of touch.c. | grog | 2007-04-10 | 1 | -36/+18 |
| | | | | Clarify some details. | ||||
* | Usage: print base name of program. | grog | 2007-04-10 | 1 | -20/+47 |
| | | | | | | | -A flag: respect the -a and -m flags. imply the -c flag. Requested in principle by: brian | ||||
* | Add -A flag to adjust existing time stamps. | grog | 2007-04-09 | 2 | -23/+130 |
| | | | | | | Print name by which program was started in usage() message. MFC after: 2 weeks | ||||
* | Don't set time to current, if set to specific time fails | ache | 2006-01-31 | 1 | -0/+1 |
| | | | | PR: 92577 | ||||
* | Expand *n't contractions. | ru | 2005-02-13 | 1 | -1/+1 |
| | |||||
* | Sort sections. | ru | 2005-01-18 | 1 | -7/+7 |
| | |||||
* | Added the EXIT STATUS section where appropriate. | ru | 2005-01-17 | 1 | -1/+1 |
| | |||||
* | ANSIify function definitions. | dwmalone | 2002-09-04 | 1 | -18/+6 |
| | | | | | | | | | Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5 | ||||
* | Replace various spelling with FALLTHROUGH which is lint()able | charnier | 2002-08-25 | 1 | -1/+1 |
| | |||||
* | Remove local prototypes for main(). | jmallett | 2002-08-19 | 1 | -1/+0 |
| | |||||
* | Handle directories correctly. | eric | 2002-07-23 | 1 | -3/+6 |
| | | | | | PR: 40801 MFC after: 5 days | ||||
* | remove __P | imp | 2002-03-22 | 1 | -6/+6 |
| | |||||
* | WARNS=2 is going to be the default, so don't specify it. Use __FBSDID(). | markm | 2001-12-11 | 2 | -6/+5 |
| | |||||
* | Clarify that -h implies -c. | obrien | 2001-09-24 | 1 | -0/+5 |
| | |||||
* | blah, remove debugging code that crept in with last commit. | obrien | 2001-09-23 | 1 | -1/+0 |
| | |||||
* | Add the 'h' flag to operate on symlinks rather than what they point to. | obrien | 2001-09-22 | 2 | -6/+19 |
| | |||||
* | mdoc(7) police: utilize the new .Ex macro. | ru | 2001-08-15 | 1 | -3/+1 |
| | |||||
* | Fix some trivial warnings and clamp down with WARNS=2 | kris | 2001-05-26 | 2 | -2/+9 |
| | | | | MFC after: 1 week | ||||
* | mdoc(7) police: use the new features of the Nm macro. | ru | 2000-11-20 | 1 | -1/+1 |
| | |||||
* | Add DIAGNOSTICS section name | charnier | 2000-03-26 | 1 | -1/+1 |
| | |||||
* | $Id$ -> $FreeBSD$ | peter | 1999-08-28 | 1 | -1/+1 |
| | |||||
* | Add $Id$, to make it simpler for members of the translation teams to | nik | 1999-07-12 | 1 | -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 | ||||
* | Clean up some ambiguous nested if/elses. | billf | 1999-07-04 | 1 | -1/+2 |
| | |||||
* | Brucify. | des | 1999-05-12 | 1 | -2/+1 |
| | |||||
* | Sync usage() with man page. | des | 1999-05-11 | 1 | -2/+2 |
| | | | | | PR: 11539 Submitted by: Ruslan Ermilov <ru@ucb.crimea.ua> | ||||
* | Merge from 2_2 man page change. | danny | 1999-01-05 | 2 | -2/+2 |
| | |||||
* | PR: 9323 | danny | 1999-01-05 | 1 | -1/+4 |
| | | | | | | Submitted by: ishisone@sra.co.jp Make touch handle years 2000-2038 in the obsoleted format, rather than 1902-1969 as was previously the case with two digit year spec. | ||||
* | Don't assume that time_t is long. | bde | 1998-06-29 | 1 | -2/+6 |
| | |||||
* | Cosmetic. | charnier | 1997-08-18 | 1 | -12/+12 |
| | |||||
* | compare return value from getopt against -1 rather than EOF, per the final | imp | 1997-03-29 | 1 | -1/+1 |
| | | | | posix standard on the topic. | ||||
* | Don't use __dead or __pure in user code. They were obfuscations | bde | 1996-09-14 | 1 | -1/+1 |
| | | | | | | for gcc >= 2.5 and no-ops for gcc >= 2.6. Converted to use __dead2 or __pure2 where it wasn't already done, except in math.h where use of __pure was mostly wrong. | ||||
* | YY --> CC | adam | 1996-09-10 | 1 | -2/+2 |
| | |||||
* | PR # bin/274 | joerg | 1995-07-08 | 1 | -1/+1 |
| | | | | | | | | | | | | > The command: > > touch -t 199504011200 testfile > > gives the error message: > > touch: out of range or illegal time specification: [[CC]YY]MMDDhhmm[.SS] Submitted by: mpp@legarto.minn.net (Mike Pritchard) | ||||
* | Remove trailing whitespace. | rgrimes | 1995-05-30 | 1 | -1/+1 |
| | |||||
* | BSD 4.4 Lite Usr.bin Sources | rgrimes | 1994-05-27 | 3 | -0/+514 |