head	1.19;
access;
symbols
	RELENG_8_4:1.19.0.2
	RELENG_9_1_0_RELEASE:1.18.28.1.4.2
	RELENG_9_1:1.18.28.1.0.4
	RELENG_9_1_BP:1.18.28.1
	RELENG_8_3_0_RELEASE:1.18.22.1.8.1
	RELENG_8_3:1.18.22.1.0.8
	RELENG_8_3_BP:1.18.22.1
	RELENG_9_0_0_RELEASE:1.18.28.1.2.1
	RELENG_9_0:1.18.28.1.0.2
	RELENG_9_0_BP:1.18.28.1
	RELENG_9:1.18.0.28
	RELENG_9_BP:1.18
	RELENG_7_4_0_RELEASE:1.18.26.1
	RELENG_8_2_0_RELEASE:1.18.22.1.6.1
	RELENG_7_4:1.18.0.26
	RELENG_7_4_BP:1.18
	RELENG_8_2:1.18.22.1.0.6
	RELENG_8_2_BP:1.18.22.1
	RELENG_8_1_0_RELEASE:1.18.22.1.4.1
	RELENG_8_1:1.18.22.1.0.4
	RELENG_8_1_BP:1.18.22.1
	RELENG_7_3_0_RELEASE:1.18.24.1
	RELENG_7_3:1.18.0.24
	RELENG_7_3_BP:1.18
	RELENG_8_0_0_RELEASE:1.18.22.1.2.1
	RELENG_8_0:1.18.22.1.0.2
	RELENG_8_0_BP:1.18.22.1
	RELENG_8:1.18.0.22
	RELENG_8_BP:1.18
	RELENG_7_2_0_RELEASE:1.18.20.1
	RELENG_7_2:1.18.0.20
	RELENG_7_2_BP:1.18
	RELENG_7_1_0_RELEASE:1.18.18.1
	RELENG_6_4_0_RELEASE:1.18.16.1
	RELENG_7_1:1.18.0.18
	RELENG_7_1_BP:1.18
	RELENG_6_4:1.18.0.16
	RELENG_6_4_BP:1.18
	RELENG_7_0_0_RELEASE:1.18
	RELENG_6_3_0_RELEASE:1.18
	RELENG_7_0:1.18.0.14
	RELENG_7_0_BP:1.18
	RELENG_6_3:1.18.0.12
	RELENG_6_3_BP:1.18
	RELENG_7:1.18.0.10
	RELENG_7_BP:1.18
	RELENG_6_2_0_RELEASE:1.18
	RELENG_6_2:1.18.0.8
	RELENG_6_2_BP:1.18
	RELENG_5_5_0_RELEASE:1.17.8.1
	RELENG_5_5:1.17.8.1.0.2
	RELENG_5_5_BP:1.17.8.1
	RELENG_6_1_0_RELEASE:1.18
	RELENG_6_1:1.18.0.6
	RELENG_6_1_BP:1.18
	RELENG_6_0_0_RELEASE:1.18
	RELENG_6_0:1.18.0.4
	RELENG_6_0_BP:1.18
	RELENG_6:1.18.0.2
	RELENG_6_BP:1.18
	RELENG_5_4_0_RELEASE:1.17
	RELENG_5_4:1.17.0.12
	RELENG_5_4_BP:1.17
	RELENG_4_11_0_RELEASE:1.12.2.2
	RELENG_4_11:1.12.2.2.0.16
	RELENG_4_11_BP:1.12.2.2
	RELENG_5_3_0_RELEASE:1.17
	RELENG_5_3:1.17.0.10
	RELENG_5_3_BP:1.17
	RELENG_5:1.17.0.8
	RELENG_5_BP:1.17
	RELENG_4_10_0_RELEASE:1.12.2.2
	RELENG_4_10:1.12.2.2.0.14
	RELENG_4_10_BP:1.12.2.2
	RELENG_5_2_1_RELEASE:1.17
	RELENG_5_2_0_RELEASE:1.17
	RELENG_5_2:1.17.0.6
	RELENG_5_2_BP:1.17
	RELENG_4_9_0_RELEASE:1.12.2.2
	RELENG_4_9:1.12.2.2.0.12
	RELENG_4_9_BP:1.12.2.2
	RELENG_5_1_0_RELEASE:1.17
	RELENG_5_1:1.17.0.4
	RELENG_5_1_BP:1.17
	RELENG_4_8_0_RELEASE:1.12.2.2
	RELENG_4_8:1.12.2.2.0.10
	RELENG_4_8_BP:1.12.2.2
	RELENG_5_0_0_RELEASE:1.17
	RELENG_5_0:1.17.0.2
	RELENG_5_0_BP:1.17
	RELENG_4_7_0_RELEASE:1.12.2.2
	RELENG_4_7:1.12.2.2.0.8
	RELENG_4_7_BP:1.12.2.2
	RELENG_4_6_2_RELEASE:1.12.2.2
	RELENG_4_6_1_RELEASE:1.12.2.2
	RELENG_4_6_0_RELEASE:1.12.2.2
	RELENG_4_6:1.12.2.2.0.6
	RELENG_4_6_BP:1.12.2.2
	RELENG_4_5_0_RELEASE:1.12.2.2
	RELENG_4_5:1.12.2.2.0.4
	RELENG_4_5_BP:1.12.2.2
	RELENG_4_4_0_RELEASE:1.12.2.2
	RELENG_4_4:1.12.2.2.0.2
	RELENG_4_4_BP:1.12.2.2
	RELENG_4_3_0_RELEASE:1.12.2.1
	RELENG_4_3:1.12.2.1.0.2
	RELENG_4_3_BP:1.12.2.1
	RELENG_4_2_0_RELEASE:1.12.2.1
	RELENG_4_1_1_RELEASE:1.12.2.1
	PRE_SMPNG:1.13
	RELENG_4_1_0_RELEASE:1.12.2.1
	RELENG_3_5_0_RELEASE:1.5.2.2
	RELENG_4_0_0_RELEASE:1.12
	RELENG_4:1.12.0.2
	RELENG_4_BP:1.12
	RELENG_3_4_0_RELEASE:1.5.2.1
	RELENG_3_3_0_RELEASE:1.5.2.1
	RELENG_3_2_PAO:1.5.0.4
	RELENG_3_2_PAO_BP:1.5
	RELENG_3_2_0_RELEASE:1.5
	RELENG_3_1_0_RELEASE:1.5
	RELENG_3:1.5.0.2
	RELENG_3_BP:1.5
	RELENG_2_2_8_RELEASE:1.3
	RELENG_3_0_0_RELEASE:1.5
	RELENG_2_2_7_RELEASE:1.3
	RELENG_2_2_6_RELEASE:1.3
	RELENG_2_2_5_RELEASE:1.3
	bsd_44_lite_2:1.1.1.1
	RELENG_2_2_2_RELEASE:1.3
	RELENG_2_2_1_RELEASE:1.3
	RELENG_2_2_0_RELEASE:1.3
	RELENG_2_1_7_RELEASE:1.3
	RELENG_2_1_6_1_RELEASE:1.3
	RELENG_2_1_6_RELEASE:1.3
	RELENG_2_2:1.3.0.6
	RELENG_2_2_BP:1.3
	RELENG_2_1_5_RELEASE:1.3
	RELENG_2_1_0_RELEASE:1.3
	RELENG_2_1_0:1.3.0.4
	RELENG_2_1_0_BP:1.3
	RELENG_2_0_5_RELEASE:1.3
	RELENG_2_0_5:1.3.0.2
	RELENG_2_0_5_BP:1.3
	RELENG_2_0_5_ALPHA:1.3
	RELEASE_2_0:1.2
	BETA_2_0:1.2
	ALPHA_2_0:1.2.0.2
	bsd_44_lite:1.1.1.1
	CSRG:1.1.1;
locks; strict;
comment	@# @;


1.19
date	2012.11.17.01.48.31;	author svnexp;	state Exp;
branches
	1.19.2.1;
next	1.18;

1.18
date	2005.01.27.14.52.45;	author delphij;	state Exp;
branches
	1.18.2.1
	1.18.10.1
	1.18.16.1
	1.18.18.1
	1.18.20.1
	1.18.22.1
	1.18.24.1
	1.18.26.1
	1.18.28.1;
next	1.17;

1.17
date	2002.07.15.12.08.21;	author sheldonh;	state Exp;
branches
	1.17.8.1;
next	1.16;

1.16
date	2002.07.11.08.45.38;	author sheldonh;	state Exp;
branches;
next	1.15;

1.15
date	2001.12.04.01.57.46;	author obrien;	state Exp;
branches;
next	1.14;

1.14
date	2001.07.15.10.30.46;	author dd;	state Exp;
branches;
next	1.13;

1.13
date	2000.06.17.14.19.32;	author joe;	state Exp;
branches;
next	1.12;

1.12
date	2000.02.05.18.42.29;	author joe;	state Exp;
branches
	1.12.2.1;
next	1.11;

1.11
date	2000.01.27.21.16.50;	author joe;	state Exp;
branches;
next	1.10;

1.10
date	2000.01.05.19.17.21;	author bde;	state Exp;
branches;
next	1.9;

1.9
date	2000.01.01.15.44.08;	author joe;	state Exp;
branches;
next	1.8;

1.8
date	99.12.30.13.15.10;	author joe;	state Exp;
branches;
next	1.7;

1.7
date	99.12.20.16.13.47;	author sheldonh;	state Exp;
branches;
next	1.6;

1.6
date	99.08.27.23.15.00;	author peter;	state Exp;
branches;
next	1.5;

1.5
date	97.02.22.14.05.25;	author peter;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	97.01.14.05.32.32;	author jkh;	state Exp;
branches;
next	1.3;

1.3
date	95.04.13.13.35.07;	author ache;	state Exp;
branches
	1.3.4.1
	1.3.6.1;
next	1.2;

1.2
date	94.09.24.02.56.59;	author davidg;	state Exp;
branches;
next	1.1;

1.1
date	94.05.26.06.18.37;	author rgrimes;	state Exp;
branches
	1.1.1.1;
next	;

1.19.2.1
date	2012.11.17.01.48.31;	author svnexp;	state dead;
branches;
next	1.19.2.2;

1.19.2.2
date	2013.03.28.13.00.05;	author svnexp;	state Exp;
branches;
next	;

1.18.2.1
date	2012.11.17.07.38.37;	author svnexp;	state Exp;
branches;
next	;

1.18.10.1
date	2012.11.17.08.00.48;	author svnexp;	state Exp;
branches;
next	;

1.18.16.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.18.18.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.18.20.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.18.22.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.18.22.1.2.1
	1.18.22.1.4.1
	1.18.22.1.6.1
	1.18.22.1.8.1;
next	1.18.22.2;

1.18.22.2
date	2012.11.17.10.35.49;	author svnexp;	state Exp;
branches;
next	;

1.18.22.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.18.22.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.18.22.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.18.22.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.18.22.1.8.2;

1.18.22.1.8.2
date	2012.11.17.08.24.31;	author svnexp;	state Exp;
branches;
next	;

1.18.24.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.18.26.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.18.26.2;

1.18.26.2
date	2012.11.17.08.16.32;	author svnexp;	state Exp;
branches;
next	;

1.18.28.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.18.28.1.2.1
	1.18.28.1.4.1;
next	1.18.28.2;

1.18.28.2
date	2012.11.17.11.36.04;	author svnexp;	state Exp;
branches;
next	;

1.18.28.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.18.28.1.2.2;

1.18.28.1.2.2
date	2012.11.17.08.36.05;	author svnexp;	state Exp;
branches;
next	;

1.18.28.1.4.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.18.28.1.4.2;

1.18.28.1.4.2
date	2012.11.17.08.46.53;	author svnexp;	state Exp;
branches;
next	;

1.17.8.1
date	2005.10.08.17.40.01;	author dougb;	state Exp;
branches;
next	;

1.12.2.1
date	2000.06.28.02.33.14;	author joe;	state Exp;
branches;
next	1.12.2.2;

1.12.2.2
date	2001.08.01.05.15.02;	author obrien;	state Exp;
branches;
next	1.12.2.3;

1.12.2.3
date	2005.10.08.17.46.12;	author dougb;	state Exp;
branches;
next	1.12.2.4;

1.12.2.4
date	2012.11.17.07.22.04;	author svnexp;	state Exp;
branches;
next	;

1.5.2.1
date	99.08.29.14.13.29;	author peter;	state Exp;
branches;
next	1.5.2.2;

1.5.2.2
date	99.12.29.19.39.45;	author obrien;	state Exp;
branches;
next	;

1.3.4.1
date	99.09.05.11.01.42;	author peter;	state Exp;
branches;
next	;

1.3.6.1
date	99.09.05.10.59.50;	author peter;	state Exp;
branches;
next	;

1.1.1.1
date	94.05.26.06.18.38;	author rgrimes;	state Exp;
branches;
next	;


desc
@@


1.19
log
@Switching exporter and resync
@
text
@#	@@(#)Makefile	8.1 (Berkeley) 5/31/93
# $FreeBSD: head/bin/rm/Makefile 140909 2005-01-27 14:52:47Z delphij $

PROG=	rm

LINKS=	${BINDIR}/rm ${BINDIR}/unlink
MLINKS=	rm.1 unlink.1

.include <bsd.prog.mk>
@


1.19.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:00:05 +0000
@
text
@d1 9
@


1.19.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 9
#	@@(#)Makefile	8.1 (Berkeley) 5/31/93
# $FreeBSD: releng/8.4/bin/rm/Makefile 140909 2005-01-27 14:52:47Z delphij $

PROG=	rm

LINKS=	${BINDIR}/rm ${BINDIR}/unlink
MLINKS=	rm.1 unlink.1

.include <bsd.prog.mk>
@


1.18
log
@Remove unnecessary SRCS= where could be guessed directly by our
bsd.*.mk infrasture.

Obtained from:	ru
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.18.10.1
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/7/bin/rm/Makefile 140909 2005-01-27 14:52:47Z delphij $
@


1.18.2.1
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/6/bin/rm/Makefile 140909 2005-01-27 14:52:47Z delphij $
@


1.18.28.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.18.28.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: stable/9/bin/rm/Makefile 140909 2005-01-27 14:52:47Z delphij $
@


1.18.28.1.4.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.18.28.1.4.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/9.1/bin/rm/Makefile 140909 2005-01-27 14:52:47Z delphij $
@


1.18.28.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.18.28.1.2.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/9.0/bin/rm/Makefile 140909 2005-01-27 14:52:47Z delphij $
@


1.18.26.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.18.26.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/7.4/bin/rm/Makefile 140909 2005-01-27 14:52:47Z delphij $
@


1.18.24.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.18.22.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.18.22.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: stable/8/bin/rm/Makefile 140909 2005-01-27 14:52:47Z delphij $
@


1.18.22.1.8.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.18.22.1.8.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/8.3/bin/rm/Makefile 140909 2005-01-27 14:52:47Z delphij $
@


1.18.22.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.18.22.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.18.22.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.18.20.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.18.18.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.18.16.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.17
log
@Revert previous delta, which is not required with rev 1.5 of
src/contrib/gcc/c-format.c .
@
text
@a4 1
SRCS=	rm.c
@


1.17.8.1
log
@MFC through rm.c 1.53, rm.1 1.38, and Makefile 1.18.

This includes the recent change to improve handling of the -P flag
on read-only files, addition of the -I option for better handling
of recursive deletes, a test for removal of / in the argument list,
and related mdoc and comment changes and improvements.

The Makefile change removes a spurious SRCS=
@
text
@d5 1
@


1.16
log
@Set WFORMAT=0, because our compiler currently complains about NULL
arg 2 to err() and friends, and warnings are promoted to errors.

This allows the following revisions to be reverted:

	rev 1.39	src/bin/cp/cp.c
	rev 1.26	src/bin/chmod/chmod.c
	rev 1.40	src/bin/rm/rm.c

The following revisions can already be reverted, because they were
already covered by WFORMAT=0:

	rev 1.8		src/bin/ls/lomac.c
	rev 1.63	src/bin/ls/ls.c
	rev 1.8		src/bin/ps/lomac.c
	rev 1.34	src/bin/rcp/rcp.c
@
text
@a5 1
WFORMAT=0
@


1.15
log
@Default to WARNS=2.  Binary builds that cannot handle this must explicitly
set WARNS=0.

Reviewed by:	mike
@
text
@d6 1
@


1.14
log
@Set WARNS=2 on programs which compile cleanly.

Submitted by:	Mike Barcroft <mike@@q9media.com>
@
text
@d2 1
a2 1
# $FreeBSD: src/bin/rm/Makefile,v 1.13 2000/06/17 14:19:32 joe Exp $
a4 1
WARNS?=	2
@


1.13
log
@Switch over to using the new fflagstostr and strtofflags library calls.
@
text
@d2 1
a2 1
# $FreeBSD: src/bin/rm/Makefile,v 1.12 2000/02/05 18:42:29 joe Exp $
d5 1
@


1.12
log
@Revert part of the last commit, remove {g|s}etflags from the libc
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
@
text
@d2 1
a2 1
# $FreeBSD: src/bin/rm/Makefile,v 1.11 2000/01/27 21:16:50 joe Exp $
d5 1
a5 1
SRCS=	rm.c setflags.c
a8 1
.PATH:	${.CURDIR}/../../lib/libc/gen
@


1.12.2.1
log
@MFC: Use the new fflagstostr and strtofflags functions in libc.
@
text
@d2 1
a2 1
# $FreeBSD: src/bin/rm/Makefile,v 1.12 2000/02/05 18:42:29 joe Exp $
d5 1
a5 1
SRCS=	rm.c
d9 1
@


1.12.2.2
log
@MFC: WARNS=2
@
text
@d2 1
a2 1
# $FreeBSD: src/bin/rm/Makefile,v 1.12.2.1 2000/06/28 02:33:14 joe Exp $
a4 1
WARNS?=	2
@


1.12.2.3
log
@MFC through rm.c 1.53, rm.1 1.38, and Makefile 1.18.

This includes the recent change to improve handling of the -P flag
on read-only files, addition of the -I option for better handling
of recursive deletes, a test for removal of / in the argument list,
removal of clause 3 from the BSD license, some small code cleanups,
and related mdoc and comment changes and improvements.

The Makefile change removes a spurious SRCS=, and WARNS?=
@
text
@d2 1
a2 1
# $FreeBSD$
d5 2
@


1.12.2.4
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/4/bin/rm/Makefile 151090 2005-10-08 17:46:12Z dougb $
@


1.11
log
@Historically file flags (schg, uschg, etc) have been converted from
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 ;)
@
text
@d2 1
a2 1
# $FreeBSD: src/bin/rm/Makefile,v 1.10 2000/01/05 19:17:21 bde Exp $
d5 1
d9 1
@


1.10
log
@Actually remove unrequired SRCS.
@
text
@d2 1
a2 1
# $FreeBSD: src/bin/rm/Makefile,v 1.9 2000/01/01 15:44:08 joe Exp $
a4 2
DPADD=	${LIBUTIL}
LDADD=	-lutil
@


1.9
log
@Added missing DPADD's.  Removed unrequired SRCS's.

Obtained from:	bde
@
text
@d2 1
a2 1
# $FreeBSD: src/bin/rm/Makefile,v 1.8 1999/12/30 13:15:10 joe Exp $
a4 1
SRCS=   rm.c
@


1.8
log
@Moved flags_to_string and string_to_flags into libutil.  It's used in
many places nowadays.
@
text
@d2 1
a2 1
# $FreeBSD: src/bin/rm/Makefile,v 1.7 1999/12/20 16:13:47 sheldonh Exp $
d6 1
@


1.7
log
@Add link(1) and unlink(1) as special cases of ln(1) and rm(1)
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>
@
text
@d2 1
a2 1
# $FreeBSD: src/bin/rm/Makefile,v 1.6 1999/08/27 23:15:00 peter Exp $
d5 2
a6 1
SRCS=   rm.c stat_flags.c
a9 2

.PATH: ${.CURDIR}/../ls
@


1.6
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
d6 3
@


1.5
log
@Revert $FreeBSD$ to $Id$
@
text
@d2 1
a2 1
#	$Id$
@


1.5.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.5.2.2
log
@MFC: unlink(1) SUSv2 compliance.
@
text
@a6 3
LINKS=	${BINDIR}/rm ${BINDIR}/unlink
MLINKS=	rm.1 unlink.1

@


1.4
log
@Make the long-awaited change from $Id$ to $FreeBSD$

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.
@
text
@d2 1
a2 1
#	$FreeBSD$
@


1.3
log
@Allow root to delete uchg/uappnd files
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.2 1994/09/24 02:56:59 davidg Exp $
@


1.3.4.1
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.3.6.1
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.2
log
@Added $Id$
@
text
@d2 1
a2 1
#	$Id$
d5 3
@


1.1
log
@Initial revision
@
text
@d2 1
@


1.1.1.1
log
@BSD 4.4 Lite bin Sources
@
text
@@
