source:
mainline/uspace/lib/c/include/syscall.h@
cd1e3fc0
| Last change on this file since cd1e3fc0 was d7f7a4a, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 914 bytes | |
| Rev | Line | |
|---|---|---|
| [bb5b950] | 1 | /* |
| [d7f7a4a] | 2 | * SPDX-FileCopyrightText: 2005 Martin Decky |
| [bb5b950] | 3 | * |
| [d7f7a4a] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
| [bb5b950] | 5 | */ |
| 6 | ||
| [002e613] | 7 | /** @addtogroup libc |
| [bb5b950] | 8 | * @{ |
| 9 | */ | |
| [002e613] | 10 | /** |
| 11 | * @file | |
| [47b7006] | 12 | * @brief Syscall function declaration for architectures that don't |
| 13 | * inline syscalls or architectures that handle syscalls | |
| 14 | * according to the number of arguments. | |
| [bb5b950] | 15 | */ |
| 16 | ||
| [4805495] | 17 | #ifndef _LIBC_SYSCALL_H_ |
| 18 | #define _LIBC_SYSCALL_H_ | |
| [bb5b950] | 19 | |
| [47b7006] | 20 | #ifndef LIBARCH_SYSCALL_GENERIC |
| [5b0cf63] | 21 | #error You cannot include this file directly |
| [f2ef7fd] | 22 | #endif |
| 23 | ||
| [c0699467] | 24 | #include <abi/syscall.h> |
| [cf13b17] | 25 | #include <types/common.h> |
| [002e613] | 26 | |
| [47b7006] | 27 | #define __syscall0 __syscall |
| 28 | #define __syscall1 __syscall | |
| 29 | #define __syscall2 __syscall | |
| 30 | #define __syscall3 __syscall | |
| 31 | #define __syscall4 __syscall | |
| 32 | #define __syscall5 __syscall | |
| 33 | #define __syscall6 __syscall | |
| [f2ef7fd] | 34 | |
| [e686744c] | 35 | extern sysarg_t __syscall(const sysarg_t p1, const sysarg_t p2, |
| 36 | const sysarg_t p3, const sysarg_t p4, const sysarg_t p5, const sysarg_t p6, | |
| 37 | const syscall_t id); | |
| [002e613] | 38 | |
| 39 | #endif | |
| [bb5b950] | 40 | |
| 41 | /** @} | |
| 42 | */ |
Note:
See TracBrowser
for help on using the repository browser.
