MADNESS 0.10.1
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

Referenced by wopen_().

◆ max_file

#define max_file   99

Referenced by CheckUnit(), FirstCall(), and wopen_().

Typedef Documentation

◆ integer

typedef int integer

Function Documentation

◆ CheckAddr()

int CheckAddr ( integer addr)
static

Referenced by getwa_(), and putwa_().

◆ CheckCount()

int CheckCount ( integer count)
static

Referenced by getwa_(), and putwa_().

◆ CheckUnit()

int CheckUnit ( integer unit)
static

References file_array, max_file, and unit().

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

◆ FirstCall()

void FirstCall ( )

◆ getwa_()

◆ InitFileData()

void InitFileData ( struct w_file * file)

◆ InitFileStats()

◆ lseek()

off_t lseek ( )
extern

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

◆ malloc()

char * malloc ( )
extern

Referenced by posix_memalign(), and wopen_().

◆ PrintFileStats()

◆ putwa_()

◆ strncpy()

char * strncpy ( )
extern

Referenced by wopen_().

◆ walltm_()

void walltm_ ( double * ai)

Referenced by getwa_(), and putwa_().

◆ wclose_()

◆ 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