11#ifndef __MUTEKI_FILE_H__
12#define __MUTEKI_FILE_H__
36struct file_descriptor_s;
37typedef struct file_descriptor_s file_descriptor_t;
46extern file_descriptor_t *
_afopen(
const char *pathname,
const char *mode);
66extern size_t _fread(
void *ptr,
size_t size,
size_t nmemb, file_descriptor_t *stream);
77extern size_t _fwrite(
const void *ptr,
size_t size,
size_t nmemb, file_descriptor_t *stream);
89extern int __fseek(file_descriptor_t *stream,
long offset,
int whence);
97extern long _ftell(file_descriptor_t *stream);
Common include file for all muteki-shims headers.
#define UTF16
"Portable" Besta UTF-16 type used by other headers.
Definition common.h:54
int __fflush(file_descriptor_t *stream)
Flush the cached writes to the file.
long _ftell(file_descriptor_t *stream)
Return the current position of the file.
int __fseek(file_descriptor_t *stream, long offset, int whence)
Seek to a specific position in an opened file.
file_descriptor_t * _afopen(const char *pathname, const char *mode)
Open a file located at pathname.
sys_seek_whence_e
whence values for __fseek().
Definition file.h:23
@ _SYS_SEEK_CUR
Definition file.h:27
@ _SYS_SEEK_END
Definition file.h:29
@ _SYS_SEEK_SET
Definition file.h:25
size_t _fread(void *ptr, size_t size, size_t nmemb, file_descriptor_t *stream)
Read nmemb data units of size size from a file.
int _fclose(file_descriptor_t *stream)
Close a file.
file_descriptor_t * __wfopen(const UTF16 *pathname, const UTF16 *mode)
Open a file located at UTF-16-encoded pathname.
size_t _fwrite(const void *ptr, size_t size, size_t nmemb, file_descriptor_t *stream)
Write nmemb data units of size size to a file.