aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJosef Karthauser <joe@FreeBSD.org>2000-02-05 18:42:36 +0000
committerJosef Karthauser <joe@FreeBSD.org>2000-02-05 18:42:36 +0000
commit418d67b0d998883a0a2ea7ff6118592ea09867a7 (patch)
tree031dae41dbe808050d7622c806541302a5056186 /bin
parentdfd9528b3005ef25b6e52ef6d2f719ea0976ae53 (diff)
Notes
Diffstat (limited to 'bin')
-rw-r--r--bin/chflags/Makefile2
-rw-r--r--bin/chflags/chflags.c2
-rw-r--r--bin/ls/Makefile3
-rw-r--r--bin/ls/ls.c2
-rw-r--r--bin/rm/Makefile2
-rw-r--r--bin/rm/rm.c2
6 files changed, 12 insertions, 1 deletions
diff --git a/bin/chflags/Makefile b/bin/chflags/Makefile
index 30b66998e122..b545bfa90f2c 100644
--- a/bin/chflags/Makefile
+++ b/bin/chflags/Makefile
@@ -5,5 +5,7 @@ NOSHARED?=yes
PROG= chflags
CFLAGS+=-Wall
+.PATH: ${.CURDIR}/../../lib/libc/gen
+SRCS= chflags.c setflags.c
.include <bsd.prog.mk>
diff --git a/bin/chflags/chflags.c b/bin/chflags/chflags.c
index daeab4d92107..784243e10268 100644
--- a/bin/chflags/chflags.c
+++ b/bin/chflags/chflags.c
@@ -56,6 +56,8 @@ static const char rcsid[] =
#include <string.h>
#include <unistd.h>
+extern u_long setflags __P((char **, u_long *, u_long *));
+
void usage __P((void));
int
diff --git a/bin/ls/Makefile b/bin/ls/Makefile
index 1ab70dc78a17..8496dd9cdf58 100644
--- a/bin/ls/Makefile
+++ b/bin/ls/Makefile
@@ -3,6 +3,7 @@
PROG= ls
-SRCS= cmp.c ls.c print.c util.c
+SRCS= cmp.c setflags.c ls.c print.c util.c
+.PATH: ${.CURDIR}/../../lib/libc/gen
.include <bsd.prog.mk>
diff --git a/bin/ls/ls.c b/bin/ls/ls.c
index 5db99975ca15..754236b9450f 100644
--- a/bin/ls/ls.c
+++ b/bin/ls/ls.c
@@ -74,6 +74,8 @@ static const char rcsid[] =
*/
#define STRBUF_SIZEOF(t) (1 + CHAR_BIT * sizeof(t) / 3 + 1)
+char *getflags __P((u_long, char *));
+
static void display __P((FTSENT *, FTSENT *));
static u_quad_t makenines __P((u_long));
static int mastercmp __P((const FTSENT **, const FTSENT **));
diff --git a/bin/rm/Makefile b/bin/rm/Makefile
index 7058fa06c98d..2bbcdf89effc 100644
--- a/bin/rm/Makefile
+++ b/bin/rm/Makefile
@@ -2,8 +2,10 @@
# $FreeBSD$
PROG= rm
+SRCS= rm.c setflags.c
LINKS= ${BINDIR}/rm ${BINDIR}/unlink
MLINKS= rm.1 unlink.1
+.PATH: ${.CURDIR}/../../lib/libc/gen
.include <bsd.prog.mk>
diff --git a/bin/rm/rm.c b/bin/rm/rm.c
index 4315f9901045..3c9071f45fb1 100644
--- a/bin/rm/rm.c
+++ b/bin/rm/rm.c
@@ -61,6 +61,8 @@ static const char rcsid[] =
#include <sysexits.h>
#include <unistd.h>
+char *getflags __P((u_long, char *));
+
int dflag, eval, fflag, iflag, Pflag, vflag, Wflag, stdin_ok;
uid_t uid;