cfitsio  3390
Data Structures | Macros | Functions
drvrfile.c File Reference
#include <string.h>
#include <stdlib.h>
#include "fitsio2.h"
#include "group.h"
Include dependency graph for drvrfile.c:

Data Structures

struct  diskdriver
 

Macros

#define IO_SEEK   0 /* last file I/O operation was a seek */
 
#define IO_READ   1 /* last file I/O operation was a read */
 
#define IO_WRITE   2 /* last file I/O operation was a write */
 

Functions

int file_init (void)
 
int file_setoptions (int options)
 
int file_getoptions (int *options)
 
int file_getversion (int *version)
 
int file_shutdown (void)
 
int file_open (char *filename, int rwmode, int *handle)
 
int file_openfile (char *filename, int rwmode, FILE **diskfile)
 
int file_create (char *filename, int *handle)
 
int file_truncate (int handle, LONGLONG filesize)
 
int file_size (int handle, LONGLONG *filesize)
 
int file_close (int handle)
 
int file_remove (char *filename)
 
int file_flush (int handle)
 
int file_seek (int handle, LONGLONG offset)
 
int file_read (int hdl, void *buffer, long nbytes)
 
int file_write (int hdl, void *buffer, long nbytes)
 
int file_compress_open (char *filename, int rwmode, int *hdl)
 
int file_is_compressed (char *filename)
 
int file_checkfile (char *urltype, char *infile, char *outfile)
 
int stream_open (char *filename, int rwmode, int *handle)
 
int stream_create (char *filename, int *handle)
 
int stream_size (int handle, LONGLONG *filesize)
 
int stream_close (int handle)
 
int stream_flush (int handle)
 
int stream_seek (int handle, LONGLONG offset)
 
int stream_read (int hdl, void *buffer, long nbytes)
 
int stream_write (int hdl, void *buffer, long nbytes)
 

Macro Definition Documentation

#define IO_READ   1 /* last file I/O operation was a read */
#define IO_SEEK   0 /* last file I/O operation was a seek */
#define IO_WRITE   2 /* last file I/O operation was a write */

Function Documentation

int file_checkfile ( char *  urltype,
char *  infile,
char *  outfile 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int file_close ( int  handle)

Here is the caller graph for this function:

int file_compress_open ( char *  filename,
int  rwmode,
int *  hdl 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int file_create ( char *  filename,
int *  handle 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int file_flush ( int  handle)

Here is the call graph for this function:

Here is the caller graph for this function:

int file_getoptions ( int *  options)

Here is the caller graph for this function:

int file_getversion ( int *  version)

Here is the caller graph for this function:

int file_init ( void  )

Here is the caller graph for this function:

int file_is_compressed ( char *  filename)

Here is the call graph for this function:

Here is the caller graph for this function:

int file_open ( char *  filename,
int  rwmode,
int *  handle 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int file_openfile ( char *  filename,
int  rwmode,
FILE **  diskfile 
)

Here is the caller graph for this function:

int file_read ( int  hdl,
void *  buffer,
long  nbytes 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int file_remove ( char *  filename)

Here is the caller graph for this function:

int file_seek ( int  handle,
LONGLONG  offset 
)

Here is the caller graph for this function:

int file_setoptions ( int  options)

Here is the caller graph for this function:

int file_shutdown ( void  )

Here is the caller graph for this function:

int file_size ( int  handle,
LONGLONG filesize 
)

Here is the caller graph for this function:

int file_truncate ( int  handle,
LONGLONG  filesize 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int file_write ( int  hdl,
void *  buffer,
long  nbytes 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int stream_close ( int  handle)

Here is the caller graph for this function:

int stream_create ( char *  filename,
int *  handle 
)

Here is the caller graph for this function:

int stream_flush ( int  handle)

Here is the caller graph for this function:

int stream_open ( char *  filename,
int  rwmode,
int *  handle 
)

Here is the caller graph for this function:

int stream_read ( int  hdl,
void *  buffer,
long  nbytes 
)

Here is the caller graph for this function:

int stream_seek ( int  handle,
LONGLONG  offset 
)

Here is the caller graph for this function:

int stream_size ( int  handle,
LONGLONG filesize 
)

Here is the caller graph for this function:

int stream_write ( int  hdl,
void *  buffer,
long  nbytes 
)

Here is the caller graph for this function: