Functions
file_get_filename ()
String const *
file_get_filename (File *file
);
file_read ()
FileError
file_read (File *file
,
void *buf
,
size_t size
,
size_t *count
);
file_write ()
FileError
file_write (File *file
,
const void *buf
,
size_t size
,
size_t *count
);
Types and Values
FileError
typedef int FileError;
FileMode
typedef unsigned int FileMode;
FileOffset
typedef off_t FileOffset;
FILE_MODE_READ
#define FILE_MODE_READ 0x01
FILE_MODE_WRITE
#define FILE_MODE_WRITE 0x02
FILE_MODE_READ_WRITE
#define FILE_MODE_READ_WRITE 0x03
FILE_MODE_APPEND
#define FILE_MODE_APPEND 0x10
FILE_MODE_CREATE
#define FILE_MODE_CREATE 0x20
FILE_MODE_EXCLUSIVE
#define FILE_MODE_EXCLUSIVE 0x40
FILE_MODE_TRUNCATE
#define FILE_MODE_TRUNCATE 0x80
File
typedef struct _File File;