diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/i386/ibcs2/ibcs2_isc_syscall.h | 2 | ||||
-rw-r--r-- | sys/i386/ibcs2/ibcs2_isc_sysent.c | 6 | ||||
-rw-r--r-- | sys/i386/ibcs2/ibcs2_proto.h | 526 | ||||
-rw-r--r-- | sys/i386/ibcs2/ibcs2_syscall.h | 2 | ||||
-rw-r--r-- | sys/i386/ibcs2/ibcs2_sysent.c | 12 | ||||
-rw-r--r-- | sys/i386/ibcs2/ibcs2_xenix.h | 112 | ||||
-rw-r--r-- | sys/i386/ibcs2/ibcs2_xenix_syscall.h | 2 | ||||
-rw-r--r-- | sys/i386/ibcs2/ibcs2_xenix_sysent.c | 6 |
8 files changed, 351 insertions, 317 deletions
diff --git a/sys/i386/ibcs2/ibcs2_isc_syscall.h b/sys/i386/ibcs2/ibcs2_isc_syscall.h index 3ad2bae..cb1e638 100644 --- a/sys/i386/ibcs2/ibcs2_isc_syscall.h +++ b/sys/i386/ibcs2/ibcs2_isc_syscall.h @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/i386/ibcs2/syscalls.isc,v 1.5 1999/08/28 00:44:01 peter Exp + * created from FreeBSD: src/sys/i386/ibcs2/syscalls.isc,v 1.6 2003/12/24 00:14:08 peter Exp */ #define IBCS2_ISC_ibcs2_rename 2 diff --git a/sys/i386/ibcs2/ibcs2_isc_sysent.c b/sys/i386/ibcs2/ibcs2_isc_sysent.c index becce3d..aa9a829 100644 --- a/sys/i386/ibcs2/ibcs2_isc_sysent.c +++ b/sys/i386/ibcs2/ibcs2_isc_sysent.c @@ -2,12 +2,10 @@ * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from FreeBSD: src/sys/i386/ibcs2/syscalls.isc,v 1.5 1999/08/28 00:44:01 peter Exp + * $FreeBSD$ + * created from FreeBSD: src/sys/i386/ibcs2/syscalls.isc,v 1.6 2003/12/24 00:14:08 peter Exp */ -#include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); - #include <sys/param.h> #include <sys/sysent.h> #include <sys/sysproto.h> diff --git a/sys/i386/ibcs2/ibcs2_proto.h b/sys/i386/ibcs2/ibcs2_proto.h index 9e49af1..bc4b2ec 100644 --- a/sys/i386/ibcs2/ibcs2_proto.h +++ b/sys/i386/ibcs2/ibcs2_proto.h @@ -3,15 +3,19 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/i386/ibcs2/syscalls.master,v 1.12 2000/07/29 10:05:25 peter Exp + * created from FreeBSD: src/sys/i386/ibcs2/syscalls.master,v 1.14 2003/12/24 00:14:08 peter Exp */ #ifndef _IBCS2_SYSPROTO_H_ #define _IBCS2_SYSPROTO_H_ #include <sys/signal.h> - #include <sys/acl.h> +#include <sys/thr.h> +#include <sys/umtx.h> +#include <posix4/_semaphore.h> + +#include <sys/ucontext.h> struct proc; @@ -20,259 +24,267 @@ struct thread; #define PAD_(t) (sizeof(register_t) <= sizeof(t) ? \ 0 : sizeof(register_t) - sizeof(t)) -struct ibcs2_read_args { - int fd; char fd_[PAD_(int)]; - char * buf; char buf_[PAD_(char *)]; - u_int nbytes; char nbytes_[PAD_(u_int)]; -}; -struct ibcs2_open_args { - char * path; char path_[PAD_(char *)]; - int flags; char flags_[PAD_(int)]; - int mode; char mode_[PAD_(int)]; -}; -struct ibcs2_wait_args { - int a1; char a1_[PAD_(int)]; - int a2; char a2_[PAD_(int)]; - int a3; char a3_[PAD_(int)]; -}; -struct ibcs2_creat_args { - char * path; char path_[PAD_(char *)]; - int mode; char mode_[PAD_(int)]; -}; -struct ibcs2_unlink_args { - char * path; char path_[PAD_(char *)]; -}; -struct ibcs2_execv_args { - char * path; char path_[PAD_(char *)]; - char ** argp; char argp_[PAD_(char **)]; -}; -struct ibcs2_chdir_args { - char * path; char path_[PAD_(char *)]; -}; -struct ibcs2_time_args { - ibcs2_time_t * tp; char tp_[PAD_(ibcs2_time_t *)]; -}; -struct ibcs2_mknod_args { - char * path; char path_[PAD_(char *)]; - int mode; char mode_[PAD_(int)]; - int dev; char dev_[PAD_(int)]; -}; -struct ibcs2_chmod_args { - char * path; char path_[PAD_(char *)]; - int mode; char mode_[PAD_(int)]; -}; -struct ibcs2_chown_args { - char * path; char path_[PAD_(char *)]; - int uid; char uid_[PAD_(int)]; - int gid; char gid_[PAD_(int)]; -}; -struct ibcs2_stat_args { - char * path; char path_[PAD_(char *)]; - struct ibcs2_stat * st; char st_[PAD_(struct ibcs2_stat *)]; -}; -struct ibcs2_lseek_args { - int fd; char fd_[PAD_(int)]; - long offset; char offset_[PAD_(long)]; - int whence; char whence_[PAD_(int)]; -}; -struct ibcs2_mount_args { - char * special; char special_[PAD_(char *)]; - char * dir; char dir_[PAD_(char *)]; - int flags; char flags_[PAD_(int)]; - int fstype; char fstype_[PAD_(int)]; - char * data; char data_[PAD_(char *)]; - int len; char len_[PAD_(int)]; -}; -struct ibcs2_umount_args { - char * name; char name_[PAD_(char *)]; -}; -struct ibcs2_setuid_args { - int uid; char uid_[PAD_(int)]; -}; -struct ibcs2_stime_args { - long * timep; char timep_[PAD_(long *)]; -}; -struct ibcs2_alarm_args { - unsigned sec; char sec_[PAD_(unsigned)]; -}; -struct ibcs2_fstat_args { - int fd; char fd_[PAD_(int)]; - struct ibcs2_stat * st; char st_[PAD_(struct ibcs2_stat *)]; -}; -struct ibcs2_pause_args { +#if BYTE_ORDER == LITTLE_ENDIAN +#define PADL_(t) 0 +#define PADR_(t) PAD_(t) +#else +#define PADL_(t) PAD_(t) +#define PADR_(t) 0 +#endif + +struct ibcs2_read_args { + char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; + char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)]; + char nbytes_l_[PADL_(u_int)]; u_int nbytes; char nbytes_r_[PADR_(u_int)]; +}; +struct ibcs2_open_args { + char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; + char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; + char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)]; +}; +struct ibcs2_wait_args { + char a1_l_[PADL_(int)]; int a1; char a1_r_[PADR_(int)]; + char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)]; + char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)]; +}; +struct ibcs2_creat_args { + char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; + char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)]; +}; +struct ibcs2_unlink_args { + char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; +}; +struct ibcs2_execv_args { + char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; + char argp_l_[PADL_(char **)]; char ** argp; char argp_r_[PADR_(char **)]; +}; +struct ibcs2_chdir_args { + char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; +}; +struct ibcs2_time_args { + char tp_l_[PADL_(ibcs2_time_t *)]; ibcs2_time_t * tp; char tp_r_[PADR_(ibcs2_time_t *)]; +}; +struct ibcs2_mknod_args { + char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; + char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)]; + char dev_l_[PADL_(int)]; int dev; char dev_r_[PADR_(int)]; +}; +struct ibcs2_chmod_args { + char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; + char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)]; +}; +struct ibcs2_chown_args { + char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; + char uid_l_[PADL_(int)]; int uid; char uid_r_[PADR_(int)]; + char gid_l_[PADL_(int)]; int gid; char gid_r_[PADR_(int)]; +}; +struct ibcs2_stat_args { + char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; + char st_l_[PADL_(struct ibcs2_stat *)]; struct ibcs2_stat * st; char st_r_[PADR_(struct ibcs2_stat *)]; +}; +struct ibcs2_lseek_args { + char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; + char offset_l_[PADL_(long)]; long offset; char offset_r_[PADR_(long)]; + char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)]; +}; +struct ibcs2_mount_args { + char special_l_[PADL_(char *)]; char * special; char special_r_[PADR_(char *)]; + char dir_l_[PADL_(char *)]; char * dir; char dir_r_[PADR_(char *)]; + char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; + char fstype_l_[PADL_(int)]; int fstype; char fstype_r_[PADR_(int)]; + char data_l_[PADL_(char *)]; char * data; char data_r_[PADR_(char *)]; + char len_l_[PADL_(int)]; int len; char len_r_[PADR_(int)]; +}; +struct ibcs2_umount_args { + char name_l_[PADL_(char *)]; char * name; char name_r_[PADR_(char *)]; +}; +struct ibcs2_setuid_args { + char uid_l_[PADL_(int)]; int uid; char uid_r_[PADR_(int)]; +}; +struct ibcs2_stime_args { + char timep_l_[PADL_(long *)]; long * timep; char timep_r_[PADR_(long *)]; +}; +struct ibcs2_alarm_args { + char sec_l_[PADL_(unsigned)]; unsigned sec; char sec_r_[PADR_(unsigned)]; +}; +struct ibcs2_fstat_args { + char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; + char st_l_[PADL_(struct ibcs2_stat *)]; struct ibcs2_stat * st; char st_r_[PADR_(struct ibcs2_stat *)]; +}; +struct ibcs2_pause_args { register_t dummy; }; -struct ibcs2_utime_args { - char * path; char path_[PAD_(char *)]; - struct ibcs2_utimbuf * buf; char buf_[PAD_(struct ibcs2_utimbuf *)]; -}; -struct ibcs2_stty_args { - int fd; char fd_[PAD_(int)]; - struct sgttyb * buf; char buf_[PAD_(struct sgttyb *)]; -}; -struct ibcs2_gtty_args { - int fd; char fd_[PAD_(int)]; - struct sgttyb * buf; char buf_[PAD_(struct sgttyb *)]; -}; -struct ibcs2_access_args { - char * path; char path_[PAD_(char *)]; - int flags; char flags_[PAD_(int)]; -}; -struct ibcs2_nice_args { - int incr; char incr_[PAD_(int)]; -}; -struct ibcs2_statfs_args { - char * path; char path_[PAD_(char *)]; - struct ibcs2_statfs * buf; char buf_[PAD_(struct ibcs2_statfs *)]; - int len; char len_[PAD_(int)]; - int fstype; char fstype_[PAD_(int)]; -}; -struct ibcs2_kill_args { - int pid; char pid_[PAD_(int)]; - int signo; char signo_[PAD_(int)]; -}; -struct ibcs2_fstatfs_args { - int fd; char fd_[PAD_(int)]; - struct ibcs2_statfs * buf; char buf_[PAD_(struct ibcs2_statfs *)]; - int len; char len_[PAD_(int)]; - int fstype; char fstype_[PAD_(int)]; -}; -struct ibcs2_pgrpsys_args { - int type; char type_[PAD_(int)]; - caddr_t dummy; char dummy_[PAD_(caddr_t)]; - int pid; char pid_[PAD_(int)]; - int pgid; char pgid_[PAD_(int)]; -}; -struct ibcs2_xenix_args { - int a1; char a1_[PAD_(int)]; - int a2; char a2_[PAD_(int)]; - int a3; char a3_[PAD_(int)]; - int a4; char a4_[PAD_(int)]; - int a5; char a5_[PAD_(int)]; -}; -struct ibcs2_times_args { - struct tms * tp; char tp_[PAD_(struct tms *)]; -}; -struct ibcs2_plock_args { - int cmd; char cmd_[PAD_(int)]; -}; -struct ibcs2_setgid_args { - int gid; char gid_[PAD_(int)]; -}; -struct ibcs2_sigsys_args { - int sig; char sig_[PAD_(int)]; - ibcs2_sig_t fp; char fp_[PAD_(ibcs2_sig_t)]; -}; -struct ibcs2_msgsys_args { - int which; char which_[PAD_(int)]; - int a2; char a2_[PAD_(int)]; - int a3; char a3_[PAD_(int)]; - int a4; char a4_[PAD_(int)]; - int a5; char a5_[PAD_(int)]; - int a6; char a6_[PAD_(int)]; -}; -struct ibcs2_sysi86_args { - int cmd; char cmd_[PAD_(int)]; - int * arg; char arg_[PAD_(int *)]; -}; -struct ibcs2_shmsys_args { - int which; char which_[PAD_(int)]; - int a2; char a2_[PAD_(int)]; - int a3; char a3_[PAD_(int)]; - int a4; char a4_[PAD_(int)]; -}; -struct ibcs2_semsys_args { - int which; char which_[PAD_(int)]; - int a2; char a2_[PAD_(int)]; - int a3; char a3_[PAD_(int)]; - int a4; char a4_[PAD_(int)]; - int a5; char a5_[PAD_(int)]; -}; -struct ibcs2_ioctl_args { - int fd; char fd_[PAD_(int)]; - int cmd; char cmd_[PAD_(int)]; - caddr_t data; char data_[PAD_(caddr_t)]; -}; -struct ibcs2_uadmin_args { - int cmd; char cmd_[PAD_(int)]; - int func; char func_[PAD_(int)]; - caddr_t data; char data_[PAD_(caddr_t)]; -}; -struct ibcs2_utssys_args { - int a1; char a1_[PAD_(int)]; - int a2; char a2_[PAD_(int)]; - int flag; char flag_[PAD_(int)]; -}; -struct ibcs2_execve_args { - char * path; char path_[PAD_(char *)]; - char ** argp; char argp_[PAD_(char **)]; - char ** envp; char envp_[PAD_(char **)]; -}; -struct ibcs2_fcntl_args { - int fd; char fd_[PAD_(int)]; - int cmd; char cmd_[PAD_(int)]; - char * arg; char arg_[PAD_(char *)]; -}; -struct ibcs2_ulimit_args { - int cmd; char cmd_[PAD_(int)]; - int newlimit; char newlimit_[PAD_(int)]; -}; -struct ibcs2_rmdir_args { - char * path; char path_[PAD_(char *)]; -}; -struct ibcs2_mkdir_args { - char * path; char path_[PAD_(char *)]; - int mode; char mode_[PAD_(int)]; -}; -struct ibcs2_getdents_args { - int fd; char fd_[PAD_(int)]; - char * buf; char buf_[PAD_(char *)]; - int nbytes; char nbytes_[PAD_(int)]; -}; -struct ibcs2_sysfs_args { - int cmd; char cmd_[PAD_(int)]; - caddr_t d1; char d1_[PAD_(caddr_t)]; - char * buf; char buf_[PAD_(char *)]; -}; -struct ibcs2_getmsg_args { - int fd; char fd_[PAD_(int)]; - struct ibcs2_stropts * ctl; char ctl_[PAD_(struct ibcs2_stropts *)]; - struct ibcs2_stropts * dat; char dat_[PAD_(struct ibcs2_stropts *)]; - int * flags; char flags_[PAD_(int *)]; -}; -struct ibcs2_putmsg_args { - int fd; char fd_[PAD_(int)]; - struct ibcs2_stropts * ctl; char ctl_[PAD_(struct ibcs2_stropts *)]; - struct ibcs2_stropts * dat; char dat_[PAD_(struct ibcs2_stropts *)]; - int flags; char flags_[PAD_(int)]; -}; -struct ibcs2_poll_args { - struct ibcs2_poll * fds; char fds_[PAD_(struct ibcs2_poll *)]; - long nfds; char nfds_[PAD_(long)]; - int timeout; char timeout_[PAD_(int)]; -}; -struct ibcs2_secure_args { - int cmd; char cmd_[PAD_(int)]; - int a1; char a1_[PAD_(int)]; - int a2; char a2_[PAD_(int)]; - int a3; char a3_[PAD_(int)]; - int a4; char a4_[PAD_(int)]; - int a5; char a5_[PAD_(int)]; -}; -struct ibcs2_symlink_args { - char * path; char path_[PAD_(char *)]; - char * link; char link_[PAD_(char *)]; -}; -struct ibcs2_lstat_args { - char * path; char path_[PAD_(char *)]; - struct ibcs2_stat * st; char st_[PAD_(struct ibcs2_stat *)]; -}; -struct ibcs2_readlink_args { - char * path; char path_[PAD_(char *)]; - char * buf; char buf_[PAD_(char *)]; - int count; char count_[PAD_(int)]; -}; -struct ibcs2_isc_args { +struct ibcs2_utime_args { + char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; + char buf_l_[PADL_(struct ibcs2_utimbuf *)]; struct ibcs2_utimbuf * buf; char buf_r_[PADR_(struct ibcs2_utimbuf *)]; +}; +struct ibcs2_stty_args { + char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; + char buf_l_[PADL_(struct sgttyb *)]; struct sgttyb * buf; char buf_r_[PADR_(struct sgttyb *)]; +}; +struct ibcs2_gtty_args { + char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; + char buf_l_[PADL_(struct sgttyb *)]; struct sgttyb * buf; char buf_r_[PADR_(struct sgttyb *)]; +}; +struct ibcs2_access_args { + char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; + char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; +}; +struct ibcs2_nice_args { + char incr_l_[PADL_(int)]; int incr; char incr_r_[PADR_(int)]; +}; +struct ibcs2_statfs_args { + char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; + char buf_l_[PADL_(struct ibcs2_statfs *)]; struct ibcs2_statfs * buf; char buf_r_[PADR_(struct ibcs2_statfs *)]; + char len_l_[PADL_(int)]; int len; char len_r_[PADR_(int)]; + char fstype_l_[PADL_(int)]; int fstype; char fstype_r_[PADR_(int)]; +}; +struct ibcs2_kill_args { + char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)]; + char signo_l_[PADL_(int)]; int signo; char signo_r_[PADR_(int)]; +}; +struct ibcs2_fstatfs_args { + char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; + char buf_l_[PADL_(struct ibcs2_statfs *)]; struct ibcs2_statfs * buf; char buf_r_[PADR_(struct ibcs2_statfs *)]; + char len_l_[PADL_(int)]; int len; char len_r_[PADR_(int)]; + char fstype_l_[PADL_(int)]; int fstype; char fstype_r_[PADR_(int)]; +}; +struct ibcs2_pgrpsys_args { + char type_l_[PADL_(int)]; int type; char type_r_[PADR_(int)]; + char dummy_l_[PADL_(caddr_t)]; caddr_t dummy; char dummy_r_[PADR_(caddr_t)]; + char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)]; + char pgid_l_[PADL_(int)]; int pgid; char pgid_r_[PADR_(int)]; +}; +struct ibcs2_xenix_args { + char a1_l_[PADL_(int)]; int a1; char a1_r_[PADR_(int)]; + char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)]; + char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)]; + char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)]; + char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)]; +}; +struct ibcs2_times_args { + char tp_l_[PADL_(struct tms *)]; struct tms * tp; char tp_r_[PADR_(struct tms *)]; +}; +struct ibcs2_plock_args { + char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; +}; +struct ibcs2_setgid_args { + char gid_l_[PADL_(int)]; int gid; char gid_r_[PADR_(int)]; +}; +struct ibcs2_sigsys_args { + char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)]; + char fp_l_[PADL_(ibcs2_sig_t)]; ibcs2_sig_t fp; char fp_r_[PADR_(ibcs2_sig_t)]; +}; +struct ibcs2_msgsys_args { + char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)]; + char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)]; + char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)]; + char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)]; + char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)]; + char a6_l_[PADL_(int)]; int a6; char a6_r_[PADR_(int)]; +}; +struct ibcs2_sysi86_args { + char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; + char arg_l_[PADL_(int *)]; int * arg; char arg_r_[PADR_(int *)]; +}; +struct ibcs2_shmsys_args { + char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)]; + char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)]; + char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)]; + char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)]; +}; +struct ibcs2_semsys_args { + char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)]; + char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)]; + char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)]; + char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)]; + char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)]; +}; +struct ibcs2_ioctl_args { + char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; + char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; + char data_l_[PADL_(caddr_t)]; caddr_t data; char data_r_[PADR_(caddr_t)]; +}; +struct ibcs2_uadmin_args { + char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; + char func_l_[PADL_(int)]; int func; char func_r_[PADR_(int)]; + char data_l_[PADL_(caddr_t)]; caddr_t data; char data_r_[PADR_(caddr_t)]; +}; +struct ibcs2_utssys_args { + char a1_l_[PADL_(int)]; int a1; char a1_r_[PADR_(int)]; + char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)]; + char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)]; +}; +struct ibcs2_execve_args { + char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; + char argp_l_[PADL_(char **)]; char ** argp; char argp_r_[PADR_(char **)]; + char envp_l_[PADL_(char **)]; char ** envp; char envp_r_[PADR_(char **)]; +}; +struct ibcs2_fcntl_args { + char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; + char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; + char arg_l_[PADL_(char *)]; char * arg; char arg_r_[PADR_(char *)]; +}; +struct ibcs2_ulimit_args { + char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; + char newlimit_l_[PADL_(int)]; int newlimit; char newlimit_r_[PADR_(int)]; +}; +struct ibcs2_rmdir_args { + char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; +}; +struct ibcs2_mkdir_args { + char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; + char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)]; +}; +struct ibcs2_getdents_args { + char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; + char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)]; + char nbytes_l_[PADL_(int)]; int nbytes; char nbytes_r_[PADR_(int)]; +}; +struct ibcs2_sysfs_args { + char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; + char d1_l_[PADL_(caddr_t)]; caddr_t d1; char d1_r_[PADR_(caddr_t)]; + char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)]; +}; +struct ibcs2_getmsg_args { + char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; + char ctl_l_[PADL_(struct ibcs2_stropts *)]; struct ibcs2_stropts * ctl; char ctl_r_[PADR_(struct ibcs2_stropts *)]; + char dat_l_[PADL_(struct ibcs2_stropts *)]; struct ibcs2_stropts * dat; char dat_r_[PADR_(struct ibcs2_stropts *)]; + char flags_l_[PADL_(int *)]; int * flags; char flags_r_[PADR_(int *)]; +}; +struct ibcs2_putmsg_args { + char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; + char ctl_l_[PADL_(struct ibcs2_stropts *)]; struct ibcs2_stropts * ctl; char ctl_r_[PADR_(struct ibcs2_stropts *)]; + char dat_l_[PADL_(struct ibcs2_stropts *)]; struct ibcs2_stropts * dat; char dat_r_[PADR_(struct ibcs2_stropts *)]; + char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; +}; +struct ibcs2_poll_args { + char fds_l_[PADL_(struct ibcs2_poll *)]; struct ibcs2_poll * fds; char fds_r_[PADR_(struct ibcs2_poll *)]; + char nfds_l_[PADL_(long)]; long nfds; char nfds_r_[PADR_(long)]; + char timeout_l_[PADL_(int)]; int timeout; char timeout_r_[PADR_(int)]; +}; +struct ibcs2_secure_args { + char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; + char a1_l_[PADL_(int)]; int a1; char a1_r_[PADR_(int)]; + char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)]; + char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)]; + char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)]; + char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)]; +}; +struct ibcs2_symlink_args { + char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; + char link_l_[PADL_(char *)]; char * link; char link_r_[PADR_(char *)]; +}; +struct ibcs2_lstat_args { + char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; + char st_l_[PADL_(struct ibcs2_stat *)]; struct ibcs2_stat * st; char st_r_[PADR_(struct ibcs2_stat *)]; +}; +struct ibcs2_readlink_args { + char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; + char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)]; + char count_l_[PADL_(int)]; int count; char count_r_[PADR_(int)]; +}; +struct ibcs2_isc_args { register_t dummy; }; int ibcs2_read(struct thread *, struct ibcs2_read_args *); @@ -337,6 +349,14 @@ int ibcs2_isc(struct thread *, struct ibcs2_isc_args *); #endif /* COMPAT_43 */ + +#ifdef COMPAT_FREEBSD4 + + +#endif /* COMPAT_FREEBSD4 */ + #undef PAD_ +#undef PADL_ +#undef PADR_ #endif /* !_IBCS2_SYSPROTO_H_ */ diff --git a/sys/i386/ibcs2/ibcs2_syscall.h b/sys/i386/ibcs2/ibcs2_syscall.h index e25b20b..8d45f25 100644 --- a/sys/i386/ibcs2/ibcs2_syscall.h +++ b/sys/i386/ibcs2/ibcs2_syscall.h @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/i386/ibcs2/syscalls.master,v 1.12 2000/07/29 10:05:25 peter Exp + * created from FreeBSD: src/sys/i386/ibcs2/syscalls.master,v 1.14 2003/12/24 00:14:08 peter Exp */ #define IBCS2_SYS_syscall 0 diff --git a/sys/i386/ibcs2/ibcs2_sysent.c b/sys/i386/ibcs2/ibcs2_sysent.c index 49d0764..17cca45 100644 --- a/sys/i386/ibcs2/ibcs2_sysent.c +++ b/sys/i386/ibcs2/ibcs2_sysent.c @@ -2,12 +2,10 @@ * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from FreeBSD: src/sys/i386/ibcs2/syscalls.master,v 1.12 2000/07/29 10:05:25 peter Exp + * $FreeBSD$ + * created from FreeBSD: src/sys/i386/ibcs2/syscalls.master,v 1.14 2003/12/24 00:14:08 peter Exp */ -#include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); - #include <sys/param.h> #include <sys/sysent.h> #include <sys/sysproto.h> @@ -20,8 +18,8 @@ __FBSDID("$FreeBSD$"); /* The casts are bogus but will do for now. */ struct sysent ibcs2_sysent[] = { { 0, (sy_call_t *)nosys }, /* 0 = syscall */ - { AS(sys_exit_args), (sy_call_t *)sys_exit }, /* 1 = exit */ - { 0, (sy_call_t *)fork }, /* 2 = fork */ + { SYF_MPSAFE | AS(sys_exit_args), (sy_call_t *)sys_exit }, /* 1 = exit */ + { SYF_MPSAFE | 0, (sy_call_t *)fork }, /* 2 = fork */ { AS(ibcs2_read_args), (sy_call_t *)ibcs2_read }, /* 3 = ibcs2_read */ { AS(write_args), (sy_call_t *)write }, /* 4 = write */ { AS(ibcs2_open_args), (sy_call_t *)ibcs2_open }, /* 5 = ibcs2_open */ @@ -63,7 +61,7 @@ struct sysent ibcs2_sysent[] = { { AS(dup_args), (sy_call_t *)dup }, /* 41 = dup */ { 0, (sy_call_t *)pipe }, /* 42 = pipe */ { AS(ibcs2_times_args), (sy_call_t *)ibcs2_times }, /* 43 = ibcs2_times */ - { AS(profil_args), (sy_call_t *)profil }, /* 44 = profil */ + { SYF_MPSAFE | AS(profil_args), (sy_call_t *)profil }, /* 44 = profil */ { AS(ibcs2_plock_args), (sy_call_t *)ibcs2_plock }, /* 45 = ibcs2_plock */ { AS(ibcs2_setgid_args), (sy_call_t *)ibcs2_setgid }, /* 46 = ibcs2_setgid */ { 0, (sy_call_t *)getgid }, /* 47 = getgid */ diff --git a/sys/i386/ibcs2/ibcs2_xenix.h b/sys/i386/ibcs2/ibcs2_xenix.h index 0c7521d..58fe85a 100644 --- a/sys/i386/ibcs2/ibcs2_xenix.h +++ b/sys/i386/ibcs2/ibcs2_xenix.h @@ -3,15 +3,19 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/i386/ibcs2/syscalls.xenix,v 1.6 1999/08/28 00:44:02 peter Exp + * created from FreeBSD: src/sys/i386/ibcs2/syscalls.xenix,v 1.7 2003/12/24 00:14:08 peter Exp */ #ifndef _IBCS2_XENIX_H_ #define _IBCS2_XENIX_H_ #include <sys/signal.h> - #include <sys/acl.h> +#include <sys/thr.h> +#include <sys/umtx.h> +#include <posix4/_semaphore.h> + +#include <sys/ucontext.h> struct proc; @@ -20,67 +24,75 @@ struct thread; #define PAD_(t) (sizeof(register_t) <= sizeof(t) ? \ 0 : sizeof(register_t) - sizeof(t)) -struct xenix_rdchk_args { - int fd; char fd_[PAD_(int)]; +#if BYTE_ORDER == LITTLE_ENDIAN +#define PADL_(t) 0 +#define PADR_(t) PAD_(t) +#else +#define PADL_(t) PAD_(t) +#define PADR_(t) 0 +#endif + +struct xenix_rdchk_args { + char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; }; -struct xenix_chsize_args { - int fd; char fd_[PAD_(int)]; - long size; char size_[PAD_(long)]; +struct xenix_chsize_args { + char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; + char size_l_[PADL_(long)]; long size; char size_r_[PADR_(long)]; }; -struct xenix_ftime_args { - struct timeb * tp; char tp_[PAD_(struct timeb *)]; +struct xenix_ftime_args { + char tp_l_[PADL_(struct timeb *)]; struct timeb * tp; char tp_r_[PADR_(struct timeb *)]; }; -struct xenix_nap_args { - int millisec; char millisec_[PAD_(int)]; +struct xenix_nap_args { + char millisec_l_[PADL_(int)]; int millisec; char millisec_r_[PADR_(int)]; }; -struct xenix_scoinfo_args { +struct xenix_scoinfo_args { register_t dummy; }; -struct xenix_eaccess_args { - char * path; char path_[PAD_(char *)]; - int flags; char flags_[PAD_(int)]; +struct xenix_eaccess_args { + char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; + char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; }; -struct ibcs2_sigaction_args { - int sig; char sig_[PAD_(int)]; - struct ibcs2_sigaction * act; char act_[PAD_(struct ibcs2_sigaction *)]; - struct ibcs2_sigaction * oact; char oact_[PAD_(struct ibcs2_sigaction *)]; +struct ibcs2_sigaction_args { + char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)]; + char act_l_[PADL_(struct ibcs2_sigaction *)]; struct ibcs2_sigaction * act; char act_r_[PADR_(struct ibcs2_sigaction *)]; + char oact_l_[PADL_(struct ibcs2_sigaction *)]; struct ibcs2_sigaction * oact; char oact_r_[PADR_(struct ibcs2_sigaction *)]; }; -struct ibcs2_sigprocmask_args { - int how; char how_[PAD_(int)]; - ibcs2_sigset_t * set; char set_[PAD_(ibcs2_sigset_t *)]; - ibcs2_sigset_t * oset; char oset_[PAD_(ibcs2_sigset_t *)]; +struct ibcs2_sigprocmask_args { + char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)]; + char set_l_[PADL_(ibcs2_sigset_t *)]; ibcs2_sigset_t * set; char set_r_[PADR_(ibcs2_sigset_t *)]; + char oset_l_[PADL_(ibcs2_sigset_t *)]; ibcs2_sigset_t * oset; char oset_r_[PADR_(ibcs2_sigset_t *)]; }; -struct ibcs2_sigpending_args { - ibcs2_sigset_t * mask; char mask_[PAD_(ibcs2_sigset_t *)]; +struct ibcs2_sigpending_args { + char mask_l_[PADL_(ibcs2_sigset_t *)]; ibcs2_sigset_t * mask; char mask_r_[PADR_(ibcs2_sigset_t *)]; }; -struct ibcs2_sigsuspend_args { - ibcs2_sigset_t * mask; char mask_[PAD_(ibcs2_sigset_t *)]; +struct ibcs2_sigsuspend_args { + char mask_l_[PADL_(ibcs2_sigset_t *)]; ibcs2_sigset_t * mask; char mask_r_[PADR_(ibcs2_sigset_t *)]; }; -struct ibcs2_getgroups_args { - int gidsetsize; char gidsetsize_[PAD_(int)]; - ibcs2_gid_t * gidset; char gidset_[PAD_(ibcs2_gid_t *)]; +struct ibcs2_getgroups_args { + char gidsetsize_l_[PADL_(int)]; int gidsetsize; char gidsetsize_r_[PADR_(int)]; + char gidset_l_[PADL_(ibcs2_gid_t *)]; ibcs2_gid_t * gidset; char gidset_r_[PADR_(ibcs2_gid_t *)]; }; -struct ibcs2_setgroups_args { - int gidsetsize; char gidsetsize_[PAD_(int)]; - ibcs2_gid_t * gidset; char gidset_[PAD_(ibcs2_gid_t *)]; +struct ibcs2_setgroups_args { + char gidsetsize_l_[PADL_(int)]; int gidsetsize; char gidsetsize_r_[PADR_(int)]; + char gidset_l_[PADL_(ibcs2_gid_t *)]; ibcs2_gid_t * gidset; char gidset_r_[PADR_(ibcs2_gid_t *)]; }; -struct ibcs2_sysconf_args { - int name; char name_[PAD_(int)]; +struct ibcs2_sysconf_args { + char name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)]; }; -struct ibcs2_pathconf_args { - char * path; char path_[PAD_(char *)]; - int name; char name_[PAD_(int)]; +struct ibcs2_pathconf_args { + char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; + char name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)]; }; -struct ibcs2_fpathconf_args { - int fd; char fd_[PAD_(int)]; - int name; char name_[PAD_(int)]; +struct ibcs2_fpathconf_args { + char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; + char name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)]; }; -struct ibcs2_rename_args { - char * from; char from_[PAD_(char *)]; - char * to; char to_[PAD_(char *)]; +struct ibcs2_rename_args { + char from_l_[PADL_(char *)]; char * from; char from_r_[PADR_(char *)]; + char to_l_[PADL_(char *)]; char * to; char to_r_[PADR_(char *)]; }; -struct xenix_utsname_args { - long addr; char addr_[PAD_(long)]; +struct xenix_utsname_args { + char addr_l_[PADL_(long)]; long addr; char addr_r_[PADR_(long)]; }; int xenix_rdchk(struct thread *, struct xenix_rdchk_args *); int xenix_chsize(struct thread *, struct xenix_chsize_args *); @@ -105,6 +117,14 @@ int xenix_utsname(struct thread *, struct xenix_utsname_args *); #endif /* COMPAT_43 */ + +#ifdef COMPAT_FREEBSD4 + + +#endif /* COMPAT_FREEBSD4 */ + #undef PAD_ +#undef PADL_ +#undef PADR_ #endif /* !_IBCS2_XENIX_H_ */ diff --git a/sys/i386/ibcs2/ibcs2_xenix_syscall.h b/sys/i386/ibcs2/ibcs2_xenix_syscall.h index 2b20d04..5146328 100644 --- a/sys/i386/ibcs2/ibcs2_xenix_syscall.h +++ b/sys/i386/ibcs2/ibcs2_xenix_syscall.h @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/i386/ibcs2/syscalls.xenix,v 1.6 1999/08/28 00:44:02 peter Exp + * created from FreeBSD: src/sys/i386/ibcs2/syscalls.xenix,v 1.7 2003/12/24 00:14:08 peter Exp */ #define IBCS2_XENIX_xenix_rdchk 7 diff --git a/sys/i386/ibcs2/ibcs2_xenix_sysent.c b/sys/i386/ibcs2/ibcs2_xenix_sysent.c index 03434df..ab12bc7 100644 --- a/sys/i386/ibcs2/ibcs2_xenix_sysent.c +++ b/sys/i386/ibcs2/ibcs2_xenix_sysent.c @@ -2,12 +2,10 @@ * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from FreeBSD: src/sys/i386/ibcs2/syscalls.xenix,v 1.6 1999/08/28 00:44:02 peter Exp + * $FreeBSD$ + * created from FreeBSD: src/sys/i386/ibcs2/syscalls.xenix,v 1.7 2003/12/24 00:14:08 peter Exp */ -#include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); - #include <sys/param.h> #include <sys/sysent.h> #include <sys/sysproto.h> |