summaryrefslogtreecommitdiff
path: root/ace/OS_NS_unistd.inl
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2004-06-21 20:46:53 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2004-06-21 20:46:53 +0000
commitc32476a4efbb1eb131ff5bad226d48e4088f79d4 (patch)
treecfb22802fa55e18979f8295396155d0b35445e4e /ace/OS_NS_unistd.inl
parent4b14c41f20040a18983547659c752885916b85bd (diff)
downloadATCD-c32476a4efbb1eb131ff5bad226d48e4088f79d4.tar.gz
ChangeLogTag:Mon Jun 21 13:37:57 2004 Ossama Othman <ossama@dre.vanderbilt.edu>
Diffstat (limited to 'ace/OS_NS_unistd.inl')
-rw-r--r--ace/OS_NS_unistd.inl14
1 files changed, 8 insertions, 6 deletions
diff --git a/ace/OS_NS_unistd.inl b/ace/OS_NS_unistd.inl
index 099877b2996..7bbe4f6b1d9 100644
--- a/ace/OS_NS_unistd.inl
+++ b/ace/OS_NS_unistd.inl
@@ -114,7 +114,8 @@ ACE_OS::chdir (const char *path)
ACE_NOTSUP_RETURN (-1);
#elif defined (ACE_PSOS)
- ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::change_dir ((char *) path), ace_result_),
+ int result;
+ ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::change_dir ((char *) path), result),
int, -1);
// This #elif seems weird... is Visual Age on NT not setting ACE_WIN32?
@@ -1252,13 +1253,14 @@ ACE_OS::unlink (const char *path)
{
ACE_OS_TRACE ("ACE_OS::unlink");
# if defined (VXWORKS)
- ACE_OSCALL_RETURN (::unlink (const_cast<char *> (path)), int, -1);
+ ACE_OSCALL_RETURN (::unlink (const_cast<char *> (path)), int, -1);
# elif defined (ACE_PSOS) && ! defined (ACE_PSOS_LACKS_PHILE)
- ACE_OSCALL_RETURN (::remove_f ((char *) path), int , -1);
+ ACE_OSCALL_RETURN (::remove_f ((char *) path), int , -1);
# elif defined (ACE_PSOS) && defined (ACE_PSOS_HAS_C_LIBRARY)
- ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::remove ((char *) path),
- ace_result_),
- int, -1);
+ int result;
+ ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::remove ((char *) path),
+ result),
+ int, -1);
# elif defined (ACE_HAS_WINCE)
// @@ The problem is, DeleteFile is not actually equals to unlink. ;(
ACE_WIN32CALL_RETURN (ACE_ADAPT_RETVAL (::DeleteFile (path), ace_result_),