#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 2000 Compaq Computer Corporation ** ** Compaq and the Compaq logo Registered in U.S. Patent and Trademark Office. ** ** Confidential computer software. Valid license from Compaq 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. ** ****************************************************************************** */ #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 */