upgrade to 2.16.5
PR: 42333 Submitted by: maintainer
This commit is contained in:
parent
e605598709
commit
6528a3f9ff
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=67766
@ -6,36 +6,33 @@
|
||||
#
|
||||
|
||||
PORTNAME= hercules
|
||||
PORTVERSION= 2.15
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 2.16.5
|
||||
CATEGORIES= emulators
|
||||
MASTER_SITES= http://www.conmicro.cx/hercules/
|
||||
|
||||
MAINTAINER= adam@vectors.cx
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USE_REINPLACE= yes
|
||||
|
||||
post-patch:
|
||||
|
||||
@${PERL} -pi -e 's@lpthread@pthread@g' ${WRKSRC}/configure
|
||||
@${REINPLACE_CMD} -e 's@-lpthread@${PTHREAD_LIBS}@g' ${WRKSRC}/configure
|
||||
|
||||
do-install:
|
||||
|
||||
@for i in hercules dasdinit dasdisup dasdload dasdls dasdpdsu \
|
||||
tapecopy tapemap tapesplt cckd2ckd cckdcdsk ckd2cckd \
|
||||
cckdcomp cckdswap hetget hetinit hetmap hetupd dmap2hrc; \
|
||||
do \
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/$$i ${PREFIX}/bin; \
|
||||
done
|
||||
.for i in hercules dasdinit dasdisup dasdload dasdls dasdpdsu \
|
||||
tapecopy tapemap tapesplt cckd2ckd cckdcdsk ckd2cckd \
|
||||
cckdcomp cckdswap hetget hetinit hetmap hetupd dmap2hrc
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/$i ${PREFIX}/bin
|
||||
.endfor
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${PREFIX}/share/doc/hercules
|
||||
@${RM} -f ${WRKSRC}/html/Makefile*
|
||||
@for i in ${WRKSRC}/hercules.cnf ${WRKSRC}/html/* ; \
|
||||
do \
|
||||
${INSTALL_DATA} $$i ${PREFIX}/share/doc/hercules; \
|
||||
done
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
.for i in ../hercules.cnf cckddasd.html hercconf.html hercfaq.html \
|
||||
hercinst.html herclic.html hercload.html hercnew.html herctcp.html \
|
||||
hercules.css index.html
|
||||
${INSTALL_DATA} ${WRKSRC}/html/$i ${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
@${CAT} pkg-message
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1 +1 @@
|
||||
MD5 (hercules-2.15.tar.gz) = 8eb98b2b5663607fda075fc57f019172
|
||||
MD5 (hercules-2.16.5.tar.gz) = 5c23268223e2e74a08fd7d148a159834
|
||||
|
@ -1,57 +0,0 @@
|
||||
diff -uNr ckddasd.c
|
||||
--- ckddasd.c Tue Nov 20 17:39:46 2001
|
||||
+++ ckddasd.c Tue Jan 15 22:03:48 2002
|
||||
@@ -786,7 +786,7 @@
|
||||
{
|
||||
/* if lazy write, write the last track image */
|
||||
if (dev->ckdlazywrt)
|
||||
- ckd_lseek (dev, -1, -1, -1);
|
||||
+ ckd_lseek (dev, -1, (off_t)-1, -1);
|
||||
|
||||
/* free the cache */
|
||||
for (i = 0; i < dev->ckdcachenbr; i++)
|
||||
@@ -1240,7 +1240,7 @@
|
||||
|
||||
DEVTRACE("ckddasd: skipping %d bytes\n", skiplen);
|
||||
|
||||
- rc = ckd_lseek (dev, dev->fd, skiplen, SEEK_CUR);
|
||||
+ rc = ckd_lseek (dev, dev->fd, (off_t)skiplen, SEEK_CUR);
|
||||
if (rc == -1)
|
||||
{
|
||||
#ifdef OPTION_SYNCIO
|
||||
@@ -1734,7 +1734,7 @@
|
||||
ckdlen = CKDDASD_RECHDR_SIZE + keylen + datalen;
|
||||
|
||||
/* Determine the current position in the file */
|
||||
- curpos = ckd_lseek (dev, dev->fd, 0, SEEK_CUR);
|
||||
+ curpos = ckd_lseek (dev, dev->fd, (off_t)0, SEEK_CUR);
|
||||
if (curpos == -1)
|
||||
{
|
||||
#ifdef OPTION_SYNCIO
|
||||
@@ -1782,7 +1782,7 @@
|
||||
}
|
||||
|
||||
/* Backspace over end of track marker */
|
||||
- rc = ckd_lseek (dev, dev->fd, -(CKDDASD_RECHDR_SIZE), SEEK_CUR);
|
||||
+ rc = ckd_lseek (dev, dev->fd, -(off_t)(CKDDASD_RECHDR_SIZE), SEEK_CUR);
|
||||
if (rc == -1)
|
||||
{
|
||||
#ifdef OPTION_SYNCIO
|
||||
@@ -1854,7 +1854,7 @@
|
||||
ckdlen = CKDDASD_RECHDR_SIZE + keylen + datalen;
|
||||
|
||||
/* Determine the current position in the file */
|
||||
- curpos = ckd_lseek (dev, dev->fd, 0, SEEK_CUR);
|
||||
+ curpos = ckd_lseek (dev, dev->fd, (off_t)0, SEEK_CUR);
|
||||
if (curpos == -1)
|
||||
{
|
||||
#ifdef OPTION_SYNCIO
|
||||
@@ -1938,7 +1938,7 @@
|
||||
}
|
||||
|
||||
/* Backspace over end of track marker */
|
||||
- rc = ckd_lseek (dev, dev->fd, -(CKDDASD_RECHDR_SIZE), SEEK_CUR);
|
||||
+ rc = ckd_lseek (dev, dev->fd, -(off_t)(CKDDASD_RECHDR_SIZE), SEEK_CUR);
|
||||
if (rc == -1)
|
||||
{
|
||||
#ifdef OPTION_SYNCIO
|
@ -1,12 +0,0 @@
|
||||
--- Makefile.am Tue Oct 30 16:44:39 2001
|
||||
+++ Makefile.am Mon Mar 11 02:44:03 2002
|
||||
@@ -93,8 +93,8 @@
|
||||
|
||||
tar: dist
|
||||
|
||||
+install-exec-local:
|
||||
if SETUID_HERCIFC
|
||||
-install-exec-local:
|
||||
chown root $(DESTDIR)$(bindir)/hercifc
|
||||
chmod 0751 $(DESTDIR)$(bindir)/hercifc
|
||||
chmod +s $(DESTDIR)$(bindir)/hercifc
|
@ -1,50 +0,0 @@
|
||||
diff -uNr configure.ac
|
||||
--- configure.ac Wed Dec 19 07:20:00 2001
|
||||
+++ configure.ac Thu Jan 17 22:50:57 2002
|
||||
@@ -72,6 +72,19 @@
|
||||
|
||||
AM_CONDITIONAL(BUILD_FTHREADS, [test x$build_fthreads = xtrue])
|
||||
|
||||
+dnl AC_MSG_NOTICE([Checking to see if -pthread is needed to compile])
|
||||
+
|
||||
+AC_MSG_CHECKING([wether ${CC-cc} accepts -pthread])
|
||||
+
|
||||
+echo 'void f(){}' >conftest.c
|
||||
+if test -z "`${CC-cc} -pthread -c conftest.c 2>&1`"; then
|
||||
+ LIBS="-pthread $LIBS"
|
||||
+ AC_MSG_RESULT([yes])
|
||||
+else
|
||||
+ AC_MSG_RESULT([no])
|
||||
+fi
|
||||
+rm -f conftest*
|
||||
+
|
||||
# Headers
|
||||
AC_CHECK_HEADERS(byteswap.h)
|
||||
AC_CHECK_HEADER(fenv.h,,[AC_DEFINE([NO_IEEE_SUPPORT])])
|
||||
@@ -105,6 +118,16 @@
|
||||
[AC_DEFINE([HAVE_U_INT])],
|
||||
[AC_MSG_ERROR([Unable to find fixed-size data types])] )] )
|
||||
|
||||
+dnl AC_MSG_NOTICE([Checking for SCSI tape support and what type])
|
||||
+AC_CHECK_HEADER(sys/mtio.h,
|
||||
+ [AC_DEFINE([HAVE_MTIO_H])])
|
||||
+
|
||||
+AC_TRY_COMPILE([#include mtio.h],
|
||||
+ [mtget test;
|
||||
+ int result;
|
||||
+ result = test.mt_gstat; ],
|
||||
+ [AC_DEFINE([GNU_MTIO_SUPPORT])])
|
||||
+
|
||||
# Compiler characteristics
|
||||
|
||||
AC_C_BIGENDIAN
|
||||
@@ -306,5 +329,9 @@
|
||||
[Define to provide additional information about this build])
|
||||
AH_TEMPLATE([DEBUG],
|
||||
[Define to enable extra debugging code])
|
||||
+AH_TEMPLATE([HAVE_MTIO_H],
|
||||
+ [Define if your system has sys/mtio.h])
|
||||
+AH_TEMPLATE([GNU_MTIO_SUPPORT],
|
||||
+ [Define if you have the GNU version of mtio.h (Linux)])
|
||||
|
||||
AC_OUTPUT(Makefile util/Makefile html/Makefile)
|
@ -1,11 +0,0 @@
|
||||
diff -uNr hercules.h
|
||||
--- hercules.h Wed Dec 19 07:18:17 2001
|
||||
+++ hercules.h Tue Jan 15 20:26:56 2002
|
||||
@@ -215,6 +215,7 @@
|
||||
pthread_cond_timedwait((pcond),(plk),(timeout))
|
||||
#define initialize_detach_attr(pat) \
|
||||
pthread_attr_init((pat)); \
|
||||
+ pthread_attr_setstacksize((pat),1048576); \
|
||||
pthread_attr_setdetachstate((pat),PTHREAD_CREATE_DETACHED)
|
||||
typedef void*THREAD_FUNC(void*);
|
||||
#define create_thread(ptid,pat,fn,arg) \
|
@ -1,18 +0,0 @@
|
||||
diff -uNr version.c
|
||||
--- version.c Thu Nov 29 08:05:47 2001
|
||||
+++ version.c Thu Jan 17 14:10:55 2002
|
||||
@@ -77,6 +77,14 @@
|
||||
"No HET BZIP2 support",
|
||||
#endif
|
||||
|
||||
+#if defined(GNU_MTIO_SUPPORT)
|
||||
+ "Using GNU tape handling",
|
||||
+#elif defined(HAVE_MTIO_H)
|
||||
+ "Using generic Unix tape handling",
|
||||
+#else
|
||||
+ "No SCSI tape support",
|
||||
+#endif
|
||||
+
|
||||
#if defined(CUSTOM_BUILD_STRING)
|
||||
CUSTOM_BUILD_STRING,
|
||||
#endif
|
12
emulators/hercules/files/patch-feature.h
Normal file
12
emulators/hercules/files/patch-feature.h
Normal file
@ -0,0 +1,12 @@
|
||||
--- feature.h.orig Mon Sep 2 11:36:09 2002
|
||||
+++ feature.h Mon Sep 2 11:36:55 2002
|
||||
@@ -479,4 +479,9 @@
|
||||
#define XSTORE_PAGEMASK 0x7FFFF000
|
||||
#endif
|
||||
|
||||
+#if defined(__FreeBSD__)
|
||||
+ #define HAVE_MTIO_H
|
||||
+#else
|
||||
+ #define GNU_MTIO_SUPPORT
|
||||
+#endif
|
||||
/* end of FEATURES.H */
|
12
emulators/hercules/files/patch-hercules.h
Normal file
12
emulators/hercules/files/patch-hercules.h
Normal file
@ -0,0 +1,12 @@
|
||||
--- hercules.h.orig Mon Sep 2 11:43:46 2002
|
||||
+++ hercules.h Mon Sep 2 11:44:56 2002
|
||||
@@ -333,6 +333,9 @@
|
||||
BYTE *iobuf, BYTE *more, BYTE *unitstat, U16 *residual);
|
||||
typedef int DEVCF (struct _DEVBLK *dev);
|
||||
|
||||
+#if defined(HAVE_MTIO_H)
|
||||
+ #include <sys/mtio.h>
|
||||
+#endif
|
||||
|
||||
/*-------------------------------------------------------------------*/
|
||||
/* Structure definition for the Vector Facility */
|
@ -1,6 +1,5 @@
|
||||
diff -uNr tapecopy.c
|
||||
--- tapecopy.c Thu Nov 29 07:53:46 2001
|
||||
+++ tapecopy.c Thu Jan 17 14:04:09 2002
|
||||
--- tapecopy.c.orig Mon Sep 2 11:00:59 2002
|
||||
+++ tapecopy.c Mon Sep 2 11:03:21 2002
|
||||
@@ -32,6 +32,7 @@
|
||||
static BYTE hdrlbl[] = "\xC8\xC4\xD9"; /* EBCDIC characters "HDR" */
|
||||
static BYTE eoflbl[] = "\xC5\xD6\xC6"; /* EBCDIC characters "EOF" */
|
||||
@ -46,7 +45,7 @@ diff -uNr tapecopy.c
|
||||
|
||||
return 0;
|
||||
} /* end function print_status */
|
||||
@@ -174,6 +180,7 @@
|
||||
@@ -188,6 +194,7 @@
|
||||
exit (7);
|
||||
}
|
||||
|
||||
@ -54,7 +53,7 @@ diff -uNr tapecopy.c
|
||||
/* Display tape status information */
|
||||
for (i = 0; tapeinfo[i].t_type != 0
|
||||
&& tapeinfo[i].t_type != stblk.mt_type; i++);
|
||||
@@ -201,6 +208,7 @@
|
||||
@@ -215,6 +222,7 @@
|
||||
|
||||
/* Set the tape device to process variable length blocks */
|
||||
opblk.mt_op = MTSETBLK;
|
@ -1,7 +1,6 @@
|
||||
diff -uNr tapedev.c
|
||||
--- tapedev.c Tue Nov 20 17:39:47 2001
|
||||
+++ tapedev.c Thu Jan 17 15:07:35 2002
|
||||
@@ -194,6 +194,7 @@
|
||||
--- tapedev.c.orig Wed Jul 3 13:21:52 2002
|
||||
+++ tapedev.c Mon Sep 2 11:43:24 2002
|
||||
@@ -195,6 +195,7 @@
|
||||
/*-------------------------------------------------------------------*/
|
||||
/* Static data areas */
|
||||
/*-------------------------------------------------------------------*/
|
||||
@ -9,7 +8,7 @@ diff -uNr tapedev.c
|
||||
static struct mt_tape_info tapeinfo[] = MT_TAPE_INFO;
|
||||
static struct mt_tape_info densinfo[] = {
|
||||
{0x01, "NRZI (800 bpi)"},
|
||||
@@ -221,6 +222,7 @@
|
||||
@@ -222,6 +223,7 @@
|
||||
{0x8C, "EXB-8505 compressed"},
|
||||
{0x90, "EXB-8205 compressed"},
|
||||
{0, NULL}};
|
||||
@ -17,7 +16,7 @@ diff -uNr tapedev.c
|
||||
|
||||
static PARSER ptab[] =
|
||||
{
|
||||
@@ -1142,6 +1144,7 @@
|
||||
@@ -1143,6 +1145,7 @@
|
||||
/*-------------------------------------------------------------------*/
|
||||
static U32 status_scsitape (DEVBLK *dev)
|
||||
{
|
||||
@ -25,7 +24,7 @@ diff -uNr tapedev.c
|
||||
U32 stat; /* Tape status bits */
|
||||
int rc; /* Return code */
|
||||
struct mtget stblk; /* Area for MTIOCGET ioctl */
|
||||
@@ -1158,6 +1161,7 @@
|
||||
@@ -1159,6 +1162,7 @@
|
||||
dev->filename, strerror(errno));
|
||||
return 0;
|
||||
}
|
||||
@ -33,12 +32,12 @@ diff -uNr tapedev.c
|
||||
stat = stblk.mt_gstat;
|
||||
|
||||
/* Display tape status */
|
||||
@@ -1190,10 +1194,14 @@
|
||||
@@ -1191,10 +1195,14 @@
|
||||
dev->prvblkpos = -1;
|
||||
dev->blockid = 0;
|
||||
}
|
||||
+#else
|
||||
+ stat = 0;
|
||||
+ stat = 0;
|
||||
+#endif
|
||||
|
||||
/* Return tape status */
|
||||
@ -48,7 +47,7 @@ diff -uNr tapedev.c
|
||||
} /* end function status_scsitape */
|
||||
|
||||
/*-------------------------------------------------------------------*/
|
||||
@@ -1204,6 +1212,7 @@
|
||||
@@ -1205,6 +1213,7 @@
|
||||
/*-------------------------------------------------------------------*/
|
||||
static int open_scsitape (DEVBLK *dev, BYTE *unitstat)
|
||||
{
|
||||
@ -56,7 +55,7 @@ diff -uNr tapedev.c
|
||||
int rc; /* Return code */
|
||||
int i; /* Array subscript */
|
||||
struct mtop opblk; /* Area for MTIOCTOP ioctl */
|
||||
@@ -1248,6 +1257,7 @@
|
||||
@@ -1249,6 +1258,7 @@
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -64,7 +63,7 @@ diff -uNr tapedev.c
|
||||
/* Intervention required if no tape is mounted */
|
||||
if (GMT_DR_OPEN(stblk.mt_gstat))
|
||||
{
|
||||
@@ -1283,6 +1293,7 @@
|
||||
@@ -1284,6 +1294,7 @@
|
||||
|
||||
/* Set the tape device to process variable length blocks */
|
||||
opblk.mt_op = MTSETBLK;
|
||||
@ -72,20 +71,20 @@ diff -uNr tapedev.c
|
||||
opblk.mt_count = 0;
|
||||
rc = ioctl (dev->fd, MTIOCTOP, (char*)&opblk);
|
||||
if (rc < 0)
|
||||
@@ -1311,6 +1322,12 @@
|
||||
@@ -1312,6 +1323,12 @@
|
||||
|
||||
return 0;
|
||||
|
||||
+#else
|
||||
+
|
||||
+ logmsg ("HHC286I SCSI Support is disabled\n");
|
||||
+ return -1;
|
||||
+ logmsg ("HHC286I SCSI Support is disabled\n");
|
||||
+ return -1
|
||||
+
|
||||
+#endif
|
||||
} /* end function open_scsitape */
|
||||
|
||||
/*-------------------------------------------------------------------*/
|
||||
@@ -1323,6 +1340,7 @@
|
||||
@@ -1324,6 +1341,7 @@
|
||||
/*-------------------------------------------------------------------*/
|
||||
static int read_scsitape (DEVBLK *dev, BYTE *buf, BYTE *unitstat)
|
||||
{
|
||||
@ -93,20 +92,20 @@ diff -uNr tapedev.c
|
||||
int rc; /* Return code */
|
||||
|
||||
/* Read data block from SCSI tape device */
|
||||
@@ -1346,6 +1364,12 @@
|
||||
@@ -1347,6 +1365,12 @@
|
||||
/* Return block length or zero if tapemark */
|
||||
return rc;
|
||||
|
||||
+#else
|
||||
+
|
||||
+ logmsg ("HHC286I SCSI Support is disabled\n");
|
||||
+ return -1;
|
||||
+ logmsg ("HHC286I SCSI Support is disabled\n");
|
||||
+ return -1;
|
||||
+
|
||||
+#endif
|
||||
} /* end function read_scsitape */
|
||||
|
||||
/*-------------------------------------------------------------------*/
|
||||
@@ -1357,6 +1381,7 @@
|
||||
@@ -1358,6 +1382,7 @@
|
||||
static int write_scsitape (DEVBLK *dev, BYTE *buf, U16 len,
|
||||
BYTE *unitstat)
|
||||
{
|
||||
@ -114,20 +113,20 @@ diff -uNr tapedev.c
|
||||
int rc; /* Return code */
|
||||
|
||||
/* Write data block to SCSI tape device */
|
||||
@@ -1376,6 +1401,12 @@
|
||||
@@ -1377,6 +1402,12 @@
|
||||
/* Return normal status */
|
||||
return 0;
|
||||
|
||||
+#else
|
||||
+
|
||||
+ logmsg ("HHC286I SCSI Support is disabled\n");
|
||||
+ return -1;
|
||||
+ logmsg ("HHC286I SCSI Support is disabled\n");
|
||||
+ return -1;
|
||||
+
|
||||
+#endif
|
||||
} /* end function write_scsitape */
|
||||
|
||||
/*-------------------------------------------------------------------*/
|
||||
@@ -1386,6 +1417,7 @@
|
||||
@@ -1387,6 +1418,7 @@
|
||||
/*-------------------------------------------------------------------*/
|
||||
static int write_scsimark (DEVBLK *dev, BYTE *unitstat)
|
||||
{
|
||||
@ -135,20 +134,20 @@ diff -uNr tapedev.c
|
||||
int rc; /* Return code */
|
||||
struct mtop opblk; /* Area for MTIOCTOP ioctl */
|
||||
|
||||
@@ -1408,6 +1440,12 @@
|
||||
@@ -1409,6 +1441,12 @@
|
||||
/* Return normal status */
|
||||
return 0;
|
||||
|
||||
+#else
|
||||
+
|
||||
+ logmsg ("HHC286I SCSI Support is disabled\n");
|
||||
+ return -1;
|
||||
+ logmsg ("HHC286I SCSI Support is disabled\n");
|
||||
+ return -1;
|
||||
+
|
||||
+#endif
|
||||
} /* end function write_scsimark */
|
||||
|
||||
/*-------------------------------------------------------------------*/
|
||||
@@ -1420,6 +1458,7 @@
|
||||
@@ -1421,6 +1459,7 @@
|
||||
/*-------------------------------------------------------------------*/
|
||||
static int fsb_scsitape (DEVBLK *dev, BYTE *unitstat)
|
||||
{
|
||||
@ -156,7 +155,7 @@ diff -uNr tapedev.c
|
||||
int rc; /* Return code */
|
||||
int fsrerrno; /* Value of errno after MTFSR*/
|
||||
U32 stat; /* Tape status bits */
|
||||
@@ -1434,6 +1473,7 @@
|
||||
@@ -1435,6 +1474,7 @@
|
||||
/* Obtain tape status after forward space */
|
||||
stat = status_scsitape (dev);
|
||||
|
||||
@ -164,7 +163,7 @@ diff -uNr tapedev.c
|
||||
/* If I/O error and status indicates EOF, then a tapemark
|
||||
was detected, so increment the file number and return 0 */
|
||||
if (rc < 0 && fsrerrno == EIO && GMT_EOF(stat))
|
||||
@@ -1442,6 +1482,7 @@
|
||||
@@ -1443,6 +1483,7 @@
|
||||
dev->blockid++;
|
||||
return 0;
|
||||
}
|
||||
@ -172,20 +171,20 @@ diff -uNr tapedev.c
|
||||
|
||||
/* Handle MTFSR error condition */
|
||||
if (rc < 0)
|
||||
@@ -1460,6 +1501,12 @@
|
||||
@@ -1461,6 +1502,12 @@
|
||||
/* Return +1 to indicate forward space successful */
|
||||
return +1;
|
||||
|
||||
+#else
|
||||
+
|
||||
+ logmsg ("HHC286I SCSI Support is disabled\n");
|
||||
+ return -1;
|
||||
+ logmsg ("HHC286I SCSI Support is disabled\n");
|
||||
+ return -1;
|
||||
+
|
||||
+#endif
|
||||
} /* end function fsb_scsitape */
|
||||
|
||||
/*-------------------------------------------------------------------*/
|
||||
@@ -1472,6 +1519,7 @@
|
||||
@@ -1473,6 +1520,7 @@
|
||||
/*-------------------------------------------------------------------*/
|
||||
static int bsb_scsitape (DEVBLK *dev, BYTE *unitstat)
|
||||
{
|
||||
@ -193,7 +192,7 @@ diff -uNr tapedev.c
|
||||
int rc; /* Return code */
|
||||
int bsrerrno; /* Value of errno after MTBSR*/
|
||||
U32 stat; /* Tape status bits */
|
||||
@@ -1480,6 +1528,7 @@
|
||||
@@ -1481,6 +1529,7 @@
|
||||
/* Obtain tape status before backward space */
|
||||
stat = status_scsitape (dev);
|
||||
|
||||
@ -201,7 +200,7 @@ diff -uNr tapedev.c
|
||||
/* Unit check if already at start of tape */
|
||||
if (GMT_BOT(stat))
|
||||
{
|
||||
@@ -1488,6 +1537,7 @@
|
||||
@@ -1489,6 +1538,7 @@
|
||||
*unitstat = CSW_CE | CSW_DE | CSW_UC;
|
||||
return -1;
|
||||
}
|
||||
@ -209,20 +208,20 @@ diff -uNr tapedev.c
|
||||
|
||||
/* Backspace block on SCSI tape */
|
||||
opblk.mt_op = MTBSR;
|
||||
@@ -1526,6 +1576,12 @@
|
||||
@@ -1527,6 +1577,12 @@
|
||||
/* Return +1 to indicate backspace successful */
|
||||
return +1;
|
||||
|
||||
+#else
|
||||
+
|
||||
+ logmsg ("HHC286I SCSI Support is disabled\n");
|
||||
+ return -1;
|
||||
+ logmsg ("HHC286I SCSI Support is disabled\n");
|
||||
+ return -1;
|
||||
+
|
||||
+#endif
|
||||
} /* end function bsb_scsitape */
|
||||
|
||||
/*-------------------------------------------------------------------*/
|
||||
@@ -1537,6 +1593,7 @@
|
||||
@@ -1538,6 +1594,7 @@
|
||||
/*-------------------------------------------------------------------*/
|
||||
static int fsf_scsitape (DEVBLK *dev, BYTE *unitstat)
|
||||
{
|
||||
@ -230,20 +229,20 @@ diff -uNr tapedev.c
|
||||
int rc; /* Return code */
|
||||
struct mtop opblk; /* Area for MTIOCTOP ioctl */
|
||||
|
||||
@@ -1562,6 +1619,12 @@
|
||||
@@ -1563,6 +1620,12 @@
|
||||
/* Return normal status */
|
||||
return 0;
|
||||
|
||||
+#else
|
||||
+
|
||||
+ logmsg ("HHC286I SCSI Support is disabled\n");
|
||||
+ return -1;
|
||||
+ logmsg ("HHC286I SCSI Support is disabled\n");
|
||||
+ return -1;
|
||||
+
|
||||
+#endif
|
||||
} /* end function fsf_scsitape */
|
||||
|
||||
/*-------------------------------------------------------------------*/
|
||||
@@ -1573,6 +1636,7 @@
|
||||
@@ -1574,6 +1637,7 @@
|
||||
/*-------------------------------------------------------------------*/
|
||||
static int bsf_scsitape (DEVBLK *dev, BYTE *unitstat)
|
||||
{
|
||||
@ -251,20 +250,20 @@ diff -uNr tapedev.c
|
||||
int rc; /* Return code */
|
||||
struct mtop opblk; /* Area for MTIOCTOP ioctl */
|
||||
|
||||
@@ -1599,6 +1663,12 @@
|
||||
@@ -1600,6 +1664,12 @@
|
||||
/* Return normal status */
|
||||
return 0;
|
||||
|
||||
+#else
|
||||
+
|
||||
+ logmsg ("HHC286I SCSI Support is disabled\n");
|
||||
+ return -1;
|
||||
+ logmsg("HHC286I SCSI Support is disabled\n");
|
||||
+ return -1;
|
||||
+
|
||||
+#endif
|
||||
} /* end function bsf_scsitape */
|
||||
|
||||
/*-------------------------------------------------------------------*/
|
||||
@@ -2725,7 +2795,9 @@
|
||||
@@ -2726,7 +2796,9 @@
|
||||
|
||||
case TAPEDEVT_SCSITAPE:
|
||||
stat = status_scsitape (dev);
|
17
emulators/hercules/files/patch-version.c
Normal file
17
emulators/hercules/files/patch-version.c
Normal file
@ -0,0 +1,17 @@
|
||||
--- version.c.orig Mon Sep 2 11:15:53 2002
|
||||
+++ version.c Mon Sep 2 11:17:51 2002
|
||||
@@ -106,6 +106,14 @@
|
||||
"No HET BZIP2 support",
|
||||
#endif
|
||||
|
||||
+#if defined(GNU_MTIO_SUPPORT)
|
||||
+ "Using GNU tape handling",
|
||||
+#elif defined(HAVE_MTIO_H)
|
||||
+ "Using generic Unix tape handling",
|
||||
+#else
|
||||
+ "No SCSI tape support",
|
||||
+#endif
|
||||
+
|
||||
" "
|
||||
|
||||
};
|
Loading…
Reference in New Issue
Block a user