This commit is contained in:
kleink 1997-11-25 19:40:52 +00:00
parent a255f23ee3
commit ef0caa8755
4 changed files with 27 additions and 10 deletions

View File

@ -41,6 +41,12 @@
#define compat_12(func) sys_nosys
#endif
#ifdef COMPAT_13
#define compat_13(func) __CONCAT(compat_13_,func)
#else
#define compat_13(func) sys_nosys
#endif
#define s(type) sizeof(type)
struct sysent sysent[] = {
@ -155,8 +161,8 @@ struct sysent sysent[] = {
sys_acct }, /* 51 = acct */
{ 0, 0,
sys_sigpending }, /* 52 = sigpending */
{ 2, s(struct sys_sigaltstack_args),
sys_sigaltstack }, /* 53 = sigaltstack */
{ 2, s(struct compat_13_sys_sigaltstack_args),
compat_13(sys_sigaltstack) }, /* 53 = compat_13 sigaltstack13 */
{ 3, s(struct sys_ioctl_args),
sys_ioctl }, /* 54 = ioctl */
{ 1, s(struct compat_12_sys_reboot_args),
@ -708,5 +714,7 @@ struct sysent sysent[] = {
sys___fstat13 }, /* 279 = __fstat13 */
{ 2, s(struct sys___lstat13_args),
sys___lstat13 }, /* 280 = __lstat13 */
{ 2, s(struct sys_sigaltstack_args),
sys_sigaltstack }, /* 281 = sigaltstack */
};

View File

@ -63,7 +63,7 @@ char *syscallnames[] = {
"setlogin", /* 50 = setlogin */
"acct", /* 51 = acct */
"sigpending", /* 52 = sigpending */
"sigaltstack", /* 53 = sigaltstack */
"compat_13_sigaltstack13", /* 53 = compat_13 sigaltstack13 */
"ioctl", /* 54 = ioctl */
"compat_12_oreboot", /* 55 = compat_12 oreboot */
"revoke", /* 56 = revoke */
@ -356,4 +356,5 @@ char *syscallnames[] = {
"__stat13", /* 278 = __stat13 */
"__fstat13", /* 279 = __fstat13 */
"__lstat13", /* 280 = __lstat13 */
"sigaltstack", /* 281 = sigaltstack */
};

View File

@ -158,8 +158,7 @@
/* syscall: "sigpending" ret: "int" args: */
#define SYS_sigpending 52
/* syscall: "sigaltstack" ret: "int" args: "const struct sigaltstack *" "struct sigaltstack *" */
#define SYS_sigaltstack 53
/* 53 is compat_13 sigaltstack13 */
/* syscall: "ioctl" ret: "int" args: "int" "u_long" "..." */
#define SYS_ioctl 54
@ -598,4 +597,7 @@
/* syscall: "__lstat13" ret: "int" args: "const char *" "struct stat *" */
#define SYS___lstat13 280
#define SYS_MAXSYSCALL 281
/* syscall: "sigaltstack" ret: "int" args: "const struct sigaltstack *" "struct sigaltstack *" */
#define SYS_sigaltstack 281
#define SYS_MAXSYSCALL 282

View File

@ -229,9 +229,9 @@ struct sys_acct_args {
syscallarg(const char *) path;
};
struct sys_sigaltstack_args {
syscallarg(const struct sigaltstack *) nss;
syscallarg(struct sigaltstack *) oss;
struct compat_13_sys_sigaltstack_args {
syscallarg(const struct sigaltstack13 *) nss;
syscallarg(struct sigaltstack13 *) oss;
};
struct sys_ioctl_args {
@ -1048,6 +1048,11 @@ struct sys___lstat13_args {
syscallarg(struct stat *) ub;
};
struct sys_sigaltstack_args {
syscallarg(const struct sigaltstack *) nss;
syscallarg(struct sigaltstack *) oss;
};
/*
* System call prototypes.
*/
@ -1106,7 +1111,7 @@ int sys___getlogin __P((struct proc *, void *, register_t *));
int sys_setlogin __P((struct proc *, void *, register_t *));
int sys_acct __P((struct proc *, void *, register_t *));
int sys_sigpending __P((struct proc *, void *, register_t *));
int sys_sigaltstack __P((struct proc *, void *, register_t *));
int compat_13_sys_sigaltstack __P((struct proc *, void *, register_t *));
int sys_ioctl __P((struct proc *, void *, register_t *));
int compat_12_sys_reboot __P((struct proc *, void *, register_t *));
int sys_revoke __P((struct proc *, void *, register_t *));
@ -1306,3 +1311,4 @@ int sys___msync13 __P((struct proc *, void *, register_t *));
int sys___stat13 __P((struct proc *, void *, register_t *));
int sys___fstat13 __P((struct proc *, void *, register_t *));
int sys___lstat13 __P((struct proc *, void *, register_t *));
int sys_sigaltstack __P((struct proc *, void *, register_t *));