1 /* 2 * System call switch table. 3 * 4 * DO NOT EDIT-- this file is automatically @generated. 5 */ 6 7 #include <sys/param.h> 8 #include <sys/sysent.h> 9 #include <sys/sysproto.h> 10 11 #define AS(name) (sizeof(struct name) / sizeof(syscallarg_t)) 12 13 /* The casts are bogus but will do for now. */ 14 struct sysent test_sysent[] = { 15 { .sy_narg = 0, .sy_call = (sy_call_t *)nosys, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_ABSENT }, /* 0 = unimpl_syscall0 */ 16 #ifdef PLATFORM_FOO 17 { .sy_narg = AS(syscall1_args), .sy_call = (sy_call_t *)sys_syscall1, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 1 = syscall1 */ 18 #else 19 { .sy_narg = 0, .sy_call = (sy_call_t *)nosys, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_ABSENT }, /* 1 = reserved for local use */ 20 #endif 21 #ifdef PLATFORM_FOO 22 { .sy_narg = 0, .sy_call = (sy_call_t *)nosys, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_ABSENT }, /* 2 = obsolete syscall2 */ 23 #else 24 { .sy_narg = 0, .sy_call = (sy_call_t *)sys_syscall2, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 2 = syscall2 */ 25 #endif 26 }; 27