Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SALOME_TESTS/Grids/smesh/3D_mesh_NETGEN_02/C1
[modules/smesh.git]
/
src
/
SMESHUtils
/
SMESH_File.cxx
diff --git
a/src/SMESHUtils/SMESH_File.cxx
b/src/SMESHUtils/SMESH_File.cxx
index ae5f9bb111868ced9102a16a34266df3b9bdf133..ade3256bbe7c5a3d2d52e485b22452586c99416a 100644
(file)
--- a/
src/SMESHUtils/SMESH_File.cxx
+++ b/
src/SMESHUtils/SMESH_File.cxx
@@
-21,8
+21,8
@@
// Created : Wed Mar 10 11:23:25 2010
// Author : Edward AGAPOV (eap)
//
// Created : Wed Mar 10 11:23:25 2010
// Author : Edward AGAPOV (eap)
//
+
#include "SMESH_File.hxx"
#include "SMESH_File.hxx"
-#include "utilities.h"
#include <fcntl.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/stat.h>
@@
-78,7
+78,7
@@
bool SMESH_File::open()
bool ok = ( _file != INVALID_HANDLE_VALUE );
#else
_file = ::open(_name.data(), O_RDONLY );
bool ok = ( _file != INVALID_HANDLE_VALUE );
#else
_file = ::open(_name.data(), O_RDONLY );
- bool ok = ( _file > 0 );
+ bool ok = ( _file >
=
0 );
#endif
if ( ok )
{
#endif
if ( ok )
{
@@
-171,7
+171,7
@@
long SMESH_File::size()
if ( _size >= 0 ) return _size; // size of an open file
boost::system::error_code err;
if ( _size >= 0 ) return _size; // size of an open file
boost::system::error_code err;
- uintmax_t size = boofs::file_size( _name, err );
+
boost::
uintmax_t size = boofs::file_size( _name, err );
_error = err.message();
return err ? -1 : (long) size;
_error = err.message();
return err ? -1 : (long) size;