source: mainline/uspace/lib/c/include/libc.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: 962 bytes
Line 
1/*
2 * SPDX-FileCopyrightText: 2005 Martin Decky
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7/** @addtogroup libc
8 * @{
9 */
10/** @file
11 */
12
13#ifndef _LIBC_LIBC_H_
14#define _LIBC_LIBC_H_
15
16#include <stdint.h>
17#include <abi/syscall.h>
18#include <libarch/syscall.h>
19
20#ifdef __32_BITS__
21
22/** Explicit 64-bit arguments passed to syscalls. */
23typedef uint64_t sysarg64_t;
24
25#endif /* __32_BITS__ */
26
27#define __SYSCALL0(id) \
28 __syscall0(0, 0, 0, 0, 0, 0, id)
29#define __SYSCALL1(id, p1) \
30 __syscall1(p1, 0, 0, 0, 0, 0, id)
31#define __SYSCALL2(id, p1, p2) \
32 __syscall2(p1, p2, 0, 0, 0, 0, id)
33#define __SYSCALL3(id, p1, p2, p3) \
34 __syscall3(p1, p2, p3, 0, 0, 0, id)
35#define __SYSCALL4(id, p1, p2, p3, p4) \
36 __syscall4(p1, p2, p3, p4, 0, 0, id)
37#define __SYSCALL5(id, p1, p2, p3, p4, p5) \
38 __syscall5(p1, p2, p3, p4, p5, 0, id)
39#define __SYSCALL6(id, p1, p2, p3, p4, p5, p6) \
40 __syscall6(p1, p2, p3, p4, p5, p6, id)
41
42extern void __libc_fini(void);
43
44#endif
45
46/** @}
47 */
Note: See TracBrowser for help on using the repository browser.