|
PatchworkOS
|
#include <kernel/cpu/syscalls.h>#include <errno.h>#include <stdarg.h>#include <stdint.h>#include <sys/io.h>#include <sys/proc.h>#include <time.h>Go to the source code of this file.
Macros | |
| #define | _SYSCALL0(retType, num) |
| #define | _SYSCALL1(retType, num, type1, arg1) |
| #define | _SYSCALL2(retType, num, type1, arg1, type2, arg2) |
| #define | _SYSCALL3(retType, num, type1, arg1, type2, arg2, type3, arg3) |
| #define | _SYSCALL4(retType, num, type1, arg1, type2, arg2, type3, arg3, type4, arg4) |
| #define | _SYSCALL5(retType, num, type1, arg1, type2, arg2, type3, arg3, type4, arg4, type5, arg5) |
| #define | _SYSCALL6(retType, num, type1, arg1, type2, arg2, type3, arg3, type4, arg4, type5, arg5, type6, arg6) |
| #define _SYSCALL0 | ( | retType, | |
| num | |||
| ) |
Definition at line 12 of file syscalls.h.
| #define _SYSCALL1 | ( | retType, | |
| num, | |||
| type1, | |||
| arg1 | |||
| ) |
Definition at line 19 of file syscalls.h.
| #define _SYSCALL2 | ( | retType, | |
| num, | |||
| type1, | |||
| arg1, | |||
| type2, | |||
| arg2 | |||
| ) |
Definition at line 27 of file syscalls.h.
| #define _SYSCALL3 | ( | retType, | |
| num, | |||
| type1, | |||
| arg1, | |||
| type2, | |||
| arg2, | |||
| type3, | |||
| arg3 | |||
| ) |
Definition at line 36 of file syscalls.h.
| #define _SYSCALL4 | ( | retType, | |
| num, | |||
| type1, | |||
| arg1, | |||
| type2, | |||
| arg2, | |||
| type3, | |||
| arg3, | |||
| type4, | |||
| arg4 | |||
| ) |
Definition at line 46 of file syscalls.h.
| #define _SYSCALL5 | ( | retType, | |
| num, | |||
| type1, | |||
| arg1, | |||
| type2, | |||
| arg2, | |||
| type3, | |||
| arg3, | |||
| type4, | |||
| arg4, | |||
| type5, | |||
| arg5 | |||
| ) |
Definition at line 60 of file syscalls.h.
| #define _SYSCALL6 | ( | retType, | |
| num, | |||
| type1, | |||
| arg1, | |||
| type2, | |||
| arg2, | |||
| type3, | |||
| arg3, | |||
| type4, | |||
| arg4, | |||
| type5, | |||
| arg5, | |||
| type6, | |||
| arg6 | |||
| ) |
Definition at line 75 of file syscalls.h.
Definition at line 258 of file syscalls.h.
References _SYSCALL2, and SYS_BIND.
Referenced by bind().
|
inlinestatic |
Definition at line 178 of file syscalls.h.
References _SYSCALL1, and SYS_CHDIR.
Referenced by chdir().
Definition at line 253 of file syscalls.h.
References _SYSCALL1, and SYS_CLAIM.
Referenced by claim().
Definition at line 153 of file syscalls.h.
References _SYSCALL1, and SYS_CLOSE.
Referenced by close().
Definition at line 228 of file syscalls.h.
References _SYSCALL2, and SYS_DUP2.
Referenced by dup2().
|
inlinestatic |
Definition at line 118 of file syscalls.h.
References _SYSCALL0, and SYS_ERRNO.
Referenced by _thread_new(), bind(), chdir(), claim(), close(), dup(), dup2(), futex(), getdents(), getpid(), gettid(), ioctl(), link(), mmap(), mprotect(), munmap(), nanosleep(), open(), open2(), poll(), read(), remove(), rename(), seek(), share(), spawn(), stat(), unlink(), uptime(), vremovef(), and write().
|
inlinestatic |
Definition at line 233 of file syscalls.h.
References _SYSCALL4, and SYS_FUTEX.
Referenced by futex().
Definition at line 208 of file syscalls.h.
References _SYSCALL3, buffer, count, and SYS_GETDENTS.
Referenced by getdents().
|
inlinestatic |
Definition at line 123 of file syscalls.h.
References _SYSCALL0, and SYS_GETPID.
Referenced by getpid().
|
inlinestatic |
Definition at line 128 of file syscalls.h.
References _SYSCALL0, and SYS_GETTID.
Referenced by _threading_init(), and gettid().
|
inlinestatic |
Definition at line 173 of file syscalls.h.
References _SYSCALL4, and SYS_IOCTL.
Referenced by ioctl().
|
inlinestatic |
Definition at line 203 of file syscalls.h.
References _SYSCALL3, address, and SYS_MPROTECT.
Referenced by mprotect().
Definition at line 198 of file syscalls.h.
References _SYSCALL2, address, and SYS_MUNMAP.
Referenced by munmap().
Definition at line 113 of file syscalls.h.
References _SYSCALL1, and SYS_NANOSLEEP.
Referenced by nanosleep().
|
inlinestatic |
Definition at line 143 of file syscalls.h.
References _SYSCALL1, and SYS_OPEN.
Referenced by open().
Definition at line 148 of file syscalls.h.
References _SYSCALL2, and SYS_OPEN2.
Referenced by open2().
Definition at line 183 of file syscalls.h.
References _SYSCALL3, and SYS_POLL.
Referenced by poll().
Definition at line 91 of file syscalls.h.
References _SYSCALL1, and SYS_PROCESS_EXIT.
Referenced by exit().
|
inlinestatic |
Definition at line 238 of file syscalls.h.
References _SYSCALL1, and SYS_REMOVE.
Referenced by remove(), rename(), unlink(), and vremovef().
|
inlinestatic |
Definition at line 168 of file syscalls.h.
References _SYSCALL3, and SYS_SEEK.
Referenced by seek().
Definition at line 248 of file syscalls.h.
References _SYSCALL3, and SYS_SHARE.
Referenced by share().
|
inlinestatic |
Definition at line 107 of file syscalls.h.
References _SYSCALL4, and SYS_SPAWN.
Referenced by spawn().
|
inlinestatic |
Definition at line 213 of file syscalls.h.
References _SYSCALL2, and SYS_THREAD_CREATE.
Referenced by _thread_new().
|
inlinestatic |
Definition at line 99 of file syscalls.h.
References _SYSCALL0, and SYS_THREAD_EXIT.
Referenced by thrd_exit().
|
inlinestatic |
Definition at line 138 of file syscalls.h.
References _SYSCALL0, and SYS_UNIX_EPOCH.
Referenced by time().
|
inlinestatic |
Definition at line 133 of file syscalls.h.
References _SYSCALL0, and SYS_UPTIME.
Referenced by uptime().
|
inlinestatic |
Definition at line 218 of file syscalls.h.
References _SYSCALL0, and SYS_YIELD.
Referenced by thrd_yield().