summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_unistd.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/OS_NS_unistd.h')
-rw-r--r--ACE/ace/OS_NS_unistd.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/ACE/ace/OS_NS_unistd.h b/ACE/ace/OS_NS_unistd.h
index dc718d3a40a..e017c97f278 100644
--- a/ACE/ace/OS_NS_unistd.h
+++ b/ACE/ace/OS_NS_unistd.h
@@ -31,18 +31,11 @@
#include "ace/os_include/os_unistd.h"
#include "ace/os_include/os_stdio.h"
-
#if defined (ACE_EXPORT_MACRO)
# undef ACE_EXPORT_MACRO
#endif
#define ACE_EXPORT_MACRO ACE_Export
-// This should go in os_unistd.h, but since we don't yet implement any code
-// at that level, we put it here. It used to be in OS.i.
-#if defined (ACE_NEEDS_FTRUNCATE)
-extern "C" ACE_Export int ftruncate (ACE_HANDLE handle, long len);
-#endif /* ACE_NEEDS_FTRUNCATE */
-
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
namespace ACE_OS
@@ -189,12 +182,12 @@ namespace ACE_OS
// should call gethostname()
ACE_NAMESPACE_INLINE_FUNCTION
- int hostname (char *name,
+ int hostname (char name[],
size_t maxnamelen);
#if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
- int hostname (wchar_t *name,
+ int hostname (wchar_t name[],
size_t maxnamelen);
#endif /* ACE_HAS_WCHAR */