home *** CD-ROM | disk | FTP | other *** search
- From: Arnold Robbins <gatech!arnold>
- Subject: small patch to remote tape library
- Newsgroups: mod.sources
- Approved: john@genrad.UUCP
-
- Mod.sources: Volume 2, Issue 36
- Submitted by: Arnold Robbins <gatech!arnold>
-
-
- There was a small bug in the remote tape library just posted, discovered
- by Fred Fish (unisoft!fnf). Here is a context diff.
-
- Arnold Robbins
- arnold@gatech.{CSNET, UUCP}
- ------------------------------------------------------------------------
- *** rmtlib.c Thu Aug 8 11:05:31 1985
- --- nrmtlib.c Thu Aug 8 11:04:11 1985
- ***************
- *** 404,410
- }
-
-
- - #ifdef RMTIOCTL
- /*
- * _rmt_ioctl --- perform raw tape operations remotely
- */
-
- --- 404,409 -----
- }
-
-
- /*
- * _rmt_ioctl --- perform raw tape operations remotely
- */
- ***************
- *** 409,414
- * _rmt_ioctl --- perform raw tape operations remotely
- */
-
- static _rmt_ioctl(fildes, op, arg)
- int fildes, op;
- char *arg;
-
- --- 408,414 -----
- * _rmt_ioctl --- perform raw tape operations remotely
- */
-
- + #ifdef RMTIOCTL
- static _rmt_ioctl(fildes, op, arg)
- int fildes, op;
- char *arg;
- ***************
- *** 488,494
- * The preprocessor can be used to remap these the rmtopen(), etc
- * thus minimizing source changes:
- *
- ! * #ifdef REMOTETAPE
- * # define access rmtaccess
- * # define close rmtclose
- * # define creat rmtcreat
-
- --- 488,494 -----
- * The preprocessor can be used to remap these the rmtopen(), etc
- * thus minimizing source changes:
- *
- ! * #ifdef <something>
- * # define access rmtaccess
- * # define close rmtclose
- * # define creat rmtcreat
- ***************
- *** 680,685
- {
- if (isrmt (fildes))
- {
- errno = EOPNOTSUPP;
- return (-1); /* For now (fnf) */
- }
-
- --- 680,688 -----
- {
- if (isrmt (fildes))
- {
- + #ifdef RMTIOCTL
- + return (_rmt_ioctl (fildes, request, arg));
- + #else
- errno = EOPNOTSUPP;
- return (-1); /* For now (fnf) */
- #endif
- ***************
- *** 682,687
- {
- errno = EOPNOTSUPP;
- return (-1); /* For now (fnf) */
- }
- else
- {
-
- --- 685,691 -----
- #else
- errno = EOPNOTSUPP;
- return (-1); /* For now (fnf) */
- + #endif
- }
- else
- {
-
-