#ifndef __TIMES_LOADED #define __TIMES_LOADED 1 /**************************************************************************** ** ** - file access and modification times structure ** ***************************************************************************** ** 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. ** ****************************************************************************** */ #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 typedef int clock_t; # 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 */