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
9a8411d3
Kaydet (Commit)
9a8411d3
authored
May 13, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
osl_openFilePath is internal sal/osl/unx functionality
Change-Id: I14e4d08f209e3d6a444d6c09f9ffb9c178d8731d
üst
fe88fac2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
24 deletions
+10
-24
file.h
include/osl/detail/file.h
+0
-18
file.cxx
sal/osl/unx/file.cxx
+3
-2
file_impl.hxx
sal/osl/unx/file_impl.hxx
+5
-0
file_misc.cxx
sal/osl/unx/file_misc.cxx
+2
-2
file_stat.cxx
sal/osl/unx/file_stat.cxx
+0
-1
osl_File.cxx
sal/qa/osl/file/osl_File.cxx
+0
-1
No files found.
include/osl/detail/file.h
Dosyayı görüntüle @
9a8411d3
...
@@ -12,36 +12,18 @@
...
@@ -12,36 +12,18 @@
#include <sal/config.h>
#include <sal/config.h>
#include <sys/stat.h>
#include <sal/saldllapi.h>
#include <sal/types.h>
/** @cond INTERNAL */
/** @cond INTERNAL */
/* Some additions to the osl file functions for LibreOffice internal
/* Some additions to the osl file functions for LibreOffice internal
use. Needed for details in the Android support.
use. Needed for details in the Android support.
*/
*/
#if defined __cplusplus
extern
"C"
{
#endif
/* More flags needed for semantics that match the open() call that
/* More flags needed for semantics that match the open() call that
used to be in SvFileStream::Open().
used to be in SvFileStream::Open().
*/
*/
#define osl_File_OpenFlag_Trunc 0x00000010L
#define osl_File_OpenFlag_Trunc 0x00000010L
#define osl_File_OpenFlag_NoExcl 0x00000020L
#define osl_File_OpenFlag_NoExcl 0x00000020L
SAL_DLLPUBLIC
oslFileError
SAL_CALL
osl_openFilePath
(
const
char
*
cpFilePath
,
oslFileHandle
*
pHandle
,
sal_uInt32
uFlags
);
#if defined __cplusplus
}
#endif
/** @endcond */
/** @endcond */
#endif
/* INCLUDED_OSL_DETAIL_FILE_H */
#endif
/* INCLUDED_OSL_DETAIL_FILE_H */
...
...
sal/osl/unx/file.cxx
Dosyayı görüntüle @
9a8411d3
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
#include "system.h"
#include "system.h"
#include "createfilehandlefromfd.hxx"
#include "createfilehandlefromfd.hxx"
#include "file_error_transl.h"
#include "file_error_transl.h"
#include "file_impl.hxx"
#include "file_url.h"
#include "file_url.h"
#include "uunxapi.h"
#include "uunxapi.h"
...
@@ -820,7 +821,7 @@ openMemoryAsFile( void *address, size_t size, oslFileHandle *pHandle, const char
...
@@ -820,7 +821,7 @@ openMemoryAsFile( void *address, size_t size, oslFileHandle *pHandle, const char
#endif
#endif
oslFileError
oslFileError
SAL_CALL
osl_
openFilePath
(
const
char
*
cpFilePath
,
oslFileHandle
*
pHandle
,
sal_uInt32
uFlags
)
openFilePath
(
const
char
*
cpFilePath
,
oslFileHandle
*
pHandle
,
sal_uInt32
uFlags
)
{
{
oslFileError
eRet
;
oslFileError
eRet
;
...
@@ -1015,7 +1016,7 @@ SAL_CALL osl_openFile( rtl_uString* ustrFileURL, oslFileHandle* pHandle, sal_uIn
...
@@ -1015,7 +1016,7 @@ SAL_CALL osl_openFile( rtl_uString* ustrFileURL, oslFileHandle* pHandle, sal_uIn
return
oslTranslateFileError
(
OSL_FET_ERROR
,
errno
);
return
oslTranslateFileError
(
OSL_FET_ERROR
,
errno
);
#endif
/* MACOSX */
#endif
/* MACOSX */
return
o
sl_o
penFilePath
(
buffer
,
pHandle
,
uFlags
);
return
openFilePath
(
buffer
,
pHandle
,
uFlags
);
}
}
oslFileError
oslFileError
...
...
sal/osl/unx/file_impl.hxx
Dosyayı görüntüle @
9a8411d3
...
@@ -43,6 +43,11 @@ struct DirectoryItem_Impl
...
@@ -43,6 +43,11 @@ struct DirectoryItem_Impl
oslFileType
getFileType
()
const
;
oslFileType
getFileType
()
const
;
};
};
oslFileError
openFilePath
(
const
char
*
cpFilePath
,
oslFileHandle
*
pHandle
,
sal_uInt32
uFlags
);
#endif
/* INCLUDED_FILE_IMPL_HXX */
#endif
/* INCLUDED_FILE_IMPL_HXX */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal/osl/unx/file_misc.cxx
Dosyayı görüntüle @
9a8411d3
...
@@ -915,11 +915,11 @@ static int oslDoCopyFile(const sal_Char* pszSourceFileName, const sal_Char* pszD
...
@@ -915,11 +915,11 @@ static int oslDoCopyFile(const sal_Char* pszSourceFileName, const sal_Char* pszD
int
DestFileFD
=
0
;
int
DestFileFD
=
0
;
int
nRet
=
0
;
int
nRet
=
0
;
if
(
o
sl_o
penFilePath
(
pszSourceFileName
,
if
(
openFilePath
(
pszSourceFileName
,
&
SourceFileFH
,
&
SourceFileFH
,
osl_File_OpenFlag_Read
|
osl_File_OpenFlag_NoLock
|
osl_File_OpenFlag_NoExcl
)
!=
osl_File_E_None
)
osl_File_OpenFlag_Read
|
osl_File_OpenFlag_NoLock
|
osl_File_OpenFlag_NoExcl
)
!=
osl_File_E_None
)
{
{
// Let's hope errno is still set relevantly after o
sl_o
penFilePath...
// Let's hope errno is still set relevantly after openFilePath...
nRet
=
errno
;
nRet
=
errno
;
return
nRet
;
return
nRet
;
}
}
...
...
sal/osl/unx/file_stat.cxx
Dosyayı görüntüle @
9a8411d3
...
@@ -18,7 +18,6 @@
...
@@ -18,7 +18,6 @@
*/
*/
#include "osl/file.h"
#include "osl/file.h"
#include "osl/detail/file.h"
#include "system.h"
#include "system.h"
#include <sys/types.h>
#include <sys/types.h>
...
...
sal/qa/osl/file/osl_File.cxx
Dosyayı görüntüle @
9a8411d3
...
@@ -26,7 +26,6 @@
...
@@ -26,7 +26,6 @@
#include "osl/thread.h"
#include "osl/thread.h"
#include <osl/file.hxx>
#include <osl/file.hxx>
#include <osl/detail/file.h>
#include <osl_File_Const.h>
#include <osl_File_Const.h>
#include <cppunit/TestFixture.h>
#include <cppunit/TestFixture.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