15 lines
542 B
C
15 lines
542 B
C
#ifndef ULIB_SYSTEM_SYSTEM_H_
|
|
#define ULIB_SYSTEM_SYSTEM_H_
|
|
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
|
|
void debugprint(const char *string);
|
|
int32_t ioctl(uint64_t ioh, uint64_t cmd, uint64_t arg1, uint64_t arg2, uint64_t arg3);
|
|
int32_t processctl(uint64_t pid, uint64_t cmd, uint64_t arg1);
|
|
int32_t ipcpipe(uint64_t pid, uint64_t pipenum, uint64_t cmd, uint8_t *buffer, size_t len);
|
|
int32_t mman_map(uint8_t *addr, size_t size, uint64_t prot, uint64_t flags, uint8_t **out);
|
|
int32_t mman_unmap(uint8_t *addr);
|
|
|
|
#endif // ULIB_SYSTEM_SYSTEM_H_
|