Convert Linux signal number to the FreeBSD.
This commit is contained in:
parent
94c0ee30b4
commit
5885e5ab29
@ -58,7 +58,7 @@ linux_convert_l_sigevent(struct l_sigevent *l_sig, struct sigevent *sig)
|
||||
switch (l_sig->sigev_notify) {
|
||||
case L_SIGEV_SIGNAL:
|
||||
sig->sigev_notify = SIGEV_SIGNAL;
|
||||
CP(*l_sig, *sig, sigev_signo);
|
||||
sig->sigev_signo = linux_to_bsd_signal(l_sig->sigev_signo);
|
||||
PTRIN_CP(*l_sig, *sig, sigev_value.sival_ptr);
|
||||
break;
|
||||
case L_SIGEV_NONE:
|
||||
@ -75,7 +75,7 @@ linux_convert_l_sigevent(struct l_sigevent *l_sig, struct sigevent *sig)
|
||||
case L_SIGEV_THREAD_ID:
|
||||
sig->sigev_notify = SIGEV_THREAD_ID;
|
||||
CP2(*l_sig, *sig, _l_sigev_un._tid, sigev_notify_thread_id);
|
||||
CP(*l_sig, *sig, sigev_signo);
|
||||
sig->sigev_signo = linux_to_bsd_signal(l_sig->sigev_signo);
|
||||
PTRIN_CP(*l_sig, *sig, sigev_value.sival_ptr);
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user