handle sigwait on svr4
This commit is contained in:
parent
0aadba4590
commit
4216208970
@ -1,3 +1,9 @@
|
||||
2001-10-18 John Hughes <john@Calva.COM>
|
||||
|
||||
* signal.c: handle sigwait
|
||||
* svr4/dummy.c: Move sigwait to done
|
||||
* svr4/syscall.h: handle sigwait
|
||||
|
||||
2001-10-16 John Hughes <john@Calva.COM>
|
||||
|
||||
* system.c(sys_ssisys): decode some args for ssisys.
|
||||
|
20
signal.c
20
signal.c
@ -1280,6 +1280,26 @@ struct tcb *tcp;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int sys_sigwait(tcp)
|
||||
struct tcb *tcp;
|
||||
{
|
||||
sigset_t sigset;
|
||||
|
||||
if (entering(tcp)) {
|
||||
if (copy_sigset(tcp, tcp->u_arg[0], &sigset) < 0)
|
||||
tprintf("[?]");
|
||||
else
|
||||
printsigmask(&sigset, 0);
|
||||
}
|
||||
else {
|
||||
if (!syserror(tcp)) {
|
||||
tcp->auxstr = signalent[tcp->u_rval];
|
||||
return RVAL_DECIMAL | RVAL_STR;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef LINUX
|
||||
|
||||
int
|
||||
|
@ -171,7 +171,6 @@
|
||||
#define sys_unblock printargs
|
||||
#define sys_cancelblock printargs
|
||||
#define sys_lwpkill printargs
|
||||
#define sys_sigwait printargs
|
||||
#define sys_modload printargs
|
||||
#define sys_moduload printargs
|
||||
#define sys_modpath printargs
|
||||
@ -306,6 +305,7 @@
|
||||
#define sys_kaio printargs
|
||||
|
||||
#if DONE
|
||||
#define sys_sigwait printargs
|
||||
#define sys_mount printargs
|
||||
#define sys_sysinfo printargs
|
||||
#define sys_sysconfig printargs
|
||||
|
@ -305,6 +305,7 @@ extern int sys_aclipc();
|
||||
extern int sys_door();
|
||||
#endif
|
||||
#if UNIXWARE >= 2
|
||||
extern int sys_sigwait();
|
||||
extern int sys_truncate();
|
||||
extern int sys_ftruncate();
|
||||
extern int sys_getksym ();
|
||||
|
Loading…
Reference in New Issue
Block a user