summaryrefslogtreecommitdiff
path: root/src/rm.c
AgeCommit message (Collapse)Author
2002-04-25Revert last change.Jim Meyering
2002-04-22(main): Adjust caller of remove_init.Jim Meyering
2002-03-08(main): Call lstat `.' to get the device/inode numbersJim Meyering
now required for rm.
2001-12-02Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTIONJim Meyering
instead of hard-coding --help and --version descriptions.
2001-11-23Split usage strings so that --help and --versionJim Meyering
descriptions are alone in their own string.
2001-11-23(usage): Split --help output into smaller pieces.Jim Meyering
Use fputs, not printf.
2001-10-20(usage): Clarify description of --directory (-d).Jim Meyering
Based on a patch from Michael Stone.
2001-09-15(main): Don't strip trailing slashes; POSIX doesn't allow it here.Jim Meyering
Don't include "dirname.h" when no longer needed.
2001-05-12(strip_trailing_slashes): Remove declaration; now in dirname.h.Jim Meyering
2001-04-29(usage): Mention shred.Jim Meyering
2000-05-13Arrange to call close_stdout only upon exit.Jim Meyering
2000-05-02don't hard-code `rm'Jim Meyering
2000-05-02(usage): Add the answer to `How do I remove a file named -f?'Jim Meyering
1999-11-12Adjust comments to reflect that lots of code has moved to remove.c.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-02-16update copyright datesJim Meyering
1999-01-16(usage): Don't make it static so that it can be called from libfu.a by ↵Jim Meyering
xargmatch.
1998-09-19update bug-reporting addressJim Meyering
1998-01-22Remove and minimally librarify guts for use in mv.c.Jim Meyering
(main): Pass options (`&x') to rm. Call remove_init and remove_fini instead of open-coding them.
1998-01-19add `,' in commentJim Meyering
1998-01-04(main, usage): Check for write error to stdout before exiting.Jim Meyering
Include "closeout.h".
1998-01-01(remove_cwd_entries): Initialize the entry-name obstackJim Meyering
only once and never free it.
1997-12-29(remove_cwd_entries): Plug a gross leak -- don't callJim Meyering
obstack_init inside the loop.
1997-12-14(ASSIGN_STRDUPA): Cast alloca return value to char*.Jim Meyering
1997-11-30(full_filename): Use memcpy, not mempcpy when not using the return value.Jim Meyering
1997-11-19(hash_pjw): Don't use ANSI `U' suffix. Cast instead.Jim Meyering
1997-11-12[!HAVE_MEMPCPY] (mempcpy): Define here instead.Jim Meyering
1997-11-08use 2 mempcpy instead of two memcpy callsJim Meyering
1997-11-03Put cycle-detecting code inside anJim Meyering
#ifdef ENABLE_CYCLE_CHECK, for systems lacking d_ino. [D_INO_IN_DIRENT]: Define ENABLE_CYCLE_CHECK. (ASSIGN_STRDUPA): Clean up. (right_justify): Use memcpy return value directly. Suggestions from Ulrich Drepper. (remove_cwd_entries) [! defined HAVE_WORKING_READDIR]: Impose overhead of working around non-POSIX readdir implementation only on systems that need it. (remove_cwd_entries): Temporarily save a copy of each entry name in an obstack rather than on the stack via alloca, then free it in the likely event that we don't save the entry in the hash table.
1997-10-28Guard cycle-detecting code inside #ifdef ENABLE_CYCLE_CHECK.Jim Meyering
[D_INO_IN_DIRENT]: Define ENABLE_CYCLE_CHECK.
1997-10-27fix typo in commentJim Meyering
1997-10-25Remove old-style xmalloc and xrealloc decls.Jim Meyering
1997-10-23Remove stpcpy decl.Jim Meyering
Remove free, malloc, and realloc decls.
1997-10-19(remove_cwd_entries): Entries in table of processed dirJim Meyering
entries are not malloc'd, so don't have hash cleanup free them. Rewind dirp upon NULL readdir, required for at least SunOS.
1997-10-17(remove_cwd_entries): Change the while(dp...) to a while(1) loop,Jim Meyering
and move dcl and assignment of dp into the loop.
1997-10-07update bug-reporting addressJim Meyering
1997-10-03(fspec_init_dp): Use DTTOIF. Fix syntax error in codeJim Meyering
that gets compiled on BSDI3.0 systems.
1997-09-28(remove_dir): Update old comment.Jim Meyering
1997-09-28[enum RM_status]: Remove `= 2'. Add comment.Jim Meyering
(dir_stack): Describe. (remove_file): Revert s/fprintf/error/ change. We don't want newlines at end of prompt strings. (remove_dir): Likewise.
1997-09-27tweak commentJim Meyering
1997-09-21Use hash.c (chaining) functions, not those of oa-hash.cJim Meyering
(open addressing). The latter implementation is wonderful when deletions are rare, but doen't support the frequent deletions required to implement the active directory set.
1997-09-15(remove_cwd_entries): Don't free entries -- they're alloca'd, now.Jim Meyering
1997-09-15Use memcpy, not stpncpy. This fixes a UMR.Jim Meyering
1997-09-15Write implementation overview.Jim Meyering
1997-09-15remove obsolete commentJim Meyering
1997-09-15tweak commentJim Meyering
1997-09-15(full_filename): Use realloc, not xrealloc.Jim Meyering
1997-09-14s/__inline/inline/.Jim Meyering