special.c (46081) | special.c (86099) |
---|---|
1/*- 2 * Copyright (c) 1991, 1993, 1994 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 --- 15 unchanged lines hidden (view full) --- 24 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 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. | 1/*- 2 * Copyright (c) 1991, 1993, 1994 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 --- 15 unchanged lines hidden (view full) --- 24 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 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 * $FreeBSD: head/usr.bin/cmp/special.c 86099 2001-11-05 20:33:40Z dwmalone $ 34 * |
|
32 */ 33 34#ifndef lint 35static const char sccsid[] = "@(#)special.c 8.3 (Berkeley) 4/2/94"; 36#endif /* not lint */ 37 38#include <sys/types.h> 39 40#include <err.h> 41#include <stdlib.h> 42#include <stdio.h> 43#include <string.h> 44 45#include "extern.h" 46 47void 48c_special(fd1, file1, skip1, fd2, file2, skip2) 49 int fd1, fd2; | 35 */ 36 37#ifndef lint 38static const char sccsid[] = "@(#)special.c 8.3 (Berkeley) 4/2/94"; 39#endif /* not lint */ 40 41#include <sys/types.h> 42 43#include <err.h> 44#include <stdlib.h> 45#include <stdio.h> 46#include <string.h> 47 48#include "extern.h" 49 50void 51c_special(fd1, file1, skip1, fd2, file2, skip2) 52 int fd1, fd2; |
50 char *file1, *file2; | 53 const char *file1, *file2; |
51 off_t skip1, skip2; 52{ 53 int ch1, ch2; 54 off_t byte, line; 55 FILE *fp1, *fp2; 56 int dfound; 57 58 if ((fp1 = fdopen(fd1, "r")) == NULL) --- 43 unchanged lines hidden --- | 54 off_t skip1, skip2; 55{ 56 int ch1, ch2; 57 off_t byte, line; 58 FILE *fp1, *fp2; 59 int dfound; 60 61 if ((fp1 = fdopen(fd1, "r")) == NULL) --- 43 unchanged lines hidden --- |