2018-12-10 12:44:34 +03:00
|
|
|
#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 **);
|
2018-12-10 12:44:34 +03:00
|
|
|
|
|
|
|
extern int sysfunc(int command, char ** args) {
|
2021-05-31 04:47:02 +03:00
|
|
|
__sets_errno(syscall_sysfunc(command, args));
|
2018-12-10 12:44:34 +03:00
|
|
|
}
|