summaryrefslogtreecommitdiff
path: root/usr.bin/touch/touch.c
AgeCommit message (Expand)Author
2022-01-29touch(1): don't leak file descriptor if futimens(2) failsScott Soule Cheloha
2019-03-10Delete a useless call to setlocale(3): strptime(3) is only calledIngo Schwarze
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-06use tame "stdio rpath wpath cpath fattr". There is some timezoneTheo de Raadt
2015-03-17Eliminate use of TM_YEAR_BASE. OK guenther@ deraadt@ miod@Todd C. Miller
2015-03-15tzfile.h is an internal header that should never have been installed.Todd C. Miller
2011-08-31use the same format/text, as far as possible, for date strings;Jason McIntyre
2011-08-30Make the code match the manpage and POSIX spec when the year is specifiedPhilip Guenthe
2011-08-21With gettimeofday() removed from the top of main(), need to call time()Philip Guenthe
2011-08-20Add nanosecond precision and support for -d option (new in POSIX 2008)Philip Guenthe
2007-08-06the ellipsis is not an optional argument; while here, sync the usageIgor Sobrado
2007-06-18Fix typo introduced in seconds parsing. From Tim van der Molen.Todd C. Miller
2007-05-25Sanity check time spec and if no century is specified, just use theTodd C. Miller
2006-03-08even bettererHenning Brauer
2006-03-07KNF & cleanupHenning Brauer
2005-04-20spacingTheo de Raadt
2005-04-20Remove redundant rw() function, which is unsafe and, well, redundant.Otto Moerbeek
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
2003-01-10typo in comment; Jim GeovediHenning Brauer
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ...Todd C. Miller
2000-10-13Missed one TM_YEAR_BASE in previous commit; pointed out by peters@telia.netPaul Janzen
2000-09-20use TM_YEAR_BASE and set seconds to zero in obsolescent "compatibility" case;Paul Janzen
2000-09-20Y2K fix for obsolescent time format: found by Camiel Dobbelaar.Paul Janzen
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1996-06-26rcsidTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt