summaryrefslogtreecommitdiff
path: root/emulators/hercules/files/patch-tapecopy.c
diff options
context:
space:
mode:
authorErwin Lansing <erwin@FreeBSD.org>2006-02-04 22:19:02 +0000
committerErwin Lansing <erwin@FreeBSD.org>2006-02-04 22:19:02 +0000
commitbc93e674cc39861229779e42f511322d66226934 (patch)
treef3c15c64755c67ca22b05977be783896f071f09d /emulators/hercules/files/patch-tapecopy.c
parentUpdate to 1.63.2 and make fetchable again. (diff)
- Update to 3.03.1 [1]
- Hand maintainership to bz [1][2] - Convert to OPTIONS [1] - Clean Makefile a bit [3] - Mark IGNORE on 4.x [3] This also fixes the crash reported in: PR: 88535 Submitted by: trasz <trasz@pin.if.uz.zgora.pl>, bz [1], erwin [3] Approved by: phk (previous maintainer) [2]
Notes
Notes: svn path=/head/; revision=155222
Diffstat (limited to 'emulators/hercules/files/patch-tapecopy.c')
-rw-r--r--emulators/hercules/files/patch-tapecopy.c63
1 files changed, 0 insertions, 63 deletions
diff --git a/emulators/hercules/files/patch-tapecopy.c b/emulators/hercules/files/patch-tapecopy.c
deleted file mode 100644
index 15eb57e1451a..000000000000
--- a/emulators/hercules/files/patch-tapecopy.c
+++ /dev/null
@@ -1,63 +0,0 @@
---- tapecopy.c Sat Feb 1 20:34:57 2003
-+++ ../work/hercules-2.17.1/tapecopy.c Mon Apr 28 21:21:15 2003
-@@ -42,6 +42,7 @@
- static BYTE hdrlbl[] = "\xC8\xC4\xD9"; /* EBCDIC characters "HDR" */
- static BYTE eoflbl[] = "\xC5\xD6\xC6"; /* EBCDIC characters "EOF" */
- static BYTE eovlbl[] = "\xC5\xD6\xE5"; /* EBCDIC characters "EOV" */
-+#ifdef GNU_MTIO_SUPPORT
- static struct mt_tape_info tapeinfo[] = MT_TAPE_INFO;
- static struct mt_tape_info densinfo[] = {
- {0x01, "NRZI (800 bpi)"},
-@@ -69,6 +70,7 @@
- {0x8C, "EXB-8505 compressed"},
- {0x90, "EXB-8205 compressed"},
- {0, NULL}};
-+#endif
- static BYTE buf[65500];
-
- /*-------------------------------------------------------------------*/
-@@ -76,6 +78,7 @@
- /*-------------------------------------------------------------------*/
- static void print_status (BYTE *devname, long stat)
- {
-+#ifdef GNU_MTIO_SUPPORT
- printf ("HHCTC015I %s status: %8.8lX", devname, stat);
- if (GMT_EOF(stat)) printf (" EOF");
- if (GMT_BOT(stat)) printf (" BOT");
-@@ -89,6 +92,7 @@
- if (GMT_D_800(stat)) printf (" 800");
- if (GMT_DR_OPEN(stat)) printf (" NOTAPE");
- printf ("\n");
-+#endif
-
- } /* end function print_status */
-
-@@ -109,10 +113,12 @@
- return -1;
- }
-
-+#ifdef GNU_MTIO_SUPPORT
- print_status (devname, stblk.mt_gstat);
-
- if (GMT_EOD(stblk.mt_gstat)) return 1;
- if (GMT_EOT(stblk.mt_gstat)) return 1;
-+#endif
-
- return 0;
- } /* end function print_status */
-@@ -205,6 +211,7 @@
- exit (7);
- }
-
-+#ifdef GNU_MTIO_SUPPORT
- /* Display tape status information */
- for (i = 0; tapeinfo[i].t_type != 0
- && tapeinfo[i].t_type != stblk.mt_type; i++);
-@@ -233,6 +240,7 @@
-
- /* Set the tape device to process variable length blocks */
- opblk.mt_op = MTSETBLK;
-+#endif
- opblk.mt_count = 0;
- rc = ioctl (devfd, MTIOCTOP, (char*)&opblk);
- if (rc < 0)