diff --git a/sys/compat/sunos/sunos_syscallargs.h b/sys/compat/sunos/sunos_syscallargs.h index cf9f3da584bb..adab05137e9c 100644 --- a/sys/compat/sunos/sunos_syscallargs.h +++ b/sys/compat/sunos/sunos_syscallargs.h @@ -97,6 +97,12 @@ struct sunos_sys_setpgrp_args { syscallarg(int) pgid; }; +struct sunos_sys_fcntl_args { + syscallarg(int) fd; + syscallarg(int) cmd; + syscallarg(void *) arg; +}; + struct sunos_sys_setsockopt_args { syscallarg(int) s; syscallarg(int) level; @@ -268,7 +274,7 @@ int compat_43_sys_gethostname __P((struct proc *, void *, register_t *)); int compat_43_sys_sethostname __P((struct proc *, void *, register_t *)); int compat_43_sys_getdtablesize __P((struct proc *, void *, register_t *)); int sys_dup2 __P((struct proc *, void *, register_t *)); -int sys_fcntl __P((struct proc *, void *, register_t *)); +int sunos_sys_fcntl __P((struct proc *, void *, register_t *)); int sys_select __P((struct proc *, void *, register_t *)); int sys_fsync __P((struct proc *, void *, register_t *)); int sys_setpriority __P((struct proc *, void *, register_t *)); diff --git a/sys/compat/sunos/sunos_sysent.c b/sys/compat/sunos/sunos_sysent.c index dbd17ba4f5eb..032bea5a5521 100644 --- a/sys/compat/sunos/sunos_sysent.c +++ b/sys/compat/sunos/sunos_sysent.c @@ -218,8 +218,8 @@ struct sysent sunos_sysent[] = { sys_dup2 }, /* 90 = dup2 */ { 0, 0, sys_nosys }, /* 91 = unimplemented getdopt */ - { 3, s(struct sys_fcntl_args), - sys_fcntl }, /* 92 = fcntl */ + { 3, s(struct sunos_sys_fcntl_args), + sunos_sys_fcntl }, /* 92 = fcntl */ { 5, s(struct sys_select_args), sys_select }, /* 93 = select */ { 0, 0,