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

◆ close

#define close   ds_close

Referenced by next_section().

◆ creat

#define creat   ds_creat

◆ E

#define E   extern

◆ FDECL

#define FDECL (   f,
  p 
)    f()

◆ lseek

#define lseek   ds_lseek

◆ NDECL

#define NDECL (   f)    f()

◆ open

#define open   ds_open

Referenced by file_open(), and get_move().

◆ read

#define read   ds_read

Referenced by file_read().

◆ sopen

#define sopen   ds_sopen

◆ VDECL

#define VDECL (   f,
  p 
)    f()

◆ write

#define write   ds_write

Function Documentation

◆ FDECL() [1/26]

E void FDECL ( regularize  ,
(char *)   
)

◆ FDECL() [2/26]

E char* FDECL ( get_username  ,
(int *)   
)

◆ FDECL() [3/26]

E FILE* FDECL ( ds_fopen  ,
(const char *, const char *)   
)

◆ FDECL() [4/26]

E int FDECL ( ds_fclose  ,
(FILE *)   
)

◆ FDECL() [5/26]

E long FDECL ( ds_ftell  ,
(FILE *)   
)

◆ FDECL() [6/26]

E int FDECL ( ds_fseek  ,
(FILE *, long, int  
)

◆ FDECL() [7/26]

E void FDECL ( ds_rewind  ,
(FILE *)   
)

◆ FDECL() [8/26]

E int FDECL ( ds_fgetc  ,
(FILE *)   
)

◆ FDECL() [9/26]

E int FDECL ( ds_fputc  ,
(int, FILE *)   
)

◆ FDECL() [10/26]

E char* FDECL ( ds_fgets  ,
(char *, int, FILE *)   
)

◆ FDECL() [11/26]

E int FDECL ( ds_fputs  ,
(const char *, FILE *)   
)

◆ FDECL() [12/26]

E int FDECL ( ds_fread  ,
(void *, size_t, size_t, FILE *)   
)

◆ FDECL() [13/26]

E int FDECL ( ds_fwrite  ,
(const void *, size_t, size_t, FILE *)   
)

◆ FDECL() [14/26]

E int FDECL ( ds_vfprintf  ,
(FILE *, const char *, va_list)   
)

◆ FDECL() [15/26]

E int FDECL ( ds_access  ,
(const char *, int  
)

◆ FDECL() [16/26]

E int FDECL ( ds_close  ,
(int  
)

◆ FDECL() [17/26]

E int FDECL ( ds_creat  ,
(const char *, int  
)

◆ FDECL() [18/26]

E off_t FDECL ( ds_lseek  ,
(int, off_t, int  
)

◆ FDECL() [19/26]

E int FDECL ( ds_open  ,
(const char *, int, int  
)

◆ FDECL() [20/26]

E int FDECL ( ds_read  ,
(int, void *, unsigned int  
)

◆ FDECL() [21/26]

E int FDECL ( ds_sopen  ,
(const char *, int, int, int  
)

◆ FDECL() [22/26]

E int FDECL ( ds_unlink  ,
(const char *)   
)

◆ FDECL() [23/26]

E int FDECL ( ds_write  ,
(int, const void *, unsigned int  
)

◆ FDECL() [24/26]

E time_t FDECL ( ds_time  ,
(time_t *)   
)

◆ FDECL() [25/26]

E struct tm* FDECL ( ds_localtime  ,
(time_t *)   
)

◆ FDECL() [26/26]

E char* FDECL ( ds_getenv  ,
(const char *)   
)

◆ NDECL() [1/3]

E int NDECL ( ds_getuid  )

◆ NDECL() [2/3]

E int NDECL ( ds_getgid  )

◆ NDECL() [3/3]

E int NDECL ( ds_getpid  )

◆ VDECL() [1/3]

E void VDECL ( error  ,
(const char *,...)   
)

◆ VDECL() [2/3]

E int VDECL ( ds_fscanf  ,
(FILE *, const char *,...)   
)

◆ VDECL() [3/3]

E int VDECL ( ds_fprintf  ,
(FILE *, const char *,...)   
)