Path: blob/main/sys/tools/syscalls/examples/cpp/test_proto.h
39530 views
/*1* System call prototypes.2*3* DO NOT EDIT-- this file is automatically @generated.4*/56#ifndef _TEST_SYSPROTO_H_7#define _TEST_SYSPROTO_H_89#include <sys/types.h>10#include <sys/signal.h>11#include <sys/cpuset.h>12#include <sys/domainset.h>13#include <sys/_ffcounter.h>14#include <sys/_semaphore.h>15#include <sys/ucontext.h>16#include <sys/wait.h>1718#include <bsm/audit_kevents.h>1920struct proc;2122struct thread;2324#define PAD_(t) (sizeof(syscallarg_t) <= sizeof(t) ? \250 : sizeof(syscallarg_t) - sizeof(t))2627#if BYTE_ORDER == LITTLE_ENDIAN28#define PADL_(t) 029#define PADR_(t) PAD_(t)30#else31#define PADL_(t) PAD_(t)32#define PADR_(t) 033#endif3435#ifdef PLATFORM_FOO36struct syscall1_args {37char arg1_l_[PADL_(int)]; int arg1; char arg1_r_[PADR_(int)];38};39#else40#endif41#ifdef PLATFORM_FOO42#else43struct syscall2_args {44syscallarg_t dummy;45};46#endif47#ifdef PLATFORM_FOO48int sys_syscall1(struct thread *, struct syscall1_args *);49#else50#endif51#ifdef PLATFORM_FOO52#else53int sys_syscall2(struct thread *, struct syscall2_args *);54#endif55#define TEST_SYS_AUE_syscall1 AUE_NULL56#define TEST_SYS_AUE_syscall2 AUE_NULL5758#undef PAD_59#undef PADL_60#undef PADR_6162#endif /* !_TEST_SYSPROTO_H_ */636465