summaryrefslogtreecommitdiffstats
path: root/bin/rm
Commit message (Collapse)AuthorAgeFilesLines
* Removed wrong cast for fts_open()'s third argument.ru2001-06-131-1/+1
|
* mdoc(7) police: use the default ``file ...'' feature of the .Ar macro.ru2001-02-131-1/+1
|
* Display pathname of item being rm'ed.obrien2000-12-201-3/+3
| | | | Submitted by: Peter Pentchev <roam@orbitel.bg>
* Prepare for mdoc(7)NG.ru2000-12-151-1/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-2/+2
|
* Switch over to using the new fflagstostr and strtofflags library calls.joe2000-06-172-10/+7
|
* Remove unused #include.asmodai2000-05-011-1/+0
|
* Revert part of the last commit, remove {g|s}etflags from the libcjoe2000-02-052-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | interface, and statically link them to the programs using them. These functions, upon reflection and discussion, are too generically named for a library interface with such specific functionality. Also the api that they use, whilst ok for private use, isn't good enough for a libc function. Additionally there were complications with the build/install-world process. It depends heavily upon xinstall, which got broken by the change in api, and caused bootstrap problems and general mayhem. There is work in progress to address future problems that may be caused by changes in install-chain tools, and better names for {g|s}etflags can be derived when some future program requires them. For now the code has been left in src/lib/libc/gen (it started off in src/bin/ls). It's important to provide library functions for manipulating file flag strings if we ever want this interface to be adopted outside of the source tree, but now isn't necessarily the right moment with 4.0-release just around the corner. Approved: jkh
* Historically file flags (schg, uschg, etc) have been converted fromjoe2000-01-272-5/+1
| | | | | | | | | | | | | | | | | string to u_long and back using two functions, flags_to_string and string_to_flags, which co-existed with 'ls'. As time has progressed more and more other tools have used these private functions to manipulate the file flags. Recently I moved these functions from /usr/src/bin/ls to libutil, but after some discussion with bde it's been decided that they really ought to go in libc. There are two already existing libc functions for manipulating file modes: setmode and getmode. In keeping with these flags_to_string has been renamed getflags and string_to_flags to setflags. The manual page could probably be improved upon ;)
* Actually remove unrequired SRCS.bde2000-01-051-1/+0
|
* Added missing DPADD's. Removed unrequired SRCS's.joe2000-01-011-0/+1
| | | | Obtained from: bde
* Moved flags_to_string and string_to_flags into libutil. It's used injoe1999-12-301-3/+2
| | | | many places nowadays.
* Fix cut'n'paste niggles in previous commit.sheldonh1999-12-211-6/+7
|
* Add link(1) and unlink(1) as special cases of ln(1) and rm(1)sheldonh1999-12-203-2/+42
| | | | | | | | | | | | respectively, in accordance with SUSv2. This differs from the approach taken in NetBSD, but provides less obscure error messages in at least the EISDIR case and does not take up additional disk space for new binaries. PR: 13071 PR: 13074 Requested by: James Howard <howardjp@wam.umd.edu>
* brucifymharo1999-11-281-13/+13
| | | | Reviewed by: obrien
* Fixed longstanding breakage of rm of deep directories in rev.1.2.bde1999-09-131-1/+1
| | | | | | | | | | rm must not use FTS_NOCHDIR, since chdir'ing is required for removing deep directory trees and the ability to remove such trees is required by POSIX.2 and POLA. The breakage didn't make much difference until recently, since fts(3) didn't work in deep directory trees. It isn't clear whether using FTS_NOCHDIR ever fixed anything (Net/2's rm.c is similar to Lite1's). Perhaps it was actually to limit the damage caused by the fts bug.
* brucify, `v' before `W', mention -v is non-standard in manpage andmharo1999-09-042-18/+25
| | | | | | make code slightly easier to read Reviewed by: obrien
* fix rm -rmharo1999-08-291-1/+2
| | | | Submitted by: John Hay -- John.Hay@mikom.csir.co.za
* add verbose flagmharo1999-08-292-10/+27
| | | | | | exit(1) --> exit(EX_USAGE) Reviewed by: obrien
* $Id$ -> $FreeBSD$peter1999-08-273-3/+3
|
* Use .Dq instead of ``'' in manpagekris1999-05-282-8/+23
| | | | | | | Use optimal blocksize for rm -P, instead of always using 8192-byte blocks to overwrite the file. Obtained from: OpenBSD
* Don't emit usage() message when no arguments given to -f. Thisjkh1999-02-251-2/+5
| | | | | | | appears to be consistent with other Unixen, like Solaris. PR: 10240 Submitted by: jun_sun@hlla.is.tsukuba.ac.jp
* Fix synopsis to match 1003.2. Add text describing the way in whichwollman1999-01-281-10/+19
| | | | | our implementation does not meet 1003.2 (rather than the now outdated ``is expected to comply' language).
* .Nm rm -> .Nm.charnier1998-05-181-8/+8
|
* Remove remaining Lite1 stuff from the man page and uphold thesteve1997-08-072-10/+9
| | | | | | | precedence in changing sccsid to rcsid as set by Phillippe Charnier in his previous 100 or so commits. pointed out by: Bruce Evans <bde@zeta.org.au>
* Remove #if(n)def BSD_4_4_LITE cruft and change sccsid to rcsid.steve1997-08-071-46/+5
|
* Enable whiteout code since we now have the lite2 support for them.dfr1997-04-292-4/+4
|
* Provide examples of how to remove file names that begin withmpp1997-04-091-1/+8
| | | | | | | | a dash in non-getopt implementations. E.g.: rm /home/mpp/-filename rm ./-filename Requested by: bde
* Improve the wording in the NOTES section. Closes PR# 3223.mpp1997-04-081-13/+12
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-281-3/+3
| | | | posix standard on the topic.
* Revert $FreeBSD$ to $Id$peter1997-02-223-3/+3
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-143-3/+3
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Merge Lite2 mods, and -Wall cleaning. Unimplemented undelete(2)steve1996-12-142-38/+113
| | | | | cruft is protected by a #ifdef (BSD4_4_LITE) that should be removed when this is supported by the kernel.
* [HISTORY] command appeared in Version 1 AT&T UNIXwosch1996-08-291-1/+6
| | | | Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41
* fix usage stringwosch1996-03-072-4/+20
| | | | | | respond `Y' is equal to `y' Add a note how to delete file name with beginning `-'
* Don't initialize udata, fix usage stringpst1996-02-191-4/+3
|
* delete my last commitwosch1996-02-191-5/+5
| | | | Submitted by: pst, ache
* Remove unnecessary '?' case and don't zero global udata, it's already zeropst1996-02-181-5/+4
|
* update usage stringwosch1996-02-181-5/+6
| | | | | all flag variables initialized with zero respond `Y' is equal to `y'
* Allow root to delete uchg/uappnd filesache1995-04-132-30/+68
|
* Added $Id$dg1994-09-243-0/+4
|
* Remove redundant declarations that were added in the previous commit.bde1994-09-211-2/+0
|
* Applied patch to make -Wall and -Dlint shut up.phk1994-09-201-2/+4
| | | | | Reviewed by: phk Submitted by: Josef Grosch <joeg@gagme.wwa.com>
* Reviewed by:ats1994-08-281-2/+2
| | | | | | | | Submitted by: Added the FTS_NOCHDIR flag to the fts-open call. This is needed, so that the fts don't change the current directory for rm and subsequent calls to rmdir with relative pathnames don't fail. Pulled over the bugfix in 1.1.5.
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-263-0/+533
OpenPOWER on IntegriCloud