xref: /freebsd/sys/tools/syscalls/examples/cpp/syscalls.master (revision fa38579f317d5c2ff2926fab9b12ee6d429bd155)
1#include <sys/param.h>
2#include <sys/sysent.h>
3#include <sys/sysproto.h>
4
50	AUE_NULL		UNIMPL	unimpl_syscall0
6
7; Scenario #1: Vendor uses a reserved slot on just a single platform
8#ifdef PLATFORM_FOO
91	AUE_NULL		STD {
10		int syscall1(
11		    int arg1
12		);
13	}
14#else
151	AUE_NULL		RESERVED
16#endif
17
18; Scenario #2: The other way around; vendor obsoletes a syscall on newer
19; platforms
20#ifdef PLATFORM_FOO
212	AUE_NULL		OBSOL	syscall2
22#else
232	AUE_NULL		STD {
24		int syscall2(void);
25	}
26#endif
27