#ifndef __TIMES_LOADED #define __TIMES_LOADED 1 /**************************************************************************** ** ** - file access and modification times structure ** ***************************************************************************** ** 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. ** ***************************************************************************** */ #pragma __nostandard #include #ifdef __cplusplus extern "C" { #endif #if __INITIAL_POINTER_SIZE # pragma __pointer_size __save # pragma __pointer_size 64 #endif /* ** Member align structures */ #pragma __member_alignment __save #pragma __member_alignment /****************************************************************************** ** ** This header file either defines the ISO POSIX-1 structures and prototypes ** or defines the DEC C specific structures and prototypes. The ISO POSIX-1 ** support was added in OpenVMS V7.0. The user could still access the old ** interface by defining _DECC_V4_SOURCE ** *******************************************************************************/ #if __CRTL_VER >= 70000000 && (defined _POSIX_C_SOURCE || !defined _DECC_V4_SOURCE) /************************************************************************** ** ISO POSIX-1 definitions of structures and prototypes ***************************************************************************/ # ifndef __CLOCK_T # define __CLOCK_T #ifdef __NAMESPACE_STD namespace std { #endif typedef int clock_t; #ifdef __NAMESPACE_STD } /* namespace std */ using std::clock_t; #endif # endif # ifndef __TMS # define __TMS struct tms { clock_t tms_utime; /* user CPU time */ clock_t tms_stime; /* system CPU time */ clock_t tms_cutime; /* user CPU of terminated child processes */ clock_t tms_cstime; /* system CPU of terminated child processes */ }; # endif clock_t times (struct tms *__buffer); #else /************************************************************************** ** DEC C specific (prior to OpenVMS V7.0) ***************************************************************************/ # ifndef __TBUFFER_T # define __TBUFFER_T 1 typedef struct tbuffer { int proc_user_time; int proc_system_time; int child_user_time; int child_system_time; } tbuffer_t; # endif void times (tbuffer_t *__buffer); /* */ #endif /* ** Restore the users pointer context */ #if __INITIAL_POINTER_SIZE # pragma __pointer_size __restore #endif #ifdef __cplusplus } #endif #pragma __member_alignment __restore #pragma __standard #endif /* __TIMES_LOADED */