toaruos/libc/sys/sysfunc.c

11 lines
241 B
C
Raw Normal View History

#include <errno.h>
#include <syscall.h>
#include <syscall_nums.h>
#include <sys/sysfunc.h>
2021-05-31 04:47:02 +03:00
DEFN_SYSCALL2(sysfunc, SYS_SYSFUNC, int, char **);
extern int sysfunc(int command, char ** args) {
2021-05-31 04:47:02 +03:00
__sets_errno(syscall_sysfunc(command, args));
}