Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107167362
D1086.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D1086.diff
View Options
Index: head/sys/amd64/linux32/linux32_sysvec.c
===================================================================
--- head/sys/amd64/linux32/linux32_sysvec.c
+++ head/sys/amd64/linux32/linux32_sysvec.c
@@ -344,9 +344,7 @@
/*
* Build the argument list for the signal handler.
*/
- if (p->p_sysent->sv_sigtbl)
- if (sig <= p->p_sysent->sv_sigsize)
- sig = p->p_sysent->sv_sigtbl[_SIG_IDX(sig)];
+ sig = BSD_TO_LINUX_SIGNAL(sig);
bzero(&frame, sizeof(frame));
@@ -492,9 +490,7 @@
/*
* Build the argument list for the signal handler.
*/
- if (p->p_sysent->sv_sigtbl)
- if (sig <= p->p_sysent->sv_sigsize)
- sig = p->p_sysent->sv_sigtbl[_SIG_IDX(sig)];
+ sig = BSD_TO_LINUX_SIGNAL(sig);
bzero(&frame, sizeof(frame));
Index: head/sys/compat/linux/linux_signal.c
===================================================================
--- head/sys/compat/linux/linux_signal.c
+++ head/sys/compat/linux/linux_signal.c
@@ -628,10 +628,8 @@
if (!LINUX_SIG_VALID(args->sig))
return (EINVAL);
- if (args->sig > 0 && args->sig <= LINUX_SIGTBLSZ)
- sig = linux_to_bsd_signal[_SIG_IDX(args->sig)];
- else
- sig = args->sig;
+
+ sig = BSD_TO_LINUX_SIGNAL(args->sig);
tdt = linux_tdfind(td, args->tid, -1);
if (tdt == NULL)
@@ -788,10 +786,7 @@
if (linfo.lsi_code >= 0)
return (EPERM);
- if (args->sig > 0 && args->sig <= LINUX_SIGTBLSZ)
- sig = linux_to_bsd_signal[_SIG_IDX(args->sig)];
- else
- sig = args->sig;
+ sig = BSD_TO_LINUX_SIGNAL(args->sig);
error = ESRCH;
if ((p = pfind(args->pid)) != NULL ||
Index: head/sys/i386/linux/linux_sysvec.c
===================================================================
--- head/sys/i386/linux/linux_sysvec.c
+++ head/sys/i386/linux/linux_sysvec.c
@@ -480,9 +480,7 @@
/*
* Build the argument list for the signal handler.
*/
- if (p->p_sysent->sv_sigtbl)
- if (sig <= p->p_sysent->sv_sigsize)
- sig = p->p_sysent->sv_sigtbl[_SIG_IDX(sig)];
+ sig = BSD_TO_LINUX_SIGNAL(sig);
bzero(&frame, sizeof(frame));
@@ -623,9 +621,7 @@
/*
* Build the argument list for the signal handler.
*/
- if (p->p_sysent->sv_sigtbl)
- if (sig <= p->p_sysent->sv_sigsize)
- sig = p->p_sysent->sv_sigtbl[_SIG_IDX(sig)];
+ sig = BSD_TO_LINUX_SIGNAL(sig);
bzero(&frame, sizeof(frame));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 12, 3:53 AM (20 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15760860
Default Alt Text
D1086.diff (2 KB)
Attached To
Mode
D1086: Use the BSD_TO_LINUX_SIGNAL() wherever there is no need to check the ABI as it is known.
Attached
Detach File
Event Timeline
Log In to Comment