summaryrefslogtreecommitdiff
path: root/sal/osl/w32/file.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/osl/w32/file.cxx')
-rw-r--r--sal/osl/w32/file.cxx52
1 files changed, 26 insertions, 26 deletions
diff --git a/sal/osl/w32/file.cxx b/sal/osl/w32/file.cxx
index 30a4f550a1f5..dcea2fb3f5c5 100644
--- a/sal/osl/w32/file.cxx
+++ b/sal/osl/w32/file.cxx
@@ -50,9 +50,9 @@
#undef min
#endif
-//##################################################################
+
// File handle implementation
-//##################################################################
+
struct FileHandle_Impl
{
CRITICAL_SECTION m_mutex;
@@ -651,9 +651,9 @@ oslFileError FileHandle_Impl::syncFile()
return (result);
}
-//##################################################################
+
// File I/O functions
-//##################################################################
+
extern "C" oslFileHandle
SAL_CALL osl_createFileHandleFromOSHandle (
@@ -694,7 +694,7 @@ SAL_CALL osl_createFileHandleFromOSHandle (
return (oslFileHandle)(pImpl);
}
-//#############################################
+
oslFileError
SAL_CALL osl_openFile(
rtl_uString * strPath,
@@ -735,7 +735,7 @@ SAL_CALL osl_openFile(
return (result);
}
-//#############################################
+
oslFileError
SAL_CALL osl_syncFile(oslFileHandle Handle)
{
@@ -755,7 +755,7 @@ SAL_CALL osl_syncFile(oslFileHandle Handle)
return osl_File_E_None;
}
-//#############################################
+
oslFileError
SAL_CALL osl_getFileOSHandle(
oslFileHandle Handle,
@@ -771,7 +771,7 @@ SAL_CALL osl_getFileOSHandle(
return osl_File_E_None;
}
-//#############################################
+
oslFileError
SAL_CALL osl_closeFile(oslFileHandle Handle)
{
@@ -798,7 +798,7 @@ SAL_CALL osl_closeFile(oslFileHandle Handle)
return (result);
}
-//#############################################
+
oslFileError
SAL_CALL osl_mapFile(
oslFileHandle Handle,
@@ -871,7 +871,7 @@ SAL_CALL osl_mapFile(
return osl_File_E_None;
}
-//#############################################
+
oslFileError
SAL_CALL osl_unmapFile(void* pAddr, sal_uInt64 /* uLength */)
{
@@ -884,14 +884,14 @@ SAL_CALL osl_unmapFile(void* pAddr, sal_uInt64 /* uLength */)
return osl_File_E_None;
}
-//#############################################
+
oslFileError
SAL_CALL osl_unmapMappedFile(oslFileHandle /* Handle */, void* pAddr, sal_uInt64 uLength)
{
return osl_unmapFile( pAddr, uLength );
}
-//#############################################
+
oslFileError
SAL_CALL osl_readLine(
oslFileHandle Handle,
@@ -911,7 +911,7 @@ SAL_CALL osl_readLine(
return (result);
}
-//#############################################
+
oslFileError
SAL_CALL osl_readFile(
oslFileHandle Handle,
@@ -932,7 +932,7 @@ SAL_CALL osl_readFile(
return (result);
}
-//#############################################
+
oslFileError
SAL_CALL osl_writeFile(
oslFileHandle Handle,
@@ -954,7 +954,7 @@ SAL_CALL osl_writeFile(
return (result);
}
-//#############################################
+
oslFileError
SAL_CALL osl_readFileAt(
oslFileHandle Handle,
@@ -980,7 +980,7 @@ SAL_CALL osl_readFileAt(
return pImpl->readFileAt (nOffset, pBuffer, uBytesRequested, pBytesRead);
}
-//#############################################
+
oslFileError
SAL_CALL osl_writeFileAt(
oslFileHandle Handle,
@@ -1006,7 +1006,7 @@ SAL_CALL osl_writeFileAt(
return pImpl->writeFileAt (nOffset, pBuffer, uBytesToWrite, pBytesWritten);
}
-//#############################################
+
oslFileError
SAL_CALL osl_isEndOfFile (oslFileHandle Handle, sal_Bool *pIsEOF)
{
@@ -1020,7 +1020,7 @@ SAL_CALL osl_isEndOfFile (oslFileHandle Handle, sal_Bool *pIsEOF)
return osl_File_E_None;
}
-//#############################################
+
oslFileError
SAL_CALL osl_getFilePos(oslFileHandle Handle, sal_uInt64 *pPos)
{
@@ -1033,7 +1033,7 @@ SAL_CALL osl_getFilePos(oslFileHandle Handle, sal_uInt64 *pPos)
return osl_File_E_None;
}
-//#############################################
+
oslFileError
SAL_CALL osl_setFilePos(oslFileHandle Handle, sal_uInt32 uHow, sal_Int64 uOffset)
{
@@ -1077,7 +1077,7 @@ SAL_CALL osl_setFilePos(oslFileHandle Handle, sal_uInt32 uHow, sal_Int64 uOffset
return pImpl->setPos (nPos + nOffset);
}
-//#############################################
+
oslFileError
SAL_CALL osl_getFileSize (oslFileHandle Handle, sal_uInt64 *pSize)
{
@@ -1091,7 +1091,7 @@ SAL_CALL osl_getFileSize (oslFileHandle Handle, sal_uInt64 *pSize)
return osl_File_E_None;
}
-//#############################################
+
oslFileError
SAL_CALL osl_setFileSize (oslFileHandle Handle, sal_uInt64 uSize)
{
@@ -1115,11 +1115,11 @@ SAL_CALL osl_setFileSize (oslFileHandle Handle, sal_uInt64 uSize)
return pImpl->setSize (uSize);
}
-//##################################################################
+
// File handling functions
-//##################################################################
-//#############################################
+
+
oslFileError SAL_CALL osl_removeFile( rtl_uString* strPath )
{
rtl_uString *strSysPath = NULL;
@@ -1137,7 +1137,7 @@ oslFileError SAL_CALL osl_removeFile( rtl_uString* strPath )
return error;
}
-//#############################################
+
oslFileError SAL_CALL osl_copyFile( rtl_uString* strPath, rtl_uString *strDestPath )
{
rtl_uString *strSysPath = NULL, *strSysDestPath = NULL;
@@ -1165,7 +1165,7 @@ oslFileError SAL_CALL osl_copyFile( rtl_uString* strPath, rtl_uString *strDestPa
return error;
}
-//#############################################
+
oslFileError SAL_CALL osl_moveFile( rtl_uString* strPath, rtl_uString *strDestPath )
{
rtl_uString *strSysPath = NULL, *strSysDestPath = NULL;