NetBSD/sys/compat/mach/mach_syscallargs.h

189 lines
5.7 KiB
C
Raw Normal View History

/* $NetBSD: mach_syscallargs.h,v 1.3 2001/11/13 02:09:03 lukem Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.2 2001/07/29 19:30:57 christos Exp
*/
#ifndef _MACH_SYS__SYSCALLARGS_H_
#define _MACH_SYS__SYSCALLARGS_H_
#ifdef syscallarg
#undef syscallarg
#endif
#define syscallarg(x) \
union { \
register_t pad; \
struct { x datum; } le; \
struct { /* LINTED zero array dimension */ \
int8_t pad[ /* CONSTCOND */ \
(sizeof (register_t) < sizeof (x)) \
? 0 \
: sizeof (register_t) - sizeof (x)]; \
x datum; \
} be; \
}
2001-07-29 23:30:56 +04:00
struct mach_sys_msg_overwrite_trap_args {
syscallarg(mach_msg_header_t *) msg;
syscallarg(mach_msg_option_t) option;
syscallarg(mach_msg_size_t) send_size;
syscallarg(mach_msg_size_t) rcv_size;
syscallarg(mach_port_name_t) rcv_name;
syscallarg(mach_msg_timeout_t) timeout;
syscallarg(mach_port_name_t) notify;
syscallarg(mach_msg_header_t *) rcv_msg;
syscallarg(mach_msg_size_t) scatter_list_size;
};
struct mach_sys_semaphore_signal_trap_args {
syscallarg(mach_port_name_t) signal_name;
};
struct mach_sys_semaphore_signal_all_trap_args {
syscallarg(mach_port_name_t) signal_name;
};
struct mach_sys_semaphore_signal_thread_trap_args {
syscallarg(mach_port_name_t) signal_name;
};
struct mach_sys_semaphore_wait_trap_args {
syscallarg(mach_port_name_t) wait_name;
};
struct mach_sys_semaphore_wait_signal_trap_args {
syscallarg(mach_port_name_t) wait_name;
syscallarg(mach_port_name_t) signal_name;
};
struct mach_sys_semaphore_timedwait_trap_args {
syscallarg(mach_port_name_t) wait_name;
syscallarg(unsigned int) sec;
syscallarg(mach_clock_res_t) nsec;
};
struct mach_sys_semaphore_timedwait_signal_trap_args {
syscallarg(mach_port_name_t) wait_name;
syscallarg(mach_port_name_t) signal_name;
syscallarg(unsigned int) sec;
syscallarg(mach_clock_res_t) nsec;
};
struct mach_sys_map_fd_args {
syscallarg(int) fd;
syscallarg(mach_vm_offset_t) offset;
syscallarg(mach_vm_offset_t *) va;
syscallarg(mach_boolean_t) findspace;
syscallarg(mach_vm_size_t) size;
};
struct mach_sys_task_for_pid_args {
syscallarg(mach_port_t) target_tport;
syscallarg(int) pid;
syscallarg(mach_port_t *) t;
};
struct mach_sys_pid_for_task_args {
syscallarg(mach_port_t) t;
syscallarg(int *) x;
};
struct mach_sys_macx_swapon_args {
syscallarg(char *) name;
syscallarg(int) flags;
syscallarg(int) size;
syscallarg(int) priority;
};
struct mach_sys_macx_swapoff_args {
syscallarg(char *) name;
syscallarg(int) flags;
};
struct mach_sys_macx_triggers_args {
syscallarg(int) hi_water;
syscallarg(int) low_water;
syscallarg(int) flags;
syscallarg(mach_port_t) alert_port;
};
struct mach_sys_swtch_pri_args {
syscallarg(int) pri;
};
struct mach_sys_syscall_thread_switch_args {
syscallarg(mach_port_name_t) thread_name;
syscallarg(int) option;
syscallarg(mach_msg_timeout_t) option_time;
};
struct mach_sys_clock_sleep_trap_args {
syscallarg(mach_port_name_t) clock_name;
syscallarg(mach_sleep_type_t) sleep_type;
syscallarg(int) sleep_sec;
syscallarg(int) sleep_nsec;
syscallarg(mach_timespec_t *) wakeup_time;
};
struct mach_sys_timebase_info_args {
syscallarg(mach_timebase_info_t) info;
};
struct mach_sys_wait_until_args {
syscallarg(u_int64_t) deadline;
};
struct mach_sys_timer_destroy_args {
syscallarg(mach_port_name_t) name;
};
struct mach_sys_timer_arm_args {
syscallarg(mach_port_name_t) name;
syscallarg(mach_absolute_time_t) expire_time;
};
struct mach_sys_timer_cancel_args {
syscallarg(mach_port_name_t) name;
syscallarg(mach_absolute_time_t *) result_time;
};
/*
* System call prototypes.
*/
int mach_sys_reply_port(struct proc *, void *, register_t *);
int mach_sys_thread_self_trap(struct proc *, void *, register_t *);
int mach_sys_task_self_trap(struct proc *, void *, register_t *);
int mach_sys_host_self_trap(struct proc *, void *, register_t *);
int mach_sys_msg_overwrite_trap(struct proc *, void *, register_t *);
int mach_sys_semaphore_signal_trap(struct proc *, void *, register_t *);
int mach_sys_semaphore_signal_all_trap(struct proc *, void *, register_t *);
int mach_sys_semaphore_signal_thread_trap(struct proc *, void *, register_t *);
int mach_sys_semaphore_wait_trap(struct proc *, void *, register_t *);
int mach_sys_semaphore_wait_signal_trap(struct proc *, void *, register_t *);
int mach_sys_semaphore_timedwait_trap(struct proc *, void *, register_t *);
int mach_sys_semaphore_timedwait_signal_trap(struct proc *, void *, register_t *);
int mach_sys_init_process(struct proc *, void *, register_t *);
int mach_sys_map_fd(struct proc *, void *, register_t *);
int mach_sys_task_for_pid(struct proc *, void *, register_t *);
int mach_sys_pid_for_task(struct proc *, void *, register_t *);
int mach_sys_macx_swapon(struct proc *, void *, register_t *);
int mach_sys_macx_swapoff(struct proc *, void *, register_t *);
int mach_sys_macx_triggers(struct proc *, void *, register_t *);
int mach_sys_swtch_pri(struct proc *, void *, register_t *);
int mach_sys_swtch(struct proc *, void *, register_t *);
int mach_sys_syscall_thread_switch(struct proc *, void *, register_t *);
int mach_sys_clock_sleep_trap(struct proc *, void *, register_t *);
int mach_sys_timebase_info(struct proc *, void *, register_t *);
int mach_sys_wait_until(struct proc *, void *, register_t *);
int mach_sys_timer_create(struct proc *, void *, register_t *);
int mach_sys_timer_destroy(struct proc *, void *, register_t *);
int mach_sys_timer_arm(struct proc *, void *, register_t *);
int mach_sys_timer_cancel(struct proc *, void *, register_t *);
int mach_sys_get_time_base_info(struct proc *, void *, register_t *);
#endif /* _MACH_SYS__SYSCALLARGS_H_ */