#include <stdint.h>
#include <stdio.h>
#include <sys/list.h>
#include <threads.h>
Go to the source code of this file.
|
| enum | _file_flags_t {
_FILE_READ = (1 << 0)
, _FILE_WRITE = (1 << 2)
, _FILE_RW = (1 << 3)
, _FILE_APPEND = (1 << 4)
,
_FILE_BIN = (1 << 5)
, _FILE_OWNS_BUFFER = (1 << 6)
, _FILE_FULLY_BUFFERED = (1 << 7)
, _FILE_LINE_BUFFERED = (1 << 8)
,
_FILE_UNBUFFERED = (1 << 9)
, _FILE_ERROR = (1 << 10)
, _FILE_WIDESTREAM = (1 << 11)
, _FILE_BYTESTREAM = (1 << 12)
,
_FILE_DELETE_ON_CLOSE = (1 << 13)
, _FILE_EOF = (1 << 14)
} |
| |
◆ _UNGETC_MAX
◆ _FILE_GETC
| #define _FILE_GETC |
( |
|
stream | ) |
|
Value: (((stream)->ungetIndex == 0) ? (unsigned char)(stream)->buf[(stream)->bufIndex++] \
: (unsigned char)(stream)->ungetBuf[--(stream)->ungetIndex])
Definition at line 49 of file file.h.
◆ _FILE_CHECK_AVAIL
| #define _FILE_CHECK_AVAIL |
( |
|
fh | ) |
(((fh->bufIndex == fh->bufEnd) && (fh->ungetIndex == 0)) ? _file_fill_buffer(fh) : 0) |
◆ _file_flags_t
| Enumerator |
|---|
| _FILE_READ | |
| _FILE_WRITE | |
| _FILE_RW | |
| _FILE_APPEND | |
| _FILE_BIN | |
| _FILE_OWNS_BUFFER | |
| _FILE_FULLY_BUFFERED | |
| _FILE_LINE_BUFFERED | |
| _FILE_UNBUFFERED | |
| _FILE_ERROR | |
| _FILE_WIDESTREAM | |
| _FILE_BYTESTREAM | |
| _FILE_DELETE_ON_CLOSE | |
| _FILE_EOF | |
Definition at line 8 of file file.h.
◆ _file_flags_parse()
◆ _file_new()
| FILE * _file_new |
( |
void |
| ) |
|
◆ _file_free()
| void _file_free |
( |
FILE * |
stream | ) |
|
◆ _file_init()
◆ _file_deinit()
| void _file_deinit |
( |
FILE * |
stream | ) |
|
◆ _file_flush_buffer()
- Todo:
- Text stream conversion here
Definition at line 158 of file file.c.
◆ _file_fill_buffer()
◆ _file_seek()
◆ _file_prepare_read()
◆ _file_prepare_write()
◆ _files_init()
| void _files_init |
( |
void |
| ) |
|
◆ _files_push()
| void _files_push |
( |
FILE * |
file | ) |
|
◆ _files_remove()
| void _files_remove |
( |
FILE * |
file | ) |
|
◆ _files_close()
| void _files_close |
( |
void |
| ) |
|
◆ _files_flush()