Go to the source code of this file.
|
| enum | spawn_flags_t {
SPAWN_DEFAULT = 0
, SPAWN_SUSPEND = 1 << 0
, SPAWN_EMPTY_FDS = 1 << 1
, SPAWN_STDIO_FDS = 1 << 2
,
SPAWN_EMPTY_NS = 1 << 3
, SPAWN_EMPTY_ENV = 1 << 4
, SPAWN_EMPTY_CWD = 1 << 5
} |
| | Spawn behaviour flags. More...
|
| |
| enum | prot_t { PROT_NONE = 0
, PROT_READ = (1 << 0)
, PROT_WRITE = (1 << 1)
, PROT_EXECUTE = (1 << 2)
} |
| | Memory protection flags. More...
|
| |
| enum | futex_op_t { FUTEX_WAIT
, FUTEX_WAKE
} |
| | Futex operation enum. More...
|
| |
|
| pid_t | spawn (const char **argv, spawn_flags_t flags) |
| | System call for spawning new processes.
|
| |
| pid_t | getpid (void) |
| | System call to retrieve the current pid.
|
| |
| tid_t | gettid (void) |
| | System call to retrieve the current tid.
|
| |
| void * | mmap (fd_t fd, void *address, uint64_t length, prot_t prot) |
| | System call to map memory from a file.
|
| |
| void * | munmap (void *address, uint64_t length) |
| | System call to unmap mapped memory.
|
| |
| void * | mprotect (void *address, uint64_t length, prot_t prot) |
| | System call to change the protection flags of memory.
|
| |
| uint64_t | futex (atomic_uint64_t *addr, uint64_t val, futex_op_t op, clock_t timeout) |
| | System call for fast user space mutual exclusion.
|
| |
| clock_t | uptime (void) |
| | System call for retreving the time since boot.
|
| |
| uint64_t | nanosleep (clock_t timeout) |
| | System call for sleeping.
|
| |
|
| char ** | environ |
| | The environment variables of the current process.
|
| |