PatchworkOS
Loading...
Searching...
No Matches
FILE Struct Reference

#include <file.h>

Data Fields

list_entry_t entry
 
fd_t fd
 
uint8_tbuf
 
uint64_t bufSize
 
uint64_t bufIndex
 
uint64_t bufEnd
 
fpos_t pos
 
unsigned char ungetBuf [_UNGETC_MAX]
 
uint64_t ungetIndex
 
_file_flags_t flags
 
mtx_t mtx
 
char filename [MAX_PATH]
 

Detailed Description

Definition at line 33 of file file.h.

Field Documentation

◆ buf

uint8_t* FILE::buf

Definition at line 37 of file file.h.

Referenced by _file_deinit(), _file_fill_buffer(), _file_flush_buffer(), _file_init(), fputc(), and puts().

◆ bufEnd

uint64_t FILE::bufEnd

◆ bufIndex

◆ bufSize

uint64_t FILE::bufSize

Definition at line 38 of file file.h.

Referenced by _file_fill_buffer(), _file_init(), fputc(), and puts().

◆ entry

list_entry_t FILE::entry

Definition at line 35 of file file.h.

Referenced by _file_new(), and _std_stream_init().

◆ fd

fd_t FILE::fd

Definition at line 36 of file file.h.

Referenced by _file_deinit(), _file_fill_buffer(), _file_flush_buffer(), _file_init(), and _file_seek().

◆ filename

char FILE::filename[MAX_PATH]

Definition at line 46 of file file.h.

◆ flags

◆ mtx

mtx_t FILE::mtx

Definition at line 45 of file file.h.

Referenced by _file_deinit(), _file_init(), fclose(), fflush(), fgetc(), fputc(), fseek(), ftell(), puts(), and ungetc().

◆ pos

fpos_t FILE::pos

Definition at line 41 of file file.h.

Referenced by _file_fill_buffer(), _file_flush_buffer(), _file_init(), _file_seek(), and ftell().

◆ ungetBuf

unsigned char FILE::ungetBuf[_UNGETC_MAX]

Definition at line 42 of file file.h.

Referenced by ungetc().

◆ ungetIndex

uint64_t FILE::ungetIndex

Definition at line 43 of file file.h.

Referenced by _file_init(), _file_prepare_write(), _file_seek(), fseek(), ftell(), and ungetc().


The documentation for this struct was generated from the following file: