Relay-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site seismo.UUCP Posting-Version: version B 2.10.2 9/3/84; site genrad.UUCP Path: seismo!harvard!talcott!panda!genrad!sources-request From: sources-request@genrad.UUCP Newsgroups: mod.sources Subject: small patch to remote tape library Message-ID: <1009@genrad.UUCP> Date: 12 Aug 85 22:54:00 GMT Sender: john@genrad.UUCP Lines: 100 Approved: john@genrad.UUCP Mod.sources: Volume 2, Issue 36 Submitted by: Arnold Robbins 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 * # 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 {