API for dcload's system calls
More...
|
| file | dcload.h |
| | Functions to access the system calls provided by dcload.
|
| |
|
| enum | dcload_cmd_t {
DCLOAD_READ = 0
, DCLOAD_WRITE = 1
, DCLOAD_OPEN = 2
, DCLOAD_CLOSE = 3
,
DCLOAD_CREAT = 4
, DCLOAD_LINK = 5
, DCLOAD_UNLINK = 6
, DCLOAD_CHDIR = 7
,
DCLOAD_CHMOD = 8
, DCLOAD_LSEEK = 9
, DCLOAD_FSTAT = 10
, DCLOAD_TIME = 11
,
DCLOAD_STAT = 12
, DCLOAD_UTIME = 13
, DCLOAD_ASSIGNWRKMEM = 14
, DCLOAD_EXIT = 15
,
DCLOAD_OPENDIR = 16
, DCLOAD_CLOSEDIR = 17
, DCLOAD_READDIR = 18
, DCLOAD_GETHOSTINFO = 19
,
DCLOAD_GDBPACKET = 20
, DCLOAD_REWINDDIR = 21
} |
| |
|
| int | syscall_dcload (dcload_cmd_t cmd, void *param1, void *param2, void *param3) |
| |
| ssize_t | dcload_read (uint32_t hnd, uint8_t *data, size_t len) |
| |
| ssize_t | dcload_write (uint32_t hnd, const uint8_t *data, size_t len) |
| |
| int | dcload_open (const char *fn, int oflags, int mode) |
| |
| int | dcload_close (uint32_t hnd) |
| |
| int | dcload_creat (const char *path, mode_t mode) |
| |
| int | dcload_link (const char *fn1, const char *fn2) |
| |
| int | dcload_unlink (const char *fn) |
| |
| int | dcload_chdir (const char *path) |
| |
| int | dcload_chmod (const char *path, mode_t mode) |
| |
| off_t | dcload_lseek (uint32_t hnd, off_t offset, int whence) |
| |
| int | dcload_fstat (int fildes, dcload_stat_t *buf) |
| |
| time_t | dcload_time (void) |
| |
| int | dcload_stat (const char *restrict path, dcload_stat_t *restrict buf) |
| |
| int | dcload_assignwrkmem (int *buf) |
| |
| void | dcload_exit (void) |
| |
| int | dcload_opendir (const char *fn) |
| |
| int | dcload_closedir (uint32_t hnd) |
| |
| struct dirent * | dcload_readdir (uint32_t hnd) |
| |
| uint32_t | dcload_gethostinfo (uint32_t *ip, uint32_t *port) |
| |
| size_t | dcload_gdbpacket (const char *in_buf, size_t in_size, char *out_buf, size_t out_size) |
| |
| int | dcload_rewinddir (uint32_t hnd) |
| |
API for dcload's system calls
This module encapsulates all the commands provided by dcload via its syscall function.
◆ dcload_cmd_t
| Enumerator |
|---|
| DCLOAD_READ | |
| DCLOAD_WRITE | |
| DCLOAD_OPEN | |
| DCLOAD_CLOSE | |
| DCLOAD_CREAT | |
| DCLOAD_LINK | |
| DCLOAD_UNLINK | |
| DCLOAD_CHDIR | |
| DCLOAD_CHMOD | |
| DCLOAD_LSEEK | |
| DCLOAD_FSTAT | |
| DCLOAD_TIME | |
| DCLOAD_STAT | |
| DCLOAD_UTIME | |
| DCLOAD_ASSIGNWRKMEM | |
| DCLOAD_EXIT | |
| DCLOAD_OPENDIR | |
| DCLOAD_CLOSEDIR | |
| DCLOAD_READDIR | |
| DCLOAD_GETHOSTINFO | |
| DCLOAD_GDBPACKET | |
| DCLOAD_REWINDDIR | |
◆ dcload_assignwrkmem()
| int dcload_assignwrkmem |
( |
int * | buf | ) |
|
◆ dcload_chdir()
| int dcload_chdir |
( |
const char * | path | ) |
|
◆ dcload_chmod()
| int dcload_chmod |
( |
const char * | path, |
|
|
mode_t | mode ) |
◆ dcload_close()
◆ dcload_closedir()
◆ dcload_creat()
| int dcload_creat |
( |
const char * | path, |
|
|
mode_t | mode ) |
◆ dcload_exit()
| void dcload_exit |
( |
void | | ) |
|
◆ dcload_fstat()
◆ dcload_gdbpacket()
| size_t dcload_gdbpacket |
( |
const char * | in_buf, |
|
|
size_t | in_size, |
|
|
char * | out_buf, |
|
|
size_t | out_size ) |
◆ dcload_gethostinfo()
◆ dcload_link()
| int dcload_link |
( |
const char * | fn1, |
|
|
const char * | fn2 ) |
◆ dcload_lseek()
| off_t dcload_lseek |
( |
uint32_t | hnd, |
|
|
off_t | offset, |
|
|
int | whence ) |
◆ dcload_open()
| int dcload_open |
( |
const char * | fn, |
|
|
int | oflags, |
|
|
int | mode ) |
◆ dcload_opendir()
| int dcload_opendir |
( |
const char * | fn | ) |
|
◆ dcload_read()
| ssize_t dcload_read |
( |
uint32_t | hnd, |
|
|
uint8_t * | data, |
|
|
size_t | len ) |
◆ dcload_readdir()
◆ dcload_rewinddir()
◆ dcload_stat()
| int dcload_stat |
( |
const char *restrict | path, |
|
|
dcload_stat_t *restrict | buf ) |
◆ dcload_time()
| time_t dcload_time |
( |
void | | ) |
|
◆ dcload_unlink()
| int dcload_unlink |
( |
const char * | fn | ) |
|
◆ dcload_write()
| ssize_t dcload_write |
( |
uint32_t | hnd, |
|
|
const uint8_t * | data, |
|
|
size_t | len ) |
◆ syscall_dcload()
| int syscall_dcload |
( |
dcload_cmd_t | cmd, |
|
|
void * | param1, |
|
|
void * | param2, |
|
|
void * | param3 ) |