Angband
Macros | Functions
ds_io.h File Reference
#include <fcntl.h>

Go to the source code of this file.

Macros

#define NDECL(f)   f()
#define FDECL(f, p)   f()
#define VDECL(f, p)   f()
#define open   ds_open
#define close   ds_close
#define creat   ds_creat
#define lseek   ds_lseek
#define read   ds_read
#define sopen   ds_sopen
#define write   ds_write
#define E   extern

Functions

E void VDECL (error,(const char *,...))
E void FDECL (regularize,(char *))
E char * FDECL (get_username,(int *))
E FILE * FDECL (ds_fopen,(const char *, const char *))
E int FDECL (ds_fclose,(FILE *))
E long FDECL (ds_ftell,(FILE *))
E int FDECL (ds_fseek,(FILE *, long, int))
E void FDECL (ds_rewind,(FILE *))
E int FDECL (ds_fgetc,(FILE *))
E int FDECL (ds_fputc,(int, FILE *))
E char * FDECL (ds_fgets,(char *, int, FILE *))
E int FDECL (ds_fputs,(const char *, FILE *))
E int FDECL (ds_fread,(void *, size_t, size_t, FILE *))
E int FDECL (ds_fwrite,(const void *, size_t, size_t, FILE *))
E int VDECL (ds_fscanf,(FILE *, const char *,...))
E int VDECL (ds_fprintf,(FILE *, const char *,...))
E int FDECL (ds_vfprintf,(FILE *, const char *, va_list))
E int FDECL (ds_access,(const char *, int))
E int FDECL (ds_close,(int))
E int FDECL (ds_creat,(const char *, int))
E off_t FDECL (ds_lseek,(int, off_t, int))
E int FDECL (ds_open,(const char *, int, int))
E int FDECL (ds_read,(int, void *, unsigned int))
E int FDECL (ds_sopen,(const char *, int, int, int))
E int FDECL (ds_unlink,(const char *))
E int FDECL (ds_write,(int, const void *, unsigned int))
E int NDECL (ds_getuid)
E int NDECL (ds_getgid)
E int NDECL (ds_getpid)
E time_t FDECL (ds_time,(time_t *))
E struct tm * FDECL (ds_localtime,(time_t *))
E char * FDECL (ds_getenv,(const char *))

Macro Definition Documentation

#define close   ds_close

Referenced by next_section().

#define creat   ds_creat
#define E   extern
#define FDECL (   f,
  p 
)    f()
#define lseek   ds_lseek
#define NDECL (   f)    f()
#define open   ds_open

Referenced by file_open(), and get_moves().

#define read   ds_read

Referenced by file_read().

#define sopen   ds_sopen
#define VDECL (   f,
  p 
)    f()
#define write   ds_write

Function Documentation

E void FDECL ( regularize  ,
(char *)   
)
E char* FDECL ( get_username  ,
(int *)   
)
E FILE* FDECL ( ds_fopen  ,
(const char *, const char *)   
)
E int FDECL ( ds_fclose  ,
(FILE *)   
)
E long FDECL ( ds_ftell  ,
(FILE *)   
)
E int FDECL ( ds_fseek  ,
(FILE *, long, int  
)
E void FDECL ( ds_rewind  ,
(FILE *)   
)
E int FDECL ( ds_fgetc  ,
(FILE *)   
)
E int FDECL ( ds_fputc  ,
(int, FILE *)   
)
E char* FDECL ( ds_fgets  ,
(char *, int, FILE *)   
)
E int FDECL ( ds_fputs  ,
(const char *, FILE *)   
)
E int FDECL ( ds_fread  ,
(void *, size_t, size_t, FILE *)   
)
E int FDECL ( ds_fwrite  ,
(const void *, size_t, size_t, FILE *)   
)
E int FDECL ( ds_vfprintf  ,
(FILE *, const char *, va_list)   
)
E int FDECL ( ds_access  ,
(const char *, int  
)
E int FDECL ( ds_close  ,
(int  
)
E int FDECL ( ds_creat  ,
(const char *, int  
)
E off_t FDECL ( ds_lseek  ,
(int, off_t, int  
)
E int FDECL ( ds_open  ,
(const char *, int, int  
)
E int FDECL ( ds_read  ,
(int, void *, unsigned int  
)
E int FDECL ( ds_sopen  ,
(const char *, int, int, int  
)
E int FDECL ( ds_unlink  ,
(const char *)   
)
E int FDECL ( ds_write  ,
(int, const void *, unsigned int  
)
E time_t FDECL ( ds_time  ,
(time_t *)   
)
E struct tm* FDECL ( ds_localtime  ,
(time_t *)   
)
read
E char* FDECL ( ds_getenv  ,
(const char *)   
)
E int NDECL ( ds_getuid  )
E int NDECL ( ds_getgid  )
E int NDECL ( ds_getpid  )
E void VDECL ( error  ,
(const char *,...)   
)
E int VDECL ( ds_fscanf  ,
(FILE *, const char *,...)   
)
E int VDECL ( ds_fprintf  ,
(FILE *, const char *,...)   
)