summaryrefslogtreecommitdiff
path: root/ace/OS_NS_unistd.inl
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2004-06-16 20:45:33 +0000
committerSteve Huston <shuston@riverace.com>2004-06-16 20:45:33 +0000
commita15f96bf289ce0a403bb0174307057168a87b095 (patch)
tree3de16d865529f6fb30955047890674e160901e67 /ace/OS_NS_unistd.inl
parent8f46bb3f3c26068df0dcc0425784d5905cc63605 (diff)
downloadATCD-a15f96bf289ce0a403bb0174307057168a87b095.tar.gz
ChangeLogTag:Wed Jun 16 12:48:21 2004 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ace/OS_NS_unistd.inl')
-rw-r--r--ace/OS_NS_unistd.inl11
1 files changed, 3 insertions, 8 deletions
diff --git a/ace/OS_NS_unistd.inl b/ace/OS_NS_unistd.inl
index cd83bc91396..099877b2996 100644
--- a/ace/OS_NS_unistd.inl
+++ b/ace/OS_NS_unistd.inl
@@ -23,17 +23,12 @@ ACE_OS::access (const char *path, int amode)
{
ACE_OS_TRACE ("ACE_OS::access");
#if defined (ACE_LACKS_ACCESS)
-# if defined (ACE_HAS_WINCE)
+# if defined (ACE_HAS_WINCE) || defined (VXWORKS)
// @@ WINCE: There should be a Win32 API that can do this.
// Hard coded read access here.
- FILE* handle = ACE_OS::fopen (ACE_TEXT_CHAR_TO_TCHAR(path), ACE_LIB_TEXT ("r"));
- ACE_UNUSED_ARG (amode);
-
- ACE_OS::fclose (handle);
- return (handle == ACE_INVALID_HANDLE ? -1 : 0);
-# elif defined (VXWORKS)
- FILE* handle = ACE_OS::fopen (ACE_TEXT_CHAR_TO_TCHAR(path), ACE_LIB_TEXT ("r"));
ACE_UNUSED_ARG (amode);
+ FILE* handle = ACE_OS::fopen (ACE_TEXT_CHAR_TO_TCHAR(path),
+ ACE_LIB_TEXT ("r"));
if (handle != 0)
{
ACE_OS::fclose (handle);