summaryrefslogtreecommitdiff
path: root/ace/OS_NS_sys_utsname.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ace/OS_NS_sys_utsname.inl')
-rw-r--r--ace/OS_NS_sys_utsname.inl33
1 files changed, 0 insertions, 33 deletions
diff --git a/ace/OS_NS_sys_utsname.inl b/ace/OS_NS_sys_utsname.inl
deleted file mode 100644
index eb660f2cad6..00000000000
--- a/ace/OS_NS_sys_utsname.inl
+++ /dev/null
@@ -1,33 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-#include "ace/os_include/os_errno.h"
-
-namespace ACE_OS
-{
-#if !defined (ACE_WIN32) && !defined (VXWORKS) && !defined (CHORUS) && !defined (ACE_PSOS)
-// Don't inline on those platforms because this function contains
-// string literals, and some compilers, e.g., g++, don't handle those
-// efficiently in unused inline functions.
- ACE_INLINE int
- uname (ACE_utsname *name)
- {
-#if defined (INTEGRITY)
- if(!name) {
- errno = EFAULT;
- return -1;
- }
- strcpy(name->sysname,"INTEGRITY");
- int status = gethostname(name->nodename,_SYS_NMLN);
- strcpy(name->release,"4.0");
- strcpy(name->version,"4.0.9");
- strcpy(name->machine,"a standard name");
- return status;
-#else
- ACE_OS_TRACE ("ACE_OS::uname");
- ACE_OSCALL_RETURN (::uname (name), int, -1);
-#endif
- }
-#endif /* ! ACE_WIN32 && ! VXWORKS && ! CHORUS */
-} // namespace ACE_OS