summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2004-12-17 13:40:02 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2004-12-17 13:40:02 +0000
commit99a641f2eb8bb721e8346101895b76722f9b6d36 (patch)
tree9c7354b67c8fb2dbdfa21b24fa5465ad64964c81 /ace
parent1773ea6d198e333246430df9b730754a18cfea62 (diff)
downloadATCD-99a641f2eb8bb721e8346101895b76722f9b6d36.tar.gz
ChangeLogTag: Fri Dec 17 13:40:12 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ace')
-rw-r--r--ace/OS_NS_unistd.cpp18
1 files changed, 3 insertions, 15 deletions
diff --git a/ace/OS_NS_unistd.cpp b/ace/OS_NS_unistd.cpp
index 370ff5f4510..aebef707e61 100644
--- a/ace/OS_NS_unistd.cpp
+++ b/ace/OS_NS_unistd.cpp
@@ -28,7 +28,7 @@ ftruncate (ACE_HANDLE handle, long len)
fl.l_start = len;
fl.l_type = F_WRLCK;
- return ACE_OS::fcntl (handle, F_FREESP, ACE_reinterpret_cast (long, &fl));
+ return ACE_OS::fcntl (handle, F_FREESP, reinterpret_cast <long> (&fl));
}
#endif /* ACE_NEEDS_FTRUNCATE */
@@ -136,39 +136,27 @@ int
ACE_OS::execl (const char * /* path */, const char * /* arg0 */, ...)
{
ACE_OS_TRACE ("ACE_OS::execl");
-#if defined (ACE_WIN32) || defined (VXWORKS)
- ACE_NOTSUP_RETURN (-1);
-#else
ACE_NOTSUP_RETURN (-1);
// Need to write this code.
// ACE_OSCALL_RETURN (::execv (path, argv), int, -1);
-#endif /* ACE_WIN32 */
}
int
ACE_OS::execle (const char * /* path */, const char * /* arg0 */, ...)
{
ACE_OS_TRACE ("ACE_OS::execle");
-#if defined (ACE_WIN32) || defined (VXWORKS)
- ACE_NOTSUP_RETURN (-1);
-#else
ACE_NOTSUP_RETURN (-1);
// Need to write this code.
// ACE_OSCALL_RETURN (::execve (path, argv, envp), int, -1);
-#endif /* ACE_WIN32 */
}
int
ACE_OS::execlp (const char * /* file */, const char * /* arg0 */, ...)
{
ACE_OS_TRACE ("ACE_OS::execlp");
-#if defined (ACE_WIN32) || defined (VXWORKS)
- ACE_NOTSUP_RETURN (-1);
-#else
ACE_NOTSUP_RETURN (-1);
// Need to write this code.
// ACE_OSCALL_RETURN (::execvp (file, argv), int, -1);
-#endif /* ACE_WIN32 */
}
pid_t
@@ -409,7 +397,7 @@ ACE_OS::pread (ACE_HANDLE handle,
BOOL result = ::ReadFile (handle,
buf,
- ACE_static_cast (DWORD, nbytes),
+ static_cast <DWORD> (nbytes),
&bytes_read,
&overlapped);
@@ -534,7 +522,7 @@ ACE_OS::pwrite (ACE_HANDLE handle,
BOOL result = ::WriteFile (handle,
buf,
- ACE_static_cast (DWORD, nbytes),
+ static_cast <DWORD> (nbytes),
&bytes_written,
&overlapped);