mirror of
https://github.com/opnsense/src.git
synced 2026-06-07 07:42:26 -04:00
This exercises some subset of the preprocessor that would be nice to still support. Pull Request: https://github.com/freebsd/freebsd-src/pull/1575
26 lines
479 B
Text
26 lines
479 B
Text
#include <sys/param.h>
|
|
#include <sys/sysent.h>
|
|
#include <sys/sysproto.h>
|
|
|
|
0 AUE_NULL UNIMPL unimpl_syscall0
|
|
|
|
; Scenario #1: Vendor uses a reserved slot on just a single platform
|
|
#ifdef PLATFORM_FOO
|
|
1 AUE_NULL STD {
|
|
int syscall1(
|
|
int arg1
|
|
);
|
|
}
|
|
#else
|
|
1 AUE_NULL RESERVED
|
|
#endif
|
|
|
|
; Scenario #2: The other way around; vendor obsoletes a syscall on newer
|
|
; platforms
|
|
#ifdef PLATFORM_FOO
|
|
2 AUE_NULL OBSOL syscall2
|
|
#else
|
|
2 AUE_NULL STD {
|
|
int syscall2(void);
|
|
}
|
|
#endif
|