summaryrefslogtreecommitdiff
path: root/src/rm.c
AgeCommit message (Collapse)Author
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
1997-09-14(PARAMS): Define.Jim Meyering
(rm): Guard prototype in forward dcl with PARAMS.
1997-09-14merge from rm-fix branchJim Meyering
1997-05-27Use base_name, not basename.Jim 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-23(usage): Alphabetize option descriptions the way sort -f would.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