Simple file IO with the ioctl syscall
This commit is contained in:
@ -3,11 +3,15 @@
|
||||
#include <syscall/syscall.h>
|
||||
#include <sysdefs/syscall.h>
|
||||
|
||||
void sys_debugprint(const char *string) {
|
||||
void debugprint(const char *string) {
|
||||
syscall(SYS_DEBUGPRINT, (uint64_t)string, 0, 0, 0, 0, 0);
|
||||
}
|
||||
|
||||
int32_t sys_processctl(uint64_t pid, uint64_t cmd, void *extra) {
|
||||
int32_t processctl(uint64_t pid, uint64_t cmd, void *extra) {
|
||||
return syscall(SYS_PROCESSCTL, pid, cmd, (uint64_t)extra, 0, 0, 0);
|
||||
}
|
||||
|
||||
int32_t ioctl(uint64_t ioh, uint64_t cmd, void *extra) {
|
||||
return syscall(SYS_IOCTL, ioh, cmd, (uint64_t)extra, 0, 0, 0);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user