diff options
author | Steve Huston <shuston@riverace.com> | 2004-06-16 20:45:33 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2004-06-16 20:45:33 +0000 |
commit | a15f96bf289ce0a403bb0174307057168a87b095 (patch) | |
tree | 3de16d865529f6fb30955047890674e160901e67 /ace/OS_NS_unistd.inl | |
parent | 8f46bb3f3c26068df0dcc0425784d5905cc63605 (diff) | |
download | ATCD-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.inl | 11 |
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); |