#ifndef __UTSNAME_LOADED #define __UTSNAME_LOADED 1 #pragma __nostandard #include #if __CRTL_VER >= 70000000 /**** Supported starting with OpenVMS V7.0 ****/ /**************************************************************************** ** ** - User information ** ***************************************************************************** ** Header introduced by the ISO POSIX-1 Standard ***************************************************************************** ** ** Copyright 2003 Hewlett-Packard Development Company, L.P. ** ** Confidential computer software. Valid license from HP and/or ** its subsidiaries required for possession, use, or copying. ** ** Consistent with FAR 12.211 and 12.212, Commercial Computer Software, ** Computer Software Documentation, and Technical Data for Commercial ** Items are licensed to the U.S. Government under vendor's standard ** commercial license. ** ** Neither HP nor any of its subsidiaries shall be liable for technical ** or editorial errors or omissions contained herein. The information ** in this document is provided "as is" without warranty of any kind and ** is subject to change without notice. The warranties for HP products ** are set forth in the express limited warranty statements accompanying ** such products. Nothing herein should be construed as constituting an ** additional warranty. ** ***************************************************************************** */ #ifdef __cplusplus extern "C" { #endif #if __INITIAL_POINTER_SIZE # pragma __pointer_size __save # pragma __pointer_size 32 #endif /* ** Define the structure */ #pragma __member_alignment __save #pragma __member_alignment struct utsname { char sysname [31+1]; /* "OpenVMS" */ char release [31+1]; /* "0" */ char version [31+1]; /* Version of the hosting OpenVMS */ char machine [31+1]; /* Hardware name, with spaces replaced */ /* by undercores */ char nodename[1024+1]; /* DECnet node name */ #ifndef _POSIX_C_SOURCE char arch [15+1]; /* Architecture ("VAX" or "Alpha") */ char __spare [256+1]; #else char __spare [15+1+256+1]; #endif }; #pragma __member_alignment __restore /* ** We are done defining things which must always be 32 bit pointers. If the ** user has used /pointer_size=32 or /pointer_size=64, we will allow 64 bit ** pointers to be used in function calls. */ #if __INITIAL_POINTER_SIZE # pragma __pointer_size 64 #endif /* ** Function prototypes */ int uname (struct utsname * __name); /* ** Restore the users pointer context */ #if __INITIAL_POINTER_SIZE # pragma __pointer_size __restore #endif #ifdef __cplusplus } #endif #endif /* __UTSNAME_LOADED */ #pragma __standard #endif /* __CRTL_VER */