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
3dfb38a4
Kaydet (Commit)
3dfb38a4
authored
Eyl 03, 2001
tarafından
Kay Ramme
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
added getUrlFromAddress (#88338#)
üst
d2ab706b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
6 deletions
+38
-6
module.hxx
sal/inc/osl/module.hxx
+6
-2
module.c
sal/osl/unx/module.c
+29
-2
system.h
sal/osl/unx/system.h
+3
-2
No files found.
sal/inc/osl/module.hxx
Dosyayı görüntüle @
3dfb38a4
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: module.hxx,v $
* $RCSfile: module.hxx,v $
*
*
* $Revision: 1.
4
$
* $Revision: 1.
5
$
*
*
* last change: $Author:
obr $ $Date: 2001-05-14 08:55:38
$
* last change: $Author:
kr $ $Date: 2001-09-03 11:08:37
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -79,6 +79,10 @@ class Module
...
@@ -79,6 +79,10 @@ class Module
Module
&
operator
=
(
const
Module
&
);
Module
&
operator
=
(
const
Module
&
);
public
:
public
:
static
sal_Bool
getUrlFromAddress
(
void
*
addr
,
::
rtl
::
OUString
&
libraryUrl
)
{
return
osl_getModuleURLFromAddress
(
addr
,
&
libraryUrl
.
pData
);
}
Module
()
:
m_Module
(
0
){}
Module
()
:
m_Module
(
0
){}
...
...
sal/osl/unx/module.c
Dosyayı görüntüle @
3dfb38a4
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: module.c,v $
* $RCSfile: module.c,v $
*
*
* $Revision: 1.1
8
$
* $Revision: 1.1
9
$
*
*
* last change: $Author:
obr $ $Date: 2001-05-18 07:47:11
$
* last change: $Author:
kr $ $Date: 2001-09-03 11:08:37
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -438,3 +438,30 @@ void* SAL_CALL osl_psz_getSymbol(oslModule hModule, const sal_Char* pszSymbolNam
...
@@ -438,3 +438,30 @@ void* SAL_CALL osl_psz_getSymbol(oslModule hModule, const sal_Char* pszSymbolNam
#endif
/* MACOSX */
#endif
/* MACOSX */
}
}
sal_Bool
SAL_CALL
osl_getModuleURLFromAddress
(
void
*
addr
,
rtl_uString
**
ppLibraryUrl
)
{
sal_Bool
result
=
sal_False
;
Dl_info
dl_info
;
if
(
result
=
dladdr
(
addr
,
&
dl_info
))
{
rtl_uString
*
workDir
=
NULL
;
osl_getProcessWorkingDir
(
&
workDir
);
#ifdef DEBUG
OSL_TRACE
(
"module.c::osl_getModuleUrl - %s
\n
"
,
dl_info
.
dli_fname
);
#endif
rtl_string2UString
(
ppLibraryUrl
,
dl_info
.
dli_fname
,
strlen
(
dl_info
.
dli_fname
),
osl_getThreadTextEncoding
(),
OSTRING_TO_OUSTRING_CVTFLAGS
);
osl_getFileURLFromSystemPath
(
*
ppLibraryUrl
,
ppLibraryUrl
);
// convert it to be a file url
osl_getAbsoluteFileURL
(
workDir
,
*
ppLibraryUrl
,
ppLibraryUrl
);
// ensure it is an abosolute file url
result
=
sal_True
;
}
return
result
;
}
sal/osl/unx/system.h
Dosyayı görüntüle @
3dfb38a4
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: system.h,v $
* $RCSfile: system.h,v $
*
*
* $Revision: 1.
9
$
* $Revision: 1.
10
$
*
*
* last change: $Author:
svesik $ $Date: 2001-05-14 15:30:58
$
* last change: $Author:
kr $ $Date: 2001-09-03 11:08:37
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -98,6 +98,7 @@
...
@@ -98,6 +98,7 @@
#endif
#endif
#ifdef LINUX
#ifdef LINUX
#define __USE_GNU
#if GLIBC >= 2
#if GLIBC >= 2
# include <shadow.h>
# include <shadow.h>
# include <asm/sigcontext.h>
# include <asm/sigcontext.h>
...
...
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