#ifndef __RESOURCE_LOADED #define __RESOURCE_LOADED 1 /**************************************************************************** ** ** - Declarations for resource operations ** ***************************************************************************** ** Header introduced by the X/Open CAE Specification, Issue 4, Version 2 ***************************************************************************** ** * ** HPE CONFIDENTIAL. This software is confidential proprietary software * ** licensed by Hewlett Packard Enterprise Development, LP, and is not * ** authorized to be used, duplicated or disclosed to anyone without the * ** prior written permission of HPE. * ** Copyright 2003 Hewlett Packard Enterprise Development, LP * ** * ** VMS SOFTWARE, INC. CONFIDENTIAL. This software is confidential * ** proprietary software licensed by VMS Software, Inc., and is not * ** authorized to be used, duplicated or disclosed to anyone without * ** the prior written permission of VMS Software, Inc. * ** Copyright 2020 VMS Software, Inc. * ** * ***************************************************************************** */ #pragma __nostandard #include #ifdef __cplusplus extern "C" { #endif /* ** All structures should be member aligned on natural boundaries */ #pragma __member_alignment __save #pragma __member_alignment /* ** Public typedefs */ #if !defined __TIME_T && !defined _DECC_V4_SOURCE # define __TIME_T 1 #ifdef __NAMESPACE_STD namespace std { #endif typedef __time_t time_t; #ifdef __NAMESPACE_STD } /* namespace std */ using std::time_t; #endif #endif #ifndef __TIMEVAL # define __TIMEVAL 1 # if defined _XOPEN_SOURCE_EXTENDED || !defined _DECC_V4_SOURCE struct timeval { __time_t tv_sec; /* seconds since Jan. 1, 1970 */ long tv_usec; /* microseconds */ }; # else struct timeval { long tv_sec; /* seconds since Jan. 1, 1970 */ long tv_usec; /* microseconds */ }; # endif #endif #define RUSAGE_SELF 0 #define RUSAGE_CHILDREN -1 #ifdef _GNU_SOURCE # define RUSAGE_THREAD 1 /* not implemented */ #endif struct rusage { struct timeval ru_utime; /* user time used */ struct timeval ru_stime; /* system time used -- not implemented */ #if __CRTL_VER >= 80500000 long ru_maxrss; /* max resident set size */ long ru_ixrss; /* integral shared text memory size -- not implemented */ long ru_idrss; /* integral unshared data size -- not implemented */ long ru_isrss; /* integral unshared stack size -- not implemented */ long ru_minflt; /* page reclaims -- not implemented */ long ru_majflt; /* page faults -- not implemented */ long ru_nswap; /* swaps -- not implemented */ long ru_inblock; /* block input operations -- not implemented */ long ru_oublock; /* block output operations -- not implemented */ long ru_msgsnd; /* messages sent -- not implemented */ long ru_msgrcv; /* messages received -- not implemented */ long ru_nsignals; /* signals received -- not implemented */ long ru_nvcsw; /* voluntary context switches -- not implemented */ long ru_nivcsw; /* involuntary context switches -- not implemented */ #endif }; #pragma __member_alignment __restore #if __INITIAL_POINTER_SIZE #pragma __pointer_size __save #pragma __pointer_size 64 #endif #if __CRTL_VER >= 80500000 && !defined _ANSI_C_SOURCE int getrusage(int, struct rusage *); #endif #if __INITIAL_POINTER_SIZE #pragma __pointer_size __restore #endif #ifdef __cplusplus } #endif #pragma __standard #endif /* __RESOURCE_LOADED */