Kaydet (Commit) 656bd9f9 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

signal.c -> signal.cxx

Change-Id: I1d7f47b81e558a071a6beb52999d0bca185f02d5
üst f4680be8
...@@ -169,6 +169,7 @@ $(eval $(call gb_Library_add_exception_objects,sal,\ ...@@ -169,6 +169,7 @@ $(eval $(call gb_Library_add_exception_objects,sal,\
sal/osl/unx/profile \ sal/osl/unx/profile \
sal/osl/unx/readwrite_helper \ sal/osl/unx/readwrite_helper \
sal/osl/unx/security \ sal/osl/unx/security \
sal/osl/unx/signal \
sal/osl/unx/socket \ sal/osl/unx/socket \
sal/osl/unx/system \ sal/osl/unx/system \
sal/osl/unx/tempfile \ sal/osl/unx/tempfile \
...@@ -176,9 +177,6 @@ $(eval $(call gb_Library_add_exception_objects,sal,\ ...@@ -176,9 +177,6 @@ $(eval $(call gb_Library_add_exception_objects,sal,\
sal/osl/unx/time \ sal/osl/unx/time \
$(if $(filter DESKTOP,$(BUILD_TYPE)), sal/osl/unx/salinit) \ $(if $(filter DESKTOP,$(BUILD_TYPE)), sal/osl/unx/salinit) \
)) ))
$(eval $(call gb_Library_add_cobjects,sal, \
sal/osl/unx/signal \
))
# Note that the uunxapi.mm file just includes the uunxapi.cxx one # Note that the uunxapi.mm file just includes the uunxapi.cxx one
ifeq ($(OS),MACOSX) ifeq ($(OS),MACOSX)
......
...@@ -158,13 +158,13 @@ what looks like a bug in the new handler*/ ...@@ -158,13 +158,13 @@ what looks like a bug in the new handler*/
}; };
const int NoSignals = sizeof(Signals) / sizeof(struct SignalAction); const int NoSignals = sizeof(Signals) / sizeof(struct SignalAction);
static sal_Bool bErrorReportingEnabled = sal_True; static bool bErrorReportingEnabled = true;
static sal_Bool bInitSignal = sal_False; static bool bInitSignal = false;
static oslMutex SignalListMutex; static oslMutex SignalListMutex;
static oslSignalHandlerImpl* SignalList; static oslSignalHandlerImpl* SignalList;
static sal_Bool bSetSEGVHandler = sal_False; static bool bSetSEGVHandler = false;
static sal_Bool bSetWINCHHandler = sal_False; static bool bSetWINCHHandler = false;
static sal_Bool bSetILLHandler = sal_False; static bool bSetILLHandler = false;
static void SignalHandlerFunction(int); static void SignalHandlerFunction(int);
...@@ -189,7 +189,7 @@ static void getExecutableName_Impl (rtl_String ** ppstrProgName) ...@@ -189,7 +189,7 @@ static void getExecutableName_Impl (rtl_String ** ppstrProgName)
} }
} }
static sal_Bool is_soffice_Impl (void) static bool is_soffice_Impl (void)
{ {
sal_Int32 idx = -1; sal_Int32 idx = -1;
rtl_String * strProgName = 0; rtl_String * strProgName = 0;
...@@ -203,7 +203,7 @@ static sal_Bool is_soffice_Impl (void) ...@@ -203,7 +203,7 @@ static sal_Bool is_soffice_Impl (void)
return (idx != -1); return (idx != -1);
} }
static sal_Bool InitSignal(void) static bool InitSignal(void)
{ {
int i; int i;
struct sigaction act; struct sigaction act;
...@@ -220,17 +220,17 @@ static sal_Bool InitSignal(void) ...@@ -220,17 +220,17 @@ static sal_Bool InitSignal(void)
// TEMPORARY SOLUTION: // TEMPORARY SOLUTION:
// the office sets the signal handler during startup // the office sets the signal handler during startup
// java can than overwrite it, if needed // java can than overwrite it, if needed
bSetSEGVHandler = sal_True; bSetSEGVHandler = true;
// WORKAROUND FOR WINCH HANDLER (SEE ABOVE) // WORKAROUND FOR WINCH HANDLER (SEE ABOVE)
bSetWINCHHandler = sal_True; bSetWINCHHandler = true;
// WORKAROUND FOR ILLEGAL INSTRUCTION HANDLER (SEE ABOVE) // WORKAROUND FOR ILLEGAL INSTRUCTION HANDLER (SEE ABOVE)
bSetILLHandler = sal_True; bSetILLHandler = true;
} }
#ifdef DBG_UTIL #ifdef DBG_UTIL
bSetSEGVHandler = bSetWINCHHandler = bSetILLHandler = sal_False; bSetSEGVHandler = bSetWINCHHandler = bSetILLHandler = false;
#endif #endif
SignalListMutex = osl_createMutex(); SignalListMutex = osl_createMutex();
...@@ -289,10 +289,10 @@ static sal_Bool InitSignal(void) ...@@ -289,10 +289,10 @@ static sal_Bool InitSignal(void)
OSL_TRACE("sigemptyset or pthread_sigmask failed"); OSL_TRACE("sigemptyset or pthread_sigmask failed");
} }
return sal_True; return true;
} }
static sal_Bool DeInitSignal(void) static bool DeInitSignal(void)
{ {
int i; int i;
struct sigaction act; struct sigaction act;
...@@ -311,7 +311,7 @@ static sal_Bool DeInitSignal(void) ...@@ -311,7 +311,7 @@ static sal_Bool DeInitSignal(void)
osl_destroyMutex(SignalListMutex); osl_destroyMutex(SignalListMutex);
return sal_False; return false;
} }
#if HAVE_FEATURE_CRASHDUMP && defined(INCLUDE_BACKTRACE) #if HAVE_FEATURE_CRASHDUMP && defined(INCLUDE_BACKTRACE)
...@@ -883,7 +883,7 @@ void CallSystemHandler(int Signal) ...@@ -883,7 +883,7 @@ void CallSystemHandler(int Signal)
break; break;
default: /* should never happen */ default: /* should never happen */
OSL_ASSERT(0); OSL_ASSERT(false);
} }
} }
else else
...@@ -1082,7 +1082,7 @@ oslSignalAction SAL_CALL osl_raiseSignal(sal_Int32 UserSignal, void* UserData) ...@@ -1082,7 +1082,7 @@ oslSignalAction SAL_CALL osl_raiseSignal(sal_Int32 UserSignal, void* UserData)
sal_Bool SAL_CALL osl_setErrorReporting( sal_Bool bEnable ) sal_Bool SAL_CALL osl_setErrorReporting( sal_Bool bEnable )
{ {
sal_Bool bOld = bErrorReportingEnabled; bool bOld = bErrorReportingEnabled;
bErrorReportingEnabled = bEnable; bErrorReportingEnabled = bEnable;
return bOld; return bOld;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment