Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
tapeIO.h File Reference

Go to the source code of this file.

Macros

#define TAPEIO_OK   0
 
#define TAPEIO_ERROR   (-1)
 
#define TAPEIO_EOT   (-2) /* end of data (End Of Tape) */
 
#define TAPEIO_STREAM   1 /* file descriptor is not a tape device */
 
#define TAPEIO_FIXED   2 /* it's a tape device in fixed block mode */
 
#define TAPEIO_VARIABLE   3 /* it's a tape device in variable block mode */
 
#define TAPEIO_PIPE   4 /* pipe or TCP socket */
 

Functions

int tape_devType (int fd)
 
int tape_write (int fd, const void *buffer, int len)
 
int tape_read (int fd, void *buffer, int len)
 
int tape_flush (int fd)
 
int tape_writeFM (int fd)
 
int tape_getBlockSize (int fd, unsigned long *minSize, unsigned long *maxSize, unsigned long *recSize)
 
int tape_getState (int fd)
 
unsigned long tape_getPosition (int fd)
 
int tape_setBlockSize (int fd, unsigned long newBlockSize)
 
int tape_rewind (int fd)
 
int tape_unload (int fd)
 
int tape_findFM (int fd, int count)
 

Variables

int tape_enablePipeIO
 

Macro Definition Documentation

#define TAPEIO_EOT   (-2) /* end of data (End Of Tape) */

Definition at line 10 of file tapeIO.h.

#define TAPEIO_ERROR   (-1)

Definition at line 9 of file tapeIO.h.

#define TAPEIO_FIXED   2 /* it's a tape device in fixed block mode */

Definition at line 13 of file tapeIO.h.

#define TAPEIO_OK   0

Definition at line 8 of file tapeIO.h.

#define TAPEIO_PIPE   4 /* pipe or TCP socket */

Definition at line 15 of file tapeIO.h.

#define TAPEIO_STREAM   1 /* file descriptor is not a tape device */

Definition at line 12 of file tapeIO.h.

#define TAPEIO_VARIABLE   3 /* it's a tape device in variable block mode */

Definition at line 14 of file tapeIO.h.

Function Documentation

int tape_devType ( int  fd)
int tape_findFM ( int  fd,
int  count 
)
int tape_flush ( int  fd)
int tape_getBlockSize ( int  fd,
unsigned long *  minSize,
unsigned long *  maxSize,
unsigned long *  recSize 
)
unsigned long tape_getPosition ( int  fd)
int tape_getState ( int  fd)
int tape_read ( int  fd,
void *  buffer,
int  len 
)
int tape_rewind ( int  fd)
int tape_setBlockSize ( int  fd,
unsigned long  newBlockSize 
)
int tape_unload ( int  fd)
int tape_write ( int  fd,
const void *  buffer,
int  len 
)
int tape_writeFM ( int  fd)

Variable Documentation

int tape_enablePipeIO