"merge" lite-2. (our strip was already radically different and only rcsids were changed)

This commit is contained in:
mrg 1997-10-18 15:04:56 +00:00
parent c5a3c5334f
commit acc19d2fa6
3 changed files with 23 additions and 19 deletions

View File

@ -1,5 +1,5 @@
# $NetBSD: Makefile,v 1.16 1997/05/10 14:30:38 mycroft Exp $
# @(#)Makefile 5.4 (Berkeley) 5/11/90
# $NetBSD: Makefile,v 1.17 1997/10/18 15:04:56 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 6/6/93
PROG= strip

View File

@ -1,6 +1,7 @@
.\" $NetBSD: strip.1,v 1.4 1996/10/08 22:00:20 christos Exp $
.\" Copyright (c) 1989, 1990 The Regents of the University of California.
.\" All rights reserved.
.\" $NetBSD: strip.1,v 1.5 1997/10/18 15:05:01 mrg Exp $
.\"
.\" Copyright (c) 1989, 1990, 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
@ -30,9 +31,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" @(#)strip.1 6.6 (Berkeley) 5/26/91
.\" @(#)strip.1 8.1 (Berkeley) 6/6/93
.\"
.Dd May 26, 1991
.Dd June 6, 1993
.Dt STRIP 1
.Os
.Sh NAME

View File

@ -1,8 +1,8 @@
/* $NetBSD: strip.c,v 1.16 1997/05/17 20:15:03 pk Exp $ */
/* $NetBSD: strip.c,v 1.17 1997/10/18 15:05:05 mrg Exp $ */
/*
* Copyright (c) 1988 Regents of the University of California.
* All rights reserved.
* Copyright (c) 1988, 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
@ -34,30 +34,32 @@
*/
#ifndef lint
char copyright[] =
"@(#) Copyright (c) 1988 Regents of the University of California.\n\
All rights reserved.\n";
static char copyright[] =
"@(#) Copyright (c) 1988, 1993\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
#ifndef lint
#if 0
static char sccsid[] = "@(#)strip.c 5.8 (Berkeley) 11/6/91";*/
static char sccsid[] = "@(#)strip.c 8.3 (Berkeley) 5/16/95";
#else
static char rcsid[] = "$NetBSD: strip.c,v 1.16 1997/05/17 20:15:03 pk Exp $";
static char rcsid[] = "$NetBSD: strip.c,v 1.17 1997/10/18 15:05:05 mrg Exp $";
#endif
#endif /* not lint */
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <errno.h>
#include <a.out.h>
#include <unistd.h>
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <err.h>
#include <unistd.h>
typedef struct exec EXEC;
typedef struct nlist NLIST;
@ -313,6 +315,7 @@ static void
usage()
{
extern char *__progname;
(void)fprintf(stderr, "Usage: %s [-dxX] file ...\n", __progname);
exit(1);
}