diff options
author | marcel <marcel@FreeBSD.org> | 1999-09-29 15:12:18 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 1999-09-29 15:12:18 +0000 |
commit | bd000d73ad75473ad7201663ffb27c36ab130f0e (patch) | |
tree | bc01945dc4b7113b39c954abf475834f0e086487 /sys/i386/linux/linux_proto.h | |
parent | a16d76cb5680cf0afd1a3be9be9d1f7ea686a96c (diff) | |
download | FreeBSD-src-bd000d73ad75473ad7201663ffb27c36ab130f0e.zip FreeBSD-src-bd000d73ad75473ad7201663ffb27c36ab130f0e.tar.gz |
sigset_t change (part 4 of 5)
-----------------------------
The compatibility code and/or emulators have been updated:
iBCS2 now mostly uses the older syscalls. SVR4 now properly
handles all signals. This has been achieved by using the
new sigset_t throughout the emulator. The Linuxulator has
been severely updated. Internally the new Linux sigset_t is
made the default. These are then mapped to and from the
new FreeBSD sigset_t.
Also, rt_sigsuspend has been implemented in the Linuxulator.
Implementing this syscall basicly caused all this sigset_t
changing in the first place and the syscall has been used
throughout the change as a means for testing. It basicly is
too much work to undo the implementation so that it can
later be added again.
A special note on the use of sv_sigtbl and sv_sigsize in
struct sysentvec:
Every signal larger than sv_sigsize is not translated and is
passed on to the signal handler unmodified. Signals in the
range 1 upto and including sv_sigsize are translated.
The rationale is that only the system defined signals need to
be translated.
The emulators also have been updated so that the translation
tables are only indexed for valid (system defined) signals.
This change also fixes the translation bug already in the
SVR4 emulator.
Diffstat (limited to 'sys/i386/linux/linux_proto.h')
-rw-r--r-- | sys/i386/linux/linux_proto.h | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/sys/i386/linux/linux_proto.h b/sys/i386/linux/linux_proto.h index 2ae69ab..48c4409 100644 --- a/sys/i386/linux/linux_proto.h +++ b/sys/i386/linux/linux_proto.h @@ -183,22 +183,22 @@ struct linux_ustat_args { }; struct linux_sigaction_args { int sig; char sig_[PAD_(int)]; - struct linux_sigaction * nsa; char nsa_[PAD_(struct linux_sigaction *)]; - struct linux_sigaction * osa; char osa_[PAD_(struct linux_sigaction *)]; + linux_osigaction_t * nsa; char nsa_[PAD_(linux_osigaction_t *)]; + linux_osigaction_t * osa; char osa_[PAD_(linux_osigaction_t *)]; }; struct linux_siggetmask_args { register_t dummy; }; struct linux_sigsetmask_args { - linux_sigset_t mask; char mask_[PAD_(linux_sigset_t)]; + linux_osigset_t mask; char mask_[PAD_(linux_osigset_t)]; }; struct linux_sigsuspend_args { int restart; char restart_[PAD_(int)]; - linux_sigset_t oldmask; char oldmask_[PAD_(linux_sigset_t)]; - linux_sigset_t mask; char mask_[PAD_(linux_sigset_t)]; + linux_osigset_t oldmask; char oldmask_[PAD_(linux_osigset_t)]; + linux_osigset_t mask; char mask_[PAD_(linux_osigset_t)]; }; struct linux_sigpending_args { - linux_sigset_t * mask; char mask_[PAD_(linux_sigset_t *)]; + linux_osigset_t * mask; char mask_[PAD_(linux_osigset_t *)]; }; struct linux_setrlimit_args { u_int resource; char resource_[PAD_(u_int)]; @@ -338,8 +338,8 @@ struct linux_adjtimex_args { }; struct linux_sigprocmask_args { int how; char how_[PAD_(int)]; - linux_sigset_t * mask; char mask_[PAD_(linux_sigset_t *)]; - linux_sigset_t * omask; char omask_[PAD_(linux_sigset_t *)]; + linux_osigset_t * mask; char mask_[PAD_(linux_osigset_t *)]; + linux_osigset_t * omask; char omask_[PAD_(linux_osigset_t *)]; }; struct linux_create_module_args { register_t dummy; @@ -459,14 +459,14 @@ struct linux_rt_sigreturn_args { }; struct linux_rt_sigaction_args { int sig; char sig_[PAD_(int)]; - struct linux_new_sigaction * act; char act_[PAD_(struct linux_new_sigaction *)]; - struct linux_new_sigaction * oact; char oact_[PAD_(struct linux_new_sigaction *)]; + linux_sigaction_t * act; char act_[PAD_(linux_sigaction_t *)]; + linux_sigaction_t * oact; char oact_[PAD_(linux_sigaction_t *)]; size_t sigsetsize; char sigsetsize_[PAD_(size_t)]; }; struct linux_rt_sigprocmask_args { int how; char how_[PAD_(int)]; - struct linux_new_sigset * mask; char mask_[PAD_(struct linux_new_sigset *)]; - struct linux_new_sigset * omask; char omask_[PAD_(struct linux_new_sigset *)]; + linux_sigset_t * mask; char mask_[PAD_(linux_sigset_t *)]; + linux_sigset_t * omask; char omask_[PAD_(linux_sigset_t *)]; size_t sigsetsize; char sigsetsize_[PAD_(size_t)]; }; struct linux_rt_sigpending_args { @@ -479,7 +479,8 @@ struct linux_rt_sigqueueinfo_args { register_t dummy; }; struct linux_rt_sigsuspend_args { - register_t dummy; + linux_sigset_t * newset; char newset_[PAD_(linux_sigset_t *)]; + size_t sigsetsize; char sigsetsize_[PAD_(size_t)]; }; struct linux_pread_args { register_t dummy; |