View | Details | Raw Unified | Return to bug 281781
Collapse All | Expand All

(-)b/sysutils/copytape/Makefile (-1 / +1 lines)
Lines 1-6 Link Here
1
PORTNAME=		copytape
1
PORTNAME=		copytape
2
PORTVERSION=		1.0
2
PORTVERSION=		1.0
3
PORTREVISION=	1
3
PORTREVISION=		2
4
CATEGORIES=		sysutils
4
CATEGORIES=		sysutils
5
MASTER_SITES=		COMP_SOURCES/unix/volume10
5
MASTER_SITES=		COMP_SOURCES/unix/volume10
6
DISTNAME=		copytape
6
DISTNAME=		copytape
(-)b/sysutils/copytape/files/patch-copytape.c (-5 / +18 lines)
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) {
(-)a/sysutils/copytape/files/patch-copytape.c_2 (-12 lines)
Removed Link Here
1
--- copytape.c.orig    2013-10-16 06:54:00.000000000 -0400
2
+++ copytape.c 2013-10-16 06:54:13.000000000 -0400
3
@@ -29,6 +29,8 @@
4
5
6
 #include <stdio.h>
7
+#include <stdlib.h>
8
+#include <string.h>
9
 #include <sys/types.h>
10
 #include <sys/ioctl.h>
11
 #include <sys/mtio.h>
12
- 

Return to bug 281781