Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/sys/tools/syscalls/examples/cpp/test_proto.h
39530 views
1
/*
2
* System call prototypes.
3
*
4
* DO NOT EDIT-- this file is automatically @generated.
5
*/
6
7
#ifndef _TEST_SYSPROTO_H_
8
#define _TEST_SYSPROTO_H_
9
10
#include <sys/types.h>
11
#include <sys/signal.h>
12
#include <sys/cpuset.h>
13
#include <sys/domainset.h>
14
#include <sys/_ffcounter.h>
15
#include <sys/_semaphore.h>
16
#include <sys/ucontext.h>
17
#include <sys/wait.h>
18
19
#include <bsm/audit_kevents.h>
20
21
struct proc;
22
23
struct thread;
24
25
#define PAD_(t) (sizeof(syscallarg_t) <= sizeof(t) ? \
26
0 : sizeof(syscallarg_t) - sizeof(t))
27
28
#if BYTE_ORDER == LITTLE_ENDIAN
29
#define PADL_(t) 0
30
#define PADR_(t) PAD_(t)
31
#else
32
#define PADL_(t) PAD_(t)
33
#define PADR_(t) 0
34
#endif
35
36
#ifdef PLATFORM_FOO
37
struct syscall1_args {
38
char arg1_l_[PADL_(int)]; int arg1; char arg1_r_[PADR_(int)];
39
};
40
#else
41
#endif
42
#ifdef PLATFORM_FOO
43
#else
44
struct syscall2_args {
45
syscallarg_t dummy;
46
};
47
#endif
48
#ifdef PLATFORM_FOO
49
int sys_syscall1(struct thread *, struct syscall1_args *);
50
#else
51
#endif
52
#ifdef PLATFORM_FOO
53
#else
54
int sys_syscall2(struct thread *, struct syscall2_args *);
55
#endif
56
#define TEST_SYS_AUE_syscall1 AUE_NULL
57
#define TEST_SYS_AUE_syscall2 AUE_NULL
58
59
#undef PAD_
60
#undef PADL_
61
#undef PADR_
62
63
#endif /* !_TEST_SYSPROTO_H_ */
64
65