Changeset 102233 in vbox for trunk/src/libs
- Timestamp:
- Nov 22, 2023 9:50:12 AM (16 months ago)
- svn:sync-xref-src-repo-rev:
- 160358
- Location:
- trunk/src/libs/xpcom18a4/nsprpub/pr
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/nsprpub/pr/include/md/prosdep.h
r102231 r102233 55 55 PR_BEGIN_EXTERN_C 56 56 57 NSPR_API(void) _MD_EarlyInit(void);58 59 #define _MD_EARLY_INIT _MD_EarlyInit60 #define _MD_FINAL_INIT _PR_UnixInit61 62 57 #if defined(LINUX) || defined(DARWIN) || defined(NETBSD) || defined(FREEBSD) || defined(OPENBSD) 63 58 -
trunk/src/libs/xpcom18a4/nsprpub/pr/include/private/primpl.h
r102232 r102233 114 114 /************************************************************************/ 115 115 116 extern void _PR_InitClock(void);117 118 116 extern PRBool _pr_initialized; 119 117 extern void _PR_ImplicitInitialization(void); … … 122 120 * External machine-dependent code provided by each OS. * * 123 121 *************************************************************************/ 124 125 /* Initialization related */126 extern void _PR_MD_EARLY_INIT(void);127 #define _PR_MD_EARLY_INIT _MD_EARLY_INIT128 129 extern void _PR_MD_INTERVAL_INIT(void);130 #define _PR_MD_INTERVAL_INIT _MD_INTERVAL_INIT131 132 NSPR_API(void) _PR_MD_FINAL_INIT(void);133 #define _PR_MD_FINAL_INIT _MD_FINAL_INIT134 122 135 123 /* Time intervals */ -
trunk/src/libs/xpcom18a4/nsprpub/pr/src/md/unix/unix.c
r102225 r102233 46 46 #endif 47 47 48 sigset_t timer_set;49 50 void _PR_UnixInit(void)51 {52 struct sigaction sigact;53 int rv;54 55 sigemptyset(&timer_set);56 57 sigact.sa_handler = SIG_IGN;58 sigemptyset(&sigact.sa_mask);59 sigact.sa_flags = 0;60 rv = sigaction(SIGPIPE, &sigact, 0);61 Assert(0 == rv);62 }63 64 48 PRIntervalTime _PR_UNIX_GetInterval() 65 49 { … … 79 63 80 64 /************************************************************************/ 81 82 void _MD_EarlyInit(void)83 {84 #if defined(FREEBSD) || defined(NETBSD) || defined(OPENBSD)85 /*86 * Ignore FPE because coercion of a NaN to an int causes SIGFPE87 * to be raised.88 */89 struct sigaction act;90 91 act.sa_handler = SIG_IGN;92 sigemptyset(&act.sa_mask);93 act.sa_flags = SA_RESTART;94 sigaction(SIGFPE, &act, 0);95 #endif96 }97 65 98 66 #if defined(SOLARIS) -
trunk/src/libs/xpcom18a4/nsprpub/pr/src/misc/prinit.c
r102215 r102233 53 53 PRBool _pr_initialized = PR_FALSE; 54 54 55 PRInt32 _native_threads_only = 0;56 57 55 static void _PR_InitStuff(void) 58 56 { … … 64 62 #endif 65 63 66 /* NOTE: These init's cannot depend on _PR_MD_CURRENT_THREAD() */ 67 _PR_MD_EARLY_INIT(); 64 #if defined(FREEBSD) || defined(NETBSD) || defined(OPENBSD) 65 /* 66 * Ignore FPE because coercion of a NaN to an int causes SIGFPE 67 * to be raised. 68 */ 69 struct sigaction act; 70 71 act.sa_handler = SIG_IGN; 72 sigemptyset(&act.sa_mask); 73 act.sa_flags = SA_RESTART; 74 sigaction(SIGFPE, &act, 0); 75 #endif 68 76 69 77 _PR_InitLocks(); 70 _PR_InitClock();71 72 _PR_MD_FINAL_INIT();73 78 } 74 79 -
trunk/src/libs/xpcom18a4/nsprpub/pr/src/misc/prinrval.c
r102000 r102233 44 44 45 45 #include <iprt/assert.h> 46 47 /*48 *-----------------------------------------------------------------------49 *50 * _PR_InitClock --51 *52 *53 *-----------------------------------------------------------------------54 */55 56 void _PR_InitClock(void)57 {58 _PR_MD_INTERVAL_INIT();59 #ifdef DEBUG60 {61 PRIntervalTime ticksPerSec = PR_TicksPerSecond();62 63 Assert(ticksPerSec >= PR_INTERVAL_MIN);64 Assert(ticksPerSec <= PR_INTERVAL_MAX);65 }66 #endif /* DEBUG */67 }68 46 69 47 /*
Note:
See TracChangeset
for help on using the changeset viewer.