Lines 1-15
Link Here
|
1 |
--- copytape.c.orig Fri Oct 23 17:23:06 1998 |
1 |
--- copytape.c.orig |
2 |
+++ copytape.c Fri Oct 23 17:23:46 1998 |
2 |
+++ copytape.c |
3 |
@@ -36,7 +36,7 @@ |
3 |
@@ -28,15 +28,18 @@ |
|
|
4 |
*/ |
4 |
|
5 |
|
5 |
extern int errno; |
6 |
|
|
|
7 |
-#include <stdio.h> |
8 |
#include <sys/types.h> |
9 |
#include <sys/ioctl.h> |
10 |
#include <sys/mtio.h> |
11 |
#include <sys/file.h> |
12 |
|
13 |
-extern int errno; |
14 |
+#include <errno.h> |
15 |
+#include <stdio.h> |
16 |
+#include <stdlib.h> |
17 |
+#include <string.h> |
18 |
+#include <unistd.h> |
6 |
|
19 |
|
7 |
-#define BUFLEN 262144 /* max tape block size */ |
20 |
-#define BUFLEN 262144 /* max tape block size */ |
8 |
+#define BUFLEN (1024*1024) /* max tape block size */ |
21 |
+#define BUFLEN (1024*1024) /* max tape block size */ |
9 |
#define TAPE_MARK -100 /* return record length if we read a |
22 |
#define TAPE_MARK -100 /* return record length if we read a |
10 |
* tape mark */ |
23 |
* tape mark */ |
11 |
#define END_OF_TAPE -101 /* 2 consecutive tape marks */ |
24 |
#define END_OF_TAPE -101 /* 2 consecutive tape marks */ |
12 |
@@ -149,7 +149,7 @@ |
25 |
@@ -149,7 +152,7 @@ |
13 |
len = input(from); |
26 |
len = input(from); |
14 |
} while (len > 0); |
27 |
} while (len > 0); |
15 |
if (len == FORMAT_ERROR) { |
28 |
if (len == FORMAT_ERROR) { |