MADNESS 0.10.1
Classes | Macros | Typedefs | Functions | Variables
crayio.c File Reference
#include <stdio.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/file.h>
#include <fcntl.h>
Include dependency graph for crayio.c:

Classes

struct  w_file
 

Macros

#define L_XTND   SEEK_END
 
#define max_file   99
 

Typedefs

typedef int integer
 

Functions

static int CheckAddr (integer addr)
 
static int CheckCount (integer count)
 
static int CheckUnit (integer unit)
 
void FirstCall ()
 
void getwa_ (integer *unit, double *result, integer *addr, integer *count, integer *ierr)
 
void InitFileData (struct w_file *file)
 
void InitFileStats (struct w_file *file)
 
off_t lseek ()
 
char * malloc ()
 
void PrintFileStats (struct w_file *unit, struct w_file *file)
 
void putwa_ (integer *unit, double *source, integer *addr, integer *count, integer *ierr)
 
char * strncpy ()
 
void walltm_ (double *ai)
 
void wclose_ (integer *unit, integer *ierr)
 
void wopen_ (integer *unit, char *name, integer *blocks, integer *stats, integer *ierr, int lennam)
 

Variables

static struct w_file file_array [max_file]
 
static int first_call = 1
 

Macro Definition Documentation

◆ L_XTND

#define L_XTND   SEEK_END

◆ max_file

#define max_file   99

Typedef Documentation

◆ integer

typedef int integer

Function Documentation

◆ CheckAddr()

static int CheckAddr ( integer  addr)
static

Referenced by getwa_(), and putwa_().

◆ CheckCount()

static int CheckCount ( integer  count)
static

Referenced by getwa_(), and putwa_().

◆ CheckUnit()

static int CheckUnit ( integer  unit)
static

References file_array, and max_file.

Referenced by getwa_(), putwa_(), and wclose_().

◆ FirstCall()

void FirstCall ( )

◆ getwa_()

void getwa_ ( integer unit,
double *  result,
integer addr,
integer count,
integer ierr 
)

◆ InitFileData()

void InitFileData ( struct w_file file)

◆ InitFileStats()

void InitFileStats ( struct w_file file)

◆ lseek()

off_t lseek ( )
extern

Referenced by getwa_(), putwa_(), and wopen_().

◆ malloc()

char * malloc ( )
extern

◆ PrintFileStats()

void PrintFileStats ( struct w_file unit,
struct w_file file 
)

◆ putwa_()

void putwa_ ( integer unit,
double *  source,
integer addr,
integer count,
integer ierr 
)

◆ strncpy()

char * strncpy ( )
extern

Referenced by wopen_().

◆ walltm_()

void walltm_ ( double *  ai)

Referenced by getwa_(), and putwa_().

◆ wclose_()

void wclose_ ( integer unit,
integer ierr 
)

◆ wopen_()

void wopen_ ( integer unit,
char *  name,
integer blocks,
integer stats,
integer ierr,
int  lennam 
)

Variable Documentation

◆ file_array

struct w_file file_array[max_file]
static

◆ first_call

int first_call = 1
static