source: mainline/uspace/lib/c/include/syscall.h@ cd1e3fc0

Last change on this file since cd1e3fc0 was d7f7a4a, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 3 years ago

Replace some license headers with SPDX identifier

Headers are replaced using tools/transorm-copyright.sh only
when it can be matched verbatim with the license header used
throughout most of the codebase.

  • Property mode set to 100644
File size: 914 bytes
RevLine 
[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]35extern 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.