Use hpux_sendsig() and hpux_sys_sigreturn().

This commit is contained in:
thorpej 1997-03-16 03:48:00 +00:00
parent 27c7e59344
commit b132875e6e
5 changed files with 16 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: hpux_exec.c,v 1.5 1996/10/14 06:53:24 thorpej Exp $ */
/* $NetBSD: hpux_exec.c,v 1.6 1997/03/16 03:48:00 thorpej Exp $ */
/*
* Copyright (c) 1995 Jason R. Thorpe. All rights reserved.
@ -76,7 +76,7 @@ static int exec_hpux_prep_omagic __P((struct proc *, struct exec_package *));
struct emul emul_hpux = {
"hpux",
bsdtohpuxerrnomap,
sendsig,
hpux_sendsig,
HPUX_SYS_syscall,
HPUX_SYS_MAXSYSCALL,
hpux_sysent,

View File

@ -221,7 +221,7 @@
/* syscall: "fsync" ret: "int" args: "int" */
#define HPUX_SYS_fsync 95
/* syscall: "sigreturn" ret: "int" args: "struct sigcontext *" */
/* syscall: "sigreturn" ret: "int" args: "struct hpuxsigcontext *" */
#define HPUX_SYS_sigreturn 103
/* syscall: "sigvec" ret: "int" args: "int" "struct sigvec *" "struct sigvec *" */

View File

@ -218,6 +218,10 @@ struct hpux_sys_fstat_args {
syscallarg(struct hpux_stat *) sb;
};
struct hpux_sys_sigreturn_args {
syscallarg(struct hpuxsigcontext *) sigcntxp;
};
struct hpux_sys_sigvec_args {
syscallarg(int) signo;
syscallarg(struct sigvec *) nsv;
@ -450,7 +454,7 @@ int sys_dup2 __P((struct proc *, void *, register_t *));
int hpux_sys_fstat __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_sigreturn __P((struct proc *, void *, register_t *));
int hpux_sys_sigreturn __P((struct proc *, void *, register_t *));
int hpux_sys_sigvec __P((struct proc *, void *, register_t *));
int hpux_sys_sigblock __P((struct proc *, void *, register_t *));
int hpux_sys_sigsetmask __P((struct proc *, void *, register_t *));

View File

@ -14,6 +14,7 @@
#include <sys/syscallargs.h>
#include <compat/hpux/hpux.h>
#include <compat/hpux/hpux_syscallargs.h>
#include <machine/hpux_machdep.h>
#define s(type) sizeof(type)
@ -224,8 +225,8 @@ struct sysent hpux_sysent[] = {
sys_nosys }, /* 101 = unimplemented */
{ 0, 0,
sys_nosys }, /* 102 = unimplemented */
{ 1, s(struct sys_sigreturn_args),
sys_sigreturn }, /* 103 = sigreturn */
{ 1, s(struct hpux_sys_sigreturn_args),
hpux_sys_sigreturn }, /* 103 = sigreturn */
{ 0, 0,
sys_nosys }, /* 104 = unimplemented */
{ 0, 0,

View File

@ -1,4 +1,4 @@
$NetBSD: syscalls.master,v 1.12 1996/09/07 14:21:57 mycroft Exp $
$NetBSD: syscalls.master,v 1.13 1997/03/16 03:48:04 thorpej Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@ -42,6 +42,8 @@
#include <compat/hpux/hpux.h>
#include <compat/hpux/hpux_syscallargs.h>
#include <machine/hpux_machdep.h>
0 NOARGS { int sys_nosys(void); } syscall
1 NOARGS { int sys_exit(int rval); }
2 STD { int hpux_sys_fork(void); }
@ -160,7 +162,8 @@
100 UNIMPL
101 UNIMPL
102 UNIMPL
103 NOARGS { int sys_sigreturn(struct sigcontext *sigcntxp); }
103 STD { int hpux_sys_sigreturn(struct hpuxsigcontext \
*sigcntxp); }
104 UNIMPL
105 UNIMPL
106 UNIMPL