summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_sys_stat.inl
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2021-06-28 15:41:21 +0200
committerJohnny Willemsen <jwillemsen@remedy.nl>2021-06-28 15:41:21 +0200
commitfffe48a8fea850e331714bb526be5de12122307f (patch)
treeb57e996b4b654cd04ca6c9d30c574e4d463fdeb1 /ACE/ace/OS_NS_sys_stat.inl
parent6e2e9f862209e9dae3a282f2505e83d9dce2ac69 (diff)
downloadATCD-fffe48a8fea850e331714bb526be5de12122307f.tar.gz
Removed lot of ACE_OSCALL_RETURN calls, the macro expanded to only the method invocation itself
* ACE/ace/OS_NS_Thread.inl: * ACE/ace/OS_NS_arpa_inet.cpp: * ACE/ace/OS_NS_arpa_inet.inl: * ACE/ace/OS_NS_devctl.inl: * ACE/ace/OS_NS_dlfcn.inl: * ACE/ace/OS_NS_fcntl.cpp: * ACE/ace/OS_NS_fcntl.inl: * ACE/ace/OS_NS_poll.inl: * ACE/ace/OS_NS_regex.inl: * ACE/ace/OS_NS_signal.inl: * ACE/ace/OS_NS_stdio.inl: * ACE/ace/OS_NS_stdlib.inl: * ACE/ace/OS_NS_stropts.inl: * ACE/ace/OS_NS_sys_mman.inl: * ACE/ace/OS_NS_sys_msg.inl: * ACE/ace/OS_NS_sys_resource.inl: * ACE/ace/OS_NS_sys_shm.inl: * ACE/ace/OS_NS_sys_socket.inl: * ACE/ace/OS_NS_sys_stat.inl: * ACE/ace/OS_NS_sys_uio.inl: * ACE/ace/OS_NS_sys_utsname.cpp: * ACE/ace/OS_NS_sys_wait.inl: * ACE/ace/OS_NS_time.cpp: * ACE/ace/OS_NS_time.inl: * ACE/ace/OS_NS_unistd.cpp: * ACE/ace/OS_NS_unistd.inl: * ACE/ace/OS_NS_wchar.inl: * ACE/ace/OS_TLI.inl:
Diffstat (limited to 'ACE/ace/OS_NS_sys_stat.inl')
-rw-r--r--ACE/ace/OS_NS_sys_stat.inl30
1 files changed, 15 insertions, 15 deletions
diff --git a/ACE/ace/OS_NS_sys_stat.inl b/ACE/ace/OS_NS_sys_stat.inl
index db99b17bb79..b8f7c9fc829 100644
--- a/ACE/ace/OS_NS_sys_stat.inl
+++ b/ACE/ace/OS_NS_sys_stat.inl
@@ -20,7 +20,7 @@ namespace ACE_OS
#if defined (ACE_WIN32) || defined (ACE_MQX)
return ACE_OS::open (filename, O_CREAT|O_TRUNC|O_WRONLY, mode);
#else
- ACE_OSCALL_RETURN (::creat (ACE_TEXT_ALWAYS_CHAR (filename), mode), ACE_HANDLE);
+ return ::creat (ACE_TEXT_ALWAYS_CHAR (filename), mode);
#endif /* ACE_WIN32 */
}
@@ -32,7 +32,7 @@ namespace ACE_OS
// Solaris for intel uses an macro for fstat(), this is a wrapper
// for _fxstat() use of the macro.
// causes compile and runtime problems.
- ACE_OSCALL_RETURN (::_fxstat (_STAT_VER, handle, stp), int);
+ return ::_fxstat (_STAT_VER, handle, stp);
#elif defined (ACE_WIN32)
BY_HANDLE_FILE_INFORMATION fdata;
@@ -69,7 +69,7 @@ namespace ACE_OS
::fsync(handle);
//FUZZ: enable check_for_lack_ACE_OS
# endif
- ACE_OSCALL_RETURN (::fstat (handle, stp), int);
+ return ::fstat (handle, stp);
#endif /* !ACE_HAS_X86_STAT_MACROS */
}
@@ -131,9 +131,9 @@ namespace ACE_OS
# elif defined (ACE_HAS_X86_STAT_MACROS)
// Solaris for intel uses an macro for lstat(), this macro is a
// wrapper for _lxstat().
- ACE_OSCALL_RETURN (::_lxstat (_STAT_VER, file, stp), int);
+ return ::_lxstat (_STAT_VER, file, stp);
# else /* !ACE_HAS_X86_STAT_MACROS */
- ACE_OSCALL_RETURN (::lstat (file, stp), int);
+ return ::lstat (file, stp);
# endif /* ACE_LACKS_LSTAT */
}
@@ -161,12 +161,12 @@ namespace ACE_OS
#elif defined (ACE_MKDIR_LACKS_MODE)
ACE_UNUSED_ARG (mode);
# if defined (ACE_MKDIR_EQUIVALENT)
- ACE_OSCALL_RETURN (ACE_MKDIR_EQUIVALENT (path), int);
+ return ACE_MKDIR_EQUIVALENT (path);
# else
- ACE_OSCALL_RETURN (::mkdir (path), int);
+ return ::mkdir (path);
# endif
#else
- ACE_OSCALL_RETURN (::mkdir (path, mode), int);
+ return::mkdir (path, mode);
#endif
}
@@ -182,7 +182,7 @@ namespace ACE_OS
int, -1);
#elif defined (ACE_WIN32) && defined (ACE_USES_WCHAR)
ACE_UNUSED_ARG (mode);
- ACE_OSCALL_RETURN (::_wmkdir (path), int);
+ return ::_wmkdir (path);
#else
return ACE_OS::mkdir (ACE_Wide_To_Ascii (path).char_rep (), mode);
#endif /* ACE_HAS_WINCE */
@@ -199,7 +199,7 @@ namespace ACE_OS
ACE_UNUSED_ARG (mode);
ACE_NOTSUP_RETURN (-1);
#else
- ACE_OSCALL_RETURN (::mkfifo (ACE_TEXT_ALWAYS_CHAR (file), mode), int);
+ return ::mkfifo (ACE_TEXT_ALWAYS_CHAR (file), mode);
#endif /* ACE_LACKS_MKFIFO */
}
@@ -208,7 +208,7 @@ namespace ACE_OS
{
ACE_OS_TRACE ("ACE_OS::stat");
#if defined (ACE_HAS_NONCONST_STAT)
- ACE_OSCALL_RETURN (::stat (const_cast <char *> (file), stp), int);
+ return ::stat (const_cast <char *> (file), stp);
#elif defined (ACE_LACKS_STAT)
ACE_NOTSUP_RETURN (-1);
#elif defined (ACE_HAS_WINCE)
@@ -240,11 +240,11 @@ namespace ACE_OS
#elif defined (ACE_HAS_X86_STAT_MACROS)
// Solaris for intel uses an macro for stat(), this macro is a
// wrapper for _xstat().
- ACE_OSCALL_RETURN (::_xstat (_STAT_VER, file, stp), int);
+ return ::_xstat (_STAT_VER, file, stp);
#elif defined (ACE_MQX)
return MQX_Filesystem::inst ().stat (file, stp);
#else
- ACE_OSCALL_RETURN (ACE_STAT_FUNC_NAME (file, stp), int);
+ return ACE_STAT_FUNC_NAME (file, stp);
#endif /* ACE_HAS_NONCONST_STAT */
}
@@ -282,7 +282,7 @@ namespace ACE_OS
#elif defined (__BORLANDC__) \
|| defined (_MSC_VER) \
|| (defined (__MINGW32__) && !defined (__MINGW64_VERSION_MAJOR))
- ACE_OSCALL_RETURN (ACE_WSTAT_FUNC_NAME (file, stp), int);
+ return ACE_WSTAT_FUNC_NAME (file, stp);
#else /* ACE_HAS_WINCE */
ACE_Wide_To_Ascii nfile (file);
return ACE_OS::stat (nfile.char_rep (), stp);
@@ -303,7 +303,7 @@ namespace ACE_OS
ACE_SECURECRTCALL (_umask_s (new_mode, &old_mode), mode_t, -1, old_mode);
return static_cast<mode_t> (old_mode);
# elif defined (ACE_WIN32) && !defined (__BORLANDC__)
- ACE_OSCALL_RETURN (::_umask (cmask), mode_t);
+ return ::_umask (cmask);
# else
return ::umask (cmask); // This call shouldn't fail...
# endif /* ACE_LACKS_UMASK */