SSBM Decomp
Loading...
Searching...
No Matches
ansi_files.h File Reference
#include "stddef.h"

Go to the source code of this file.

Data Structures

struct  file_modes
 
struct  file_states
 
struct  FILE
 
struct  files
 

Macros

#define SEEK_SET   0
 
#define SEEK_CUR   1
 
#define SEEK_END   2
 
#define set_error(file)
 
#define _IONBF   0
 
#define _IOLBF   1
 
#define _IOFBF   2
 

Typedefs

typedef unsigned long __file_handle
 
typedef unsigned long fpos_t
 
typedef void(* __idle_proc) (void)
 
typedef int(* __pos_proc) (__file_handle file, fpos_t *position, int mode, __idle_proc idle_proc)
 
typedef int(* __io_proc) (__file_handle file, unsigned char *buff, size_t *count, __idle_proc idle_proc)
 
typedef int(* __close_proc) (__file_handle file)
 

Enumerations

enum  __file_kinds {
  __closed_file ,
  __disk_file ,
  __console_file ,
  __unavailable_file
}
 
enum  __file_orientation {
  UNORIENTED ,
  CHAR_ORIENTED ,
  WIDE_ORIENTED
}
 
enum  __io_modes {
  __read = 1 ,
  __write = 2 ,
  __read_write = 3 ,
  __append = 4
}
 
enum  __io_states {
  __neutral ,
  __writing ,
  __reading ,
  __rereading
}
 
enum  __io_results {
  __no_io_error ,
  __io_error ,
  __io_EOF
}
 

Functions

unsigned int __flush_all (void)
 
void __close_all (void)
 

Variables

files __files
 

Macro Definition Documentation

◆ SEEK_SET

#define SEEK_SET   0

◆ SEEK_CUR

#define SEEK_CUR   1

◆ SEEK_END

#define SEEK_END   2

◆ set_error

#define set_error (   file)
Value:
do { \
(file)->file_state.error = 1; \
(file)->buffer_length = 0; \
} while (0)

◆ _IONBF

#define _IONBF   0

◆ _IOLBF

#define _IOLBF   1

◆ _IOFBF

#define _IOFBF   2

Typedef Documentation

◆ __file_handle

typedef unsigned long __file_handle

◆ fpos_t

typedef unsigned long fpos_t

◆ __idle_proc

typedef void(* __idle_proc) (void)

◆ __pos_proc

typedef int(* __pos_proc) (__file_handle file, fpos_t *position, int mode, __idle_proc idle_proc)

◆ __io_proc

typedef int(* __io_proc) (__file_handle file, unsigned char *buff, size_t *count, __idle_proc idle_proc)

◆ __close_proc

typedef int(* __close_proc) (__file_handle file)

Enumeration Type Documentation

◆ __file_kinds

Enumerator
__closed_file 
__disk_file 
__console_file 
__unavailable_file 

◆ __file_orientation

Enumerator
UNORIENTED 
CHAR_ORIENTED 
WIDE_ORIENTED 

◆ __io_modes

enum __io_modes
Enumerator
__read 
__write 
__read_write 
__append 

◆ __io_states

Enumerator
__neutral 
__writing 
__reading 
__rereading 

◆ __io_results

Enumerator
__no_io_error 
__io_error 
__io_EOF 

Function Documentation

◆ __flush_all()

unsigned int __flush_all ( void  )

◆ __close_all()

void __close_all ( void  )

Variable Documentation

◆ __files

files __files
extern