summaryrefslogtreecommitdiff
path: root/src/touch.c
AgeCommit message (Collapse)Author
1999-04-26(open_maybe_create): Don't pass 0666 to open; it's not needed and isn'tJim Meyering
guaranteed to be portable.
1999-04-02(open_maybe_create): New function.Jim Meyering
(touch): Rewrite not to use `creat' and to eliminate a race condition that could make touch truncate a nonempty file. Report and suggestions from Andrew Tridgell.
1999-04-01(touch): Qualify a char* with the `const' keyword.Jim Meyering
1999-03-31Don't include closeout.h or version-etc.h explicitly. Now, they're included ↵Jim Meyering
via sys2.h.
1999-03-26No longer include long-options.h.Jim Meyering
Include version-etc.h instead. (PROGRAM_NAME, AUTHORS): Define. [long_options]: Add entries for --help and --version. Remove parse_long_options call. (main) [getopt switch]: Add a case for each of --help and --version.
1999-03-04Include long-options.hJim Meyering
[long_options]: Remove the "help" and "version" entries. (main): Use parse_long_options, including author name(s). Remove the show_version and show_help blocks.
1999-01-16(usage): Remove `static'.Jim Meyering
Use function-style XARGMATCH.
1999-01-04(main): remove unused `i'Jim Meyering
1999-01-02Adapt to use new interface to XARGMATCH.Jim Meyering
1998-12-31(main): Use XARGCASEMATCH in place of argmatch & co.Jim Meyering
1998-09-19update bug-reporting addressJim Meyering
1998-09-07Include posixtm.h.Jim Meyering
(usage): Correct the description of the format of the date string argument to -t option. (main): Update to use rewritten posixtime function. Reported by Andries Brouwer.
1998-09-06remove --help-style comment near topJim Meyering
1998-08-30Don't assume ASCII in getopt arg handling.Jim Meyering
1998-08-02(touch): Add comment.Jim Meyering
1998-07-25(utime_now): Moved into m4/utimes.m4.Jim Meyering
(touch) [!HAVE_UTIME_NULL]: Remove #ifdef and use of utime_now in if-block.
1998-05-09Include safe-read.h.Jim Meyering
Don't declare safe_read.
1998-04-14Use STREQ in string equality tests, not strcmp.Jim Meyering
1998-03-15Use #if, not #ifdef with HAVE_ macros.Jim Meyering
Use #if !, not #ifndef with HAVE_ macros.
1998-03-14s/get-date.h/getdate.h/Jim Meyering
1998-02-20Include get-date.h.Jim Meyering
Remove get_date decl.
1998-01-04(main, usage): Check for write error to stdout before exiting.Jim Meyering
Include "closeout.h".
1997-10-07update bug-reporting addressJim Meyering
1997-02-09update copyrights for 1997Jim Meyering
1997-02-01bracket bug address with <> and append a periodJim Meyering
1997-02-01Compare getopt_long return value against -1, not EOF. Use NULL, not '(int ↵Jim Meyering
*) 0' as last parameter in getopt_long call.
1996-11-18Remove unused declaration of mktime. From Tony Leneis.Jim Meyering
1996-11-03change bug-reporting addressJim Meyering
1996-11-02change bug-reporting addressJim Meyering
1996-10-05(main): update --version output to conform to coding standardJim Meyering
1996-10-04(main): update --version output to conform to coding standardJim Meyering
1996-08-31(utime_now): Protoize.Jim Meyering
Reported by David S. Miller (davem@caip.rutgers.edu).
1996-08-31(usage): remove spurious trailing \n in puts.Jim Meyering
1996-08-29(usage): Tell where to report bugs.Jim Meyering
1996-04-24update Copyright years for 1996Jim Meyering
1996-03-24Update FSF's address.Jim Meyering
1996-03-21(main): Declare to be of type int, not void.Jim Meyering
1996-03-16Don't include version.h.Jim Meyering
(main): Use PACKAGE_VERSION instead of version_string.
1996-03-12(main): Initialize for internationalized message support: call setlocale,Jim Meyering
bindtextdomain, and textdomain.
1996-03-06(usage): Reorder --time and --help so --help is the latter (justJim Meyering
before --version) to be consistent with other usage functions.
1995-12-22Include argmatch.h.Jim Meyering
1995-11-29Mark all translatable strings using po-mode.el.Jim Meyering
1995-11-27s/non-zero/nonzero/gJim Meyering
1995-11-10(main): Move to the end.Jim Meyering
Remove fwd dcls.
1995-11-09Protoize.Jim Meyering
1995-10-29Rename --file to --reference.Jim Meyering
Leave --file as an alias, for now. It will be removed later. (usage): Update, but don't mention --file.
1995-06-22(main): Include program name in --version output.Jim Meyering
1995-05-22(usage): Add one or two lines of descriptive text.Jim Meyering
1995-05-13Use stat (lstat), not safe_stat (safe_lstat).Jim Meyering
1995-03-10add 1995 to Copyright datesJim Meyering