23 #include <bits/syscall.h> 27 #include <posix-syscall.h> 28 #include <posixSyscallNumbers.h> 29 #include <translate.h> 31 #define STUBBED(which) do { \ 33 snprintf(buf, 32, "linux=%ld", which); \ 34 syscall1(POSIX_STUBBED, (long)(buf)); \ 37 long pedigree_translate_syscall(
long which,
long a1,
long a2,
long a3,
long a4,
40 long pedigree_translation = posix_translate_syscall(which);
41 if (pedigree_translation == -1)
49 long r = syscall6_err(pedigree_translation, a1, a2, a3, a4, a5, a6, &err);
63 long __syscall(
long which,
long a1,
long a2,
long a3,
long a4,
66 return pedigree_translate_syscall(which, a1, a2, a3, a4, a5, a6);
70 int klog(
int prio,
const char *fmt, ...)
72 static char print_temp[1024];
74 va_start(argptr, fmt);
75 vsnprintf(print_temp,
sizeof print_temp, fmt, argptr);
76 syscall2(POSIX_SYSLOG, (
long) print_temp, prio);