Skip to contentSkip to conversation

sigaction/16-1.c: make build pass on mips arch

PATCH In review Kang Kai 2 participants 2 messages Feb 1, 2012

lore
Share & tools
lore

Kang Kai

author
#0 lore raw

PATCH 1/1 sigaction/16-1.c: make build pass on mips arch

There is no signal SIGTLKFLT on mips architecture. Remove SIGTLKFLT from signal set when test on mips arch.

---
 .../conformance/interfaces/sigaction/16-1.c        |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
testcases/open_posix_testsuite/conformance/interfaces/sigaction/16-1.c +2 -0
index 1eda711..213bda0 100644
@@ -67,7 +67,9 @@ static struct sig_info sigs[] = {
 	{SIGPIPE, "SIGPIPE", 0},
 	{SIGALRM, "SIGALRM", 0},
 	{SIGTERM, "SIGTERM", 0},
+#ifndef __mips__
 	{SIGSTKFLT, "SIGSTKFLT", 0},
+#endif
 	{SIGCHLD, "SIGCHLD", 0},
 	{SIGCONT, "SIGCONT", 0},
 	{SIGTSTP, "SIGTSTP", 0},
Signature · 13 lines
1.7.5.4


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
#1 lore raw

Hi!

Quoted 10 lines
---
 .../conformance/interfaces/sigaction/16-1.c        |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
testcases/open_posix_testsuite/conformance/interfaces/sigaction/16-1.c +0 -0
index 1eda711..213bda0 100644

testcases/open_posix_testsuite/conformance/interfaces/sigaction/16-1.c static struct sig_info sigs[] = { · line 75

Quoted 9 lines
testcases/open_posix_testsuite/conformance/interfaces/sigaction/16-1.c +2 -0
@@ -67,7 +67,9 @@ static struct sig_info sigs[] = {
 	{SIGPIPE, "SIGPIPE", 0},
 	{SIGALRM, "SIGALRM", 0},
 	{SIGTERM, "SIGTERM", 0},
+#ifndef __mips__
 	{SIGSTKFLT, "SIGSTKFLT", 0},
+#endif
 	{SIGCHLD, "SIGCHLD", 0},
 	{SIGCONT, "SIGCONT", 0},
 	{SIGTSTP, "SIGTSTP", 0},

What about?

#ifdef SIGSTKFLT
{SIGSTKFLT, "SIGSTKFLT", 0},
#endif

Which should fix all possible systems without this signal.

Signature · 13 lines
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list