create a "stat_flags.h" to go with stat_flags.c
This commit is contained in:
parent
fe56f257b2
commit
14a817a516
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: extern.h,v 1.7 1998/01/18 13:30:03 lukem Exp $ */
|
/* $NetBSD: extern.h,v 1.8 1998/10/10 07:38:22 mrg Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1991, 1993
|
* Copyright (c) 1991, 1993
|
||||||
|
@ -46,11 +46,11 @@ int revstatcmp __P((const FTSENT *, const FTSENT *));
|
||||||
int sizecmp __P((const FTSENT *, const FTSENT *));
|
int sizecmp __P((const FTSENT *, const FTSENT *));
|
||||||
int revsizecmp __P((const FTSENT *, const FTSENT *));
|
int revsizecmp __P((const FTSENT *, const FTSENT *));
|
||||||
|
|
||||||
char *flags_to_string __P((u_long, char *));
|
|
||||||
int string_to_flags __P((char **, u_long *, u_long *));
|
|
||||||
void prcopy __P((char *, char *, int));
|
void prcopy __P((char *, char *, int));
|
||||||
void printacol __P((DISPLAY *));
|
void printacol __P((DISPLAY *));
|
||||||
void printcol __P((DISPLAY *));
|
void printcol __P((DISPLAY *));
|
||||||
void printlong __P((DISPLAY *));
|
void printlong __P((DISPLAY *));
|
||||||
void printscol __P((DISPLAY *));
|
void printscol __P((DISPLAY *));
|
||||||
void usage __P((void));
|
void usage __P((void));
|
||||||
|
|
||||||
|
#include "stat_flags.h"
|
||||||
|
|
|
@ -0,0 +1,39 @@
|
||||||
|
/* $NetBSD: stat_flags.h,v 1.1 1998/10/10 07:38:22 mrg Exp $ */
|
||||||
|
|
||||||
|
/*-
|
||||||
|
* Copyright (c) 1991, 1993
|
||||||
|
* The Regents of the University of California. All rights reserved.
|
||||||
|
*
|
||||||
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
* modification, are permitted provided that the following conditions
|
||||||
|
* are met:
|
||||||
|
* 1. Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
|
* 2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer in the
|
||||||
|
* documentation and/or other materials provided with the distribution.
|
||||||
|
* 3. All advertising materials mentioning features or use of this software
|
||||||
|
* must display the following acknowledgement:
|
||||||
|
* This product includes software developed by the University of
|
||||||
|
* California, Berkeley and its contributors.
|
||||||
|
* 4. Neither the name of the University nor the names of its contributors
|
||||||
|
* may be used to endorse or promote products derived from this software
|
||||||
|
* without specific prior written permission.
|
||||||
|
*
|
||||||
|
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||||
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||||
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||||
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||||
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||||
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
|
* SUCH DAMAGE.
|
||||||
|
*
|
||||||
|
* @(#)extern.h 8.1 (Berkeley) 5/31/93
|
||||||
|
*/
|
||||||
|
|
||||||
|
char *flags_to_string __P((u_long, char *));
|
||||||
|
int string_to_flags __P((char **, u_long *, u_long *));
|
|
@ -1,8 +1,9 @@
|
||||||
# $NetBSD: Makefile,v 1.4 1997/05/08 21:11:36 gwr Exp $
|
# $NetBSD: Makefile,v 1.5 1998/10/10 07:38:23 mrg Exp $
|
||||||
# @(#)Makefile 8.1 (Berkeley) 6/6/93
|
# @(#)Makefile 8.1 (Berkeley) 6/6/93
|
||||||
|
|
||||||
PROG= chflags
|
PROG= chflags
|
||||||
SRCS= chflags.c stat_flags.c
|
SRCS= chflags.c stat_flags.c
|
||||||
.PATH: ${.CURDIR}/../../bin/ls
|
.PATH: ${.CURDIR}/../../bin/ls
|
||||||
|
CPPFLAGS+= -I${.CURDIR}/../../bin/ls
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: chflags.c,v 1.5 1997/10/18 12:39:54 lukem Exp $ */
|
/* $NetBSD: chflags.c,v 1.6 1998/10/10 07:38:23 mrg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1992, 1993, 1994
|
* Copyright (c) 1992, 1993, 1994
|
||||||
|
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1992, 1993, 1994\n\
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "from: @(#)chflags.c 8.5 (Berkeley) 4/1/94";
|
static char sccsid[] = "from: @(#)chflags.c 8.5 (Berkeley) 4/1/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: chflags.c,v 1.5 1997/10/18 12:39:54 lukem Exp $");
|
__RCSID("$NetBSD: chflags.c,v 1.6 1998/10/10 07:38:23 mrg Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
|
@ -58,8 +58,9 @@ __RCSID("$NetBSD: chflags.c,v 1.5 1997/10/18 12:39:54 lukem Exp $");
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#include "stat_flags.h"
|
||||||
|
|
||||||
int main __P((int, char **));
|
int main __P((int, char **));
|
||||||
u_long string_to_flags __P((char **, u_long *, u_long *));
|
|
||||||
void usage __P((void));
|
void usage __P((void));
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
# $NetBSD: Makefile,v 1.13 1997/05/08 21:12:02 gwr Exp $
|
# $NetBSD: Makefile,v 1.14 1998/10/10 07:38:22 mrg Exp $
|
||||||
# @(#)Makefile 8.1 (Berkeley) 6/6/93
|
# @(#)Makefile 8.1 (Berkeley) 6/6/93
|
||||||
|
|
||||||
PROG= xinstall
|
PROG= xinstall
|
||||||
SRCS= stat_flags.c xinstall.c
|
SRCS= stat_flags.c xinstall.c
|
||||||
MAN= install.1
|
MAN= install.1
|
||||||
.PATH: ${.CURDIR}/../../bin/ls
|
.PATH: ${.CURDIR}/../../bin/ls
|
||||||
|
CPPFLAGS+= -I${.CURDIR}/../../bin/ls
|
||||||
|
|
||||||
PROGNAME=install
|
PROGNAME=install
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: xinstall.c,v 1.28 1998/10/08 02:12:51 wsanchez Exp $ */
|
/* $NetBSD: xinstall.c,v 1.29 1998/10/10 07:38:23 mrg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1987, 1993
|
* Copyright (c) 1987, 1993
|
||||||
|
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 1993\n\
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)xinstall.c 8.1 (Berkeley) 7/21/93";
|
static char sccsid[] = "@(#)xinstall.c 8.1 (Berkeley) 7/21/93";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: xinstall.c,v 1.28 1998/10/08 02:12:51 wsanchez Exp $");
|
__RCSID("$NetBSD: xinstall.c,v 1.29 1998/10/10 07:38:23 mrg Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
|
@ -65,6 +65,7 @@ __RCSID("$NetBSD: xinstall.c,v 1.28 1998/10/08 02:12:51 wsanchez Exp $");
|
||||||
#include <err.h>
|
#include <err.h>
|
||||||
|
|
||||||
#include "pathnames.h"
|
#include "pathnames.h"
|
||||||
|
#include "stat_flags.h"
|
||||||
|
|
||||||
#define STRIP_ARGS_MAX 32
|
#define STRIP_ARGS_MAX 32
|
||||||
|
|
||||||
|
@ -90,7 +91,6 @@ void copy __P((int, char *, int, char *, off_t));
|
||||||
void makelink __P((char *, char *));
|
void makelink __P((char *, char *));
|
||||||
void install __P((char *, char *, u_long, u_int));
|
void install __P((char *, char *, u_long, u_int));
|
||||||
void install_dir __P((char *));
|
void install_dir __P((char *));
|
||||||
u_long string_to_flags __P((char **, u_long *, u_long *));
|
|
||||||
void strip __P((char *));
|
void strip __P((char *));
|
||||||
void usage __P((void));
|
void usage __P((void));
|
||||||
int main __P((int, char *[]));
|
int main __P((int, char *[]));
|
||||||
|
|
Loading…
Reference in New Issue