|
|
1.1 ! root 1: /* ! 2: * Structures and definitions for mag tape io control commands ! 3: */ ! 4: ! 5: /* mag tape io control commands */ ! 6: #define MTIOCTOP (('m'<<8)|1) /* do a mag tape op */ ! 7: #define MTIOCGET (('m'<<8)|2) /* get mag tape status */ ! 8: #define MTIOCIEOT (('m'<<8)|3) /* ignore EOT error */ ! 9: #define MTIOCEEOT (('m'<<8)|4) /* enable EOT error */ ! 10: ! 11: /* structure for MTIOCTOP - mag tape op command */ ! 12: struct mtop { ! 13: short mt_op; /* operations defined below */ ! 14: daddr_t mt_count; /* how many of them */ ! 15: }; ! 16: ! 17: /* operations */ ! 18: #define MTWEOF 0 /* write an end-of-file record */ ! 19: #define MTFSF 1 /* forward space file */ ! 20: #define MTBSF 2 /* backward space file */ ! 21: #define MTFSR 3 /* forward space record */ ! 22: #define MTBSR 4 /* backward space record */ ! 23: #define MTREW 5 /* rewind */ ! 24: #define MTOFFL 6 /* rewind and put the drive offline */ ! 25: #define MTNOP 7 /* no operation, sets status only */ ! 26: ! 27: /* structure for MTIOCGET - mag tape get status command */ ! 28: ! 29: struct mtget { ! 30: short mt_type; /* type of magtape device */ ! 31: /* the following two registers are grossly device dependent */ ! 32: short mt_dsreg; /* ``drive status'' register */ ! 33: short mt_erreg; /* ``error'' register */ ! 34: /* end device-dependent registers */ ! 35: short mt_resid; /* residual count */ ! 36: /* the following two are not yet implemented */ ! 37: daddr_t mt_fileno; /* file number of current position */ ! 38: daddr_t mt_blkno; /* block number of current position */ ! 39: /* end not yet implemented */ ! 40: }; ! 41: ! 42: /* ! 43: * Constants for mt_type byte ! 44: */ ! 45: #define MT_ISTS 01 ! 46: #define MT_ISHT 02 ! 47: #define MT_ISTM 03 ! 48: #define MT_ISMT 04 ! 49: #define MT_ISUT 05 ! 50: #define MT_ISTMSCP 06
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.