1#ifndef _MSL_COMMON_ANSI_FILES_H
2#define _MSL_COMMON_ANSI_FILES_H
19#define set_error(file) \
21 (file)->file_state.error = 1; \
22 (file)->buffer_length = 0; \
38typedef struct _file_modes {
67typedef struct _file_states {
88 char ungetc_buffer[2];
89 wchar_t ungetc_wide_buffer[2];
106typedef struct _files {
__io_results
Definition ansi_files.h:61
@ __io_EOF
Definition ansi_files.h:64
@ __no_io_error
Definition ansi_files.h:62
@ __io_error
Definition ansi_files.h:63
__io_modes
Definition ansi_files.h:47
@ __write
Definition ansi_files.h:49
@ __read
Definition ansi_files.h:48
@ __read_write
Definition ansi_files.h:50
@ __append
Definition ansi_files.h:51
unsigned long fpos_t
Definition ansi_files.h:17
int(* __close_proc)(__file_handle file)
Definition ansi_files.h:79
__io_states
Definition ansi_files.h:54
@ __reading
Definition ansi_files.h:57
@ __rereading
Definition ansi_files.h:58
@ __neutral
Definition ansi_files.h:55
@ __writing
Definition ansi_files.h:56
unsigned int __flush_all(void)
int(* __pos_proc)(__file_handle file, fpos_t *position, int mode, __idle_proc idle_proc)
Definition ansi_files.h:75
__file_kinds
Definition ansi_files.h:25
@ __unavailable_file
Definition ansi_files.h:29
@ __closed_file
Definition ansi_files.h:26
@ __disk_file
Definition ansi_files.h:27
@ __console_file
Definition ansi_files.h:28
void(* __idle_proc)(void)
Definition ansi_files.h:74
int(* __io_proc)(__file_handle file, unsigned char *buff, size_t *count, __idle_proc idle_proc)
Definition ansi_files.h:77
unsigned long __file_handle
Definition ansi_files.h:16
__file_orientation
Definition ansi_files.h:32
@ CHAR_ORIENTED
Definition ansi_files.h:34
@ WIDE_ORIENTED
Definition ansi_files.h:35
@ UNORIENTED
Definition ansi_files.h:33
Definition ansi_files.h:81
unsigned long buffer_size
Definition ansi_files.h:92
unsigned char is_dynamically_allocated
Definition ansi_files.h:85
__pos_proc position_fn
Definition ansi_files.h:98
unsigned long save_buffer_length
Definition ansi_files.h:96
unsigned char * buffer
Definition ansi_files.h:91
__close_proc close_fn
Definition ansi_files.h:101
__idle_proc idle_fn
Definition ansi_files.h:102
unsigned long position
Definition ansi_files.h:90
unsigned char * buffer_ptr
Definition ansi_files.h:93
file_modes file_mode
Definition ansi_files.h:83
char char_buffer
Definition ansi_files.h:86
__io_proc read_fn
Definition ansi_files.h:99
struct _FILE * next_file
Definition ansi_files.h:103
unsigned long buffer_alignment
Definition ansi_files.h:95
unsigned long buffer_length
Definition ansi_files.h:94
char char_buffer_overflow
Definition ansi_files.h:87
unsigned long buffer_position
Definition ansi_files.h:97
file_states file_state
Definition ansi_files.h:84
__file_handle handle
Definition ansi_files.h:82
__io_proc write_fn
Definition ansi_files.h:100
Definition ansi_files.h:38
unsigned int file_kind
Definition ansi_files.h:42
unsigned int file_orientation
Definition ansi_files.h:43
unsigned int buffer_mode
Definition ansi_files.h:41
unsigned int open_mode
Definition ansi_files.h:39
unsigned int io_mode
Definition ansi_files.h:40
unsigned int binary_io
Definition ansi_files.h:44
Definition ansi_files.h:67
unsigned char eof
Definition ansi_files.h:70
unsigned int free_buffer
Definition ansi_files.h:69
unsigned int io_state
Definition ansi_files.h:68
unsigned char error
Definition ansi_files.h:71
Definition ansi_files.h:106
FILE _stdout
Definition ansi_files.h:108
FILE _stderr
Definition ansi_files.h:109
FILE _stdin
Definition ansi_files.h:107
FILE empty
Definition ansi_files.h:110