From: François Pinard Date: Wed, 16 Nov 1994 02:45:23 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=5a64fdfa1f23ab659575116213853553dead1700;p=chaz%2Ftar *** empty log message *** --- diff --git a/src/rmt.c b/src/rmt.c index 01265f1..8337e26 100644 --- a/src/rmt.c +++ b/src/rmt.c @@ -21,10 +21,6 @@ char copyright[] = All rights reserved.\n"; #endif /* not lint */ -#ifndef lint -static char sccsid[] = "@(#)rmt.c 5.4 (Berkeley) 6/29/88"; -#endif /* not lint */ - /* * rmt */ @@ -32,22 +28,37 @@ static char sccsid[] = "@(#)rmt.c 5.4 (Berkeley) 6/29/88"; #include #include #include -#ifdef GENTAPE /* e.g. ISC UNIX */ +#ifdef HAVE_SYS_GENTAPE_H /* e.g., ISC UNIX */ #include #else #include #endif #include -#if defined (i386) && defined (AIX) +#if defined (_I386) && defined (_AIX) #include #endif +#ifdef HAVE_UNISTD_H +#include +#else +long lseek(); +#endif + +#ifdef STDC_HEADERS +#include +#include +#else +extern char *malloc(); +#endif + int tape = -1; char *record; int maxrecsize = -1; char *checkbuf(); +void getstring(); +void error(); #define SSIZE 64 char device[SSIZE]; @@ -57,13 +68,12 @@ extern errno; extern char *sys_errlist[]; char resp[BUFSIZ]; -long lseek(); - FILE *debug; #define DEBUG(f) if (debug) fprintf(debug, f) #define DEBUG1(f,a) if (debug) fprintf(debug, f, a) #define DEBUG2(f,a1,a2) if (debug) fprintf(debug, f, a1, a2) +int main(argc, argv) int argc; char **argv; @@ -209,6 +219,7 @@ ioerror: goto top; } +void getstring(bp) char *bp; { @@ -229,8 +240,6 @@ checkbuf(record, size) char *record; int size; { - extern char *malloc(); - if (size <= maxrecsize) return (record); if (record != 0) @@ -251,6 +260,7 @@ checkbuf(record, size) return (record); } +void error(num) int num; {