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

Go to the source code of this file.

Macros

#define DATAIO_EOF   0 /* file mark or end of tape */
 
#define DATAIO_OK   1 /* no errors */
 
#define DATAIO_EOT   2 /* end of tape */
 
#define DATAIO_ERROR   (-1) /* read/write error (message->stderr) */
 
#define DATAIO_BADCRC   (-2) /* CRC mismatch error: data is damaged */
 

Functions

int data_write (int fd, const void *event)
 
int data_read (int fd, void *buffer, int bufsize)
 
int data_read_alloc (int fd, void **buffer)
 
int data_flush (int fd)
 
int data_writeFM (int fd)
 
int data_findFM (int fd, int count)
 
int data_SeekTape (int fd, int runNo, int *tapeNo)
 

Variables

static const char sccsidDataIOH [] = "@(#)dataIO.h\t5.2\tCreated 7/27/97 18:54:32, \tcompiled "__DATE__
 

Macro Definition Documentation

#define DATAIO_BADCRC   (-2) /* CRC mismatch error: data is damaged */

Definition at line 15 of file dataIO.h.

#define DATAIO_EOF   0 /* file mark or end of tape */

Definition at line 11 of file dataIO.h.

#define DATAIO_EOT   2 /* end of tape */

Definition at line 13 of file dataIO.h.

#define DATAIO_ERROR   (-1) /* read/write error (message->stderr) */

Definition at line 14 of file dataIO.h.

#define DATAIO_OK   1 /* no errors */

Definition at line 12 of file dataIO.h.

Function Documentation

int data_findFM ( int  fd,
int  count 
)
int data_flush ( int  fd)
int data_read ( int  fd,
void *  buffer,
int  bufsize 
)
int data_read_alloc ( int  fd,
void **  buffer 
)
int data_SeekTape ( int  fd,
int  runNo,
int *  tapeNo 
)
int data_write ( int  fd,
const void *  event 
)
int data_writeFM ( int  fd)

Variable Documentation

const char sccsidDataIOH[] = "@(#)dataIO.h\t5.2\tCreated 7/27/97 18:54:32, \tcompiled "__DATE__
static

Definition at line 9 of file dataIO.h.