#include <stdint.h>
Go to the source code of this file.
Defines | |
#define | MS_RDONLY (1<<1) |
mount file system read-only | |
#define | O_ACCMODE 000003 |
#define | O_RDONLY 000000 |
open file read-only | |
#define | O_WRONLY 000001 |
open file write-only | |
#define | O_RDWR 000002 |
open file read/write | |
#define | O_CREAT 000100 |
create file if it does not exist yet | |
#define | O_TRUNC 001000 |
truncate file | |
Typedefs | |
typedef uint16_t | mode_t |
typedef uint32_t | off_t |
typedef int32_t | ssize_t |
Functions | |
int | mount (const char *source, const char *target, const char *filesystemtype, uint16_t mountflags, const void *data) |
mount a file system | |
int | umount (const char *target) |
umount a file system | |
int | open (const char *pathname, uint16_t flags, mode_t mode) |
open a file | |
int | close (int fd) |
close an open file | |
ssize_t | read (int fd, void *buf, size_t count) |
read from open file | |
ssize_t | write (int fd, const void *buf, size_t count) |
write to open file |