Current file and block number position on magnetic tapes

From: Johan Nyberg <nyberg_at_unix.tsl.uu.se>
Date: Fri, 2 May 1997 16:32:11 +0200

Hi there,

One of my colleagues is porting a C program from Solaris to DU4.0.
The program accesses magnetic tape drives (we use mainly EXABYTE 8505
drives). On Solaris he can from within his program get the current
file and block number position on the tape, because in <sys/mtio.h> the
structure mtget includes the following two members:

        daddr_t mt_fileno; /* file number of current position */
        daddr_t mt_blkno; /* block number of current position */


On DU4.0 the mtget structure does not have these members. Does anybody
out there know if and how it is possible to find the current file and block
number position from within a C program on DU4.0?

-- 
Johan Nyberg, The Svedberg Laboratory, Uppsala University, Uppsala, Sweden
nyberg_at_unix.tsl.uu.se,  http://www3.tsl.uu.se/~nyberg.  Fax: +46-18-183833 
Tel: +46-18-183047 (office), +46-18-324314 (home), +46-708-324314 (mobile) 
Received on Fri May 02 1997 - 16:45:45 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT