diff options
author | Jose <jose@zeroc.com> | 2009-11-27 00:20:42 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2009-11-27 00:20:42 +0100 |
commit | 7cdc3633275e1106de5aa17ee3ce4a0678227c15 (patch) | |
tree | 84358f440f4bec59988238490d7a3ac7226175cc /cpp/src/IceUtil/FileUtil.cpp | |
parent | 4279 - alllTest.py fails to run if source path contains white spaces. (diff) | |
download | ice-7cdc3633275e1106de5aa17ee3ce4a0678227c15.tar.bz2 ice-7cdc3633275e1106de5aa17ee3ce4a0678227c15.tar.xz ice-7cdc3633275e1106de5aa17ee3ce4a0678227c15.zip |
4351 - Move _close & close to FileUtil.
Diffstat (limited to 'cpp/src/IceUtil/FileUtil.cpp')
-rw-r--r-- | cpp/src/IceUtil/FileUtil.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cpp/src/IceUtil/FileUtil.cpp b/cpp/src/IceUtil/FileUtil.cpp index f5254c6a38e..67f1569fdc0 100644 --- a/cpp/src/IceUtil/FileUtil.cpp +++ b/cpp/src/IceUtil/FileUtil.cpp @@ -162,6 +162,16 @@ IceUtilInternal::unlink(const string& path) return _wunlink(IceUtil::stringToWstring(path).c_str()); } +int +IceUtilInternal::close(int fd) +{ +#if defined(_MSC_VER) && (_MSC_VER >= 1400) + return _close(fd); +#else + return ::close(fd); +#endif +} + #ifdef _STLP_BEGIN_NAMESPACE namespace { @@ -391,6 +401,12 @@ IceUtilInternal::unlink(const string& path) return ::unlink(path.c_str()); } +int +IceUtilInternal::close(int fd) +{ + return ::close(fd); +} + IceUtilInternal::ifstream::ifstream() { } |