diff options
author | wtc%netscape.com <devnull@localhost> | 1998-09-25 20:34:39 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 1998-09-25 20:34:39 +0000 |
commit | a5cf3a954c0d28455f78eaffcd2067e961972933 (patch) | |
tree | cf0a94361c04135067133f9c138577166fbbb0be /pr/src/md/unix/rhapsody.c | |
parent | 299a8c91a9d819a6d8e38032447c052271fc41e8 (diff) | |
download | nspr-hg-a5cf3a954c0d28455f78eaffcd2067e961972933.tar.gz |
NSPR20 v3.0 beta landing from NSPRPUB_RELEASE_3_0_LANDING_BRANCH.
Diffstat (limited to 'pr/src/md/unix/rhapsody.c')
-rw-r--r-- | pr/src/md/unix/rhapsody.c | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/pr/src/md/unix/rhapsody.c b/pr/src/md/unix/rhapsody.c index a68f8667..01a73650 100644 --- a/pr/src/md/unix/rhapsody.c +++ b/pr/src/md/unix/rhapsody.c @@ -18,25 +18,13 @@ #include "primpl.h" -#include <signal.h> - void _MD_EarlyInit(void) { - /* - * Ignore FPE because coercion of a NaN to an int causes SIGFPE - * to be raised. - */ - struct sigaction act; - - act.sa_handler = SIG_IGN; - sigemptyset(&act.sa_mask); - act.sa_flags = SA_RESTART; - sigaction(SIGFPE, &act, 0); } PRWord *_MD_HomeGCRegisters(PRThread *t, int isCurrent, int *np) { -#ifndef _PR_PTHREADS +#if !defined(_PR_PTHREADS) if (isCurrent) { (void) setjmp(CONTEXT(t)); } @@ -48,7 +36,7 @@ PRWord *_MD_HomeGCRegisters(PRThread *t, int isCurrent, int *np) #endif } -#ifndef _PR_PTHREADS +#if !defined(_PR_PTHREADS) void _MD_SET_PRIORITY(_MDThread *thread, PRUintn newPri) { @@ -98,3 +86,14 @@ _MD_CREATE_THREAD( return PR_FAILURE; } #endif /* ! _PR_PTHREADS */ + +/* +** Whoops, we don't have a syscall stub for this +*/ +int mprotect (caddr_t addr, size_t size, int prot) +{ + return -1; +} + +/* rhapsody.c */ + |