diff options
Diffstat (limited to 'usr.bin/split/split.c')
-rw-r--r-- | usr.bin/split/split.c | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/usr.bin/split/split.c b/usr.bin/split/split.c index e538da1..bb45e02 100644 --- a/usr.bin/split/split.c +++ b/usr.bin/split/split.c @@ -29,19 +29,6 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> -#ifndef lint -__COPYRIGHT("@(#) Copyright (c) 1987, 1993, 1994\ - The Regents of the University of California. All rights reserved."); -#endif /* not lint */ - -#ifndef lint -#if 0 -static char sccsid[] = "@(#)split.c 8.3 (Berkeley) 4/25/94"; -#endif -__RCSID("$NetBSD: split.c,v 1.27 2017/01/10 21:14:13 christos Exp $"); -#endif /* not lint */ - #include <sys/param.h> #include <sys/stat.h> @@ -51,10 +38,13 @@ __RCSID("$NetBSD: split.c,v 1.27 2017/01/10 21:14:13 christos Exp $"); #include <fcntl.h> #include <stdio.h> #include <stdlib.h> +#include <bsd/stdlib.h> #include <string.h> #include <unistd.h> #define DEFLINE 1000 /* Default num lines per file. */ +#define MAXBSIZE (64*1024) +#define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) static int file_open; /* If a file open. */ static int ifd = STDIN_FILENO, ofd = -1; /* Input/output file descriptors. */ @@ -62,10 +52,10 @@ static char *fname; /* File name prefix. */ static size_t sfxlen = 2; /* suffix length. */ static void newfile(void); -static void split1(off_t, int) __dead; -static void split2(off_t) __dead; -static void split3(off_t) __dead; -static void usage(void) __dead; +static void split1(off_t, int); +static void split2(off_t); +static void split3(off_t); +static void usage(void); static size_t bigwrite(int, void const *, size_t); int |