Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
656bd9f9
Kaydet (Commit)
656bd9f9
authored
Kas 19, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
signal.c -> signal.cxx
Change-Id: I1d7f47b81e558a071a6beb52999d0bca185f02d5
üst
f4680be8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
19 deletions
+17
-19
Library_sal.mk
sal/Library_sal.mk
+1
-3
signal.cxx
sal/osl/unx/signal.cxx
+16
-16
No files found.
sal/Library_sal.mk
Dosyayı görüntüle @
656bd9f9
...
@@ -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)
...
...
sal/osl/unx/signal.c
→
sal/osl/unx/signal.c
xx
Dosyayı görüntüle @
656bd9f9
...
@@ -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_T
rue
;
static
bool
bErrorReportingEnabled
=
t
rue
;
static
sal_Bool
bInitSignal
=
sal_F
alse
;
static
bool
bInitSignal
=
f
alse
;
static
oslMutex
SignalListMutex
;
static
oslMutex
SignalListMutex
;
static
oslSignalHandlerImpl
*
SignalList
;
static
oslSignalHandlerImpl
*
SignalList
;
static
sal_Bool
bSetSEGVHandler
=
sal_F
alse
;
static
bool
bSetSEGVHandler
=
f
alse
;
static
sal_Bool
bSetWINCHHandler
=
sal_F
alse
;
static
bool
bSetWINCHHandler
=
f
alse
;
static
sal_Bool
bSetILLHandler
=
sal_F
alse
;
static
bool
bSetILLHandler
=
f
alse
;
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_B
ool
is_soffice_Impl
(
void
)
static
b
ool
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_B
ool
InitSignal
(
void
)
static
b
ool
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_T
rue
;
bSetSEGVHandler
=
t
rue
;
// WORKAROUND FOR WINCH HANDLER (SEE ABOVE)
// WORKAROUND FOR WINCH HANDLER (SEE ABOVE)
bSetWINCHHandler
=
sal_T
rue
;
bSetWINCHHandler
=
t
rue
;
// WORKAROUND FOR ILLEGAL INSTRUCTION HANDLER (SEE ABOVE)
// WORKAROUND FOR ILLEGAL INSTRUCTION HANDLER (SEE ABOVE)
bSetILLHandler
=
sal_T
rue
;
bSetILLHandler
=
t
rue
;
}
}
#ifdef DBG_UTIL
#ifdef DBG_UTIL
bSetSEGVHandler
=
bSetWINCHHandler
=
bSetILLHandler
=
sal_F
alse
;
bSetSEGVHandler
=
bSetWINCHHandler
=
bSetILLHandler
=
f
alse
;
#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_T
rue
;
return
t
rue
;
}
}
static
sal_B
ool
DeInitSignal
(
void
)
static
b
ool
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_F
alse
;
return
f
alse
;
}
}
#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_B
ool
bOld
=
bErrorReportingEnabled
;
b
ool
bOld
=
bErrorReportingEnabled
;
bErrorReportingEnabled
=
bEnable
;
bErrorReportingEnabled
=
bEnable
;
return
bOld
;
return
bOld
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment