svn commit: r279110 - user/dchagin/lemul/sys/compat/linux

Dmitry Chagin dchagin at FreeBSD.org
Sat Feb 21 21:12:13 UTC 2015


Author: dchagin
Date: Sat Feb 21 21:12:12 2015
New Revision: 279110
URL: https://svnweb.freebsd.org/changeset/base/279110

Log:
  Convert Linux signal number to the FreeBSD.

Modified:
  user/dchagin/lemul/sys/compat/linux/linux_timer.c

Modified: user/dchagin/lemul/sys/compat/linux/linux_timer.c
==============================================================================
--- user/dchagin/lemul/sys/compat/linux/linux_timer.c	Sat Feb 21 21:10:10 2015	(r279109)
+++ user/dchagin/lemul/sys/compat/linux/linux_timer.c	Sat Feb 21 21:12:12 2015	(r279110)
@@ -58,7 +58,7 @@ linux_convert_l_sigevent(struct l_sigeve
 	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_sigeve
 	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:


More information about the svn-src-user mailing list