3 //=============================================================================
5 * @file OS_NS_sys_utsname.h
7 * @author Douglas C. Schmidt <d.schmidt@vanderbilt.edu>
8 * @author Jesper S. M|ller<stophph@diku.dk>
9 * @author and a cast of thousands...
11 //=============================================================================
13 #ifndef ACE_OS_NS_SYS_UTSNAME_H
14 # define ACE_OS_NS_SYS_UTSNAME_H
16 # include /**/ "ace/pre.h"
18 # include "ace/config-all.h"
20 # if !defined (ACE_LACKS_PRAGMA_ONCE)
22 # endif /* ACE_LACKS_PRAGMA_ONCE */
24 #include /**/ "ace/ACE_export.h"
26 #if defined (ACE_EXPORT_MACRO)
27 # undef ACE_EXPORT_MACRO
29 #define ACE_EXPORT_MACRO ACE_Export
31 #if defined (ACE_LACKS_UTSNAME_T)
32 # if !defined (SYS_NMLN)
34 # endif /* SYS_NMLN */
35 # if !defined (_SYS_NMLN)
36 # define _SYS_NMLN SYS_NMLN
37 # endif /* _SYS_NMLN */
38 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
41 char sysname
[_SYS_NMLN
];
42 char nodename
[_SYS_NMLN
];
43 char release
[_SYS_NMLN
];
44 char version
[_SYS_NMLN
];
45 char machine
[_SYS_NMLN
];
47 ACE_END_VERSIONED_NAMESPACE_DECL
49 # include "ace/os_include/sys/os_utsname.h"
50 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
51 typedef struct utsname ACE_utsname
;
52 ACE_END_VERSIONED_NAMESPACE_DECL
53 # endif /* ACE_LACKS_UTSNAME_T */
55 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
59 int uname (ACE_utsname
*name
);
60 } /* namespace ACE_OS */
62 ACE_END_VERSIONED_NAMESPACE_DECL
64 # include /**/ "ace/post.h"
65 #endif /* ACE_OS_NS_SYS_UTSNAME_H */