misc.c (50477) | misc.c (87701) |
---|---|
1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 | 1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 |
34#include <sys/cdefs.h> 35 36__FBSDID("$FreeBSD: head/usr.bin/tset/misc.c 87701 2001-12-11 23:29:45Z markm $"); 37 |
|
34#ifndef lint | 38#ifndef lint |
35#if 0 36static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 6/9/93"; | 39static const char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 6/9/93"; |
37#endif | 40#endif |
38static const char rcsid[] = 39 "$FreeBSD: head/usr.bin/tset/misc.c 50477 1999-08-28 01:08:13Z peter $"; 40#endif /* not lint */ | |
41 | 41 |
42#include <fcntl.h> | |
43#include <err.h> | 42#include <err.h> |
44#include <unistd.h> | 43#include <fcntl.h> |
45#include <stdio.h> 46#include <stdlib.h> 47#include <string.h> | 44#include <stdio.h> 45#include <stdlib.h> 46#include <string.h> |
47#include <unistd.h> 48 |
|
48#include "extern.h" 49 50void 51cat(file) 52 char *file; 53{ 54 register int fd, nr, nw; 55 char buf[1024]; --- 18 unchanged lines hidden --- | 49#include "extern.h" 50 51void 52cat(file) 53 char *file; 54{ 55 register int fd, nr, nw; 56 char buf[1024]; --- 18 unchanged lines hidden --- |