MIPS support to sigsuspend and sigwait routines

Change-Id: I870e798ed7eac5a8c74e5784a670f3a4f24331a9
This commit is contained in:
Raghu Gandham
2012-08-09 10:49:32 -07:00
parent 0836a7ffb1
commit abd10011a7
4 changed files with 24 additions and 6 deletions

View File

@@ -26,12 +26,18 @@
* SUCH DAMAGE.
*/
#include <signal.h>
#ifdef __mips__
extern int __sigsuspend(const sigset_t *);
#else
extern int __sigsuspend(int, int, unsigned int);
#endif
int sigsuspend(const sigset_t *_mask)
{
unsigned int mask = (unsigned int)*_mask;
return __sigsuspend(0, 0, mask);
#ifdef __mips__
return __sigsuspend(_mask);
#else
unsigned int mask = (unsigned int)*_mask;
return __sigsuspend(0, 0, mask);
#endif
}