#ifndef __RESOURCE_LOADED #define __RESOURCE_LOADED 1 /**************************************************************************** ** ** - Declarations for resource operations ** ***************************************************************************** ** Header introduced by the X/Open CAE Specification, Issue 4, Version 2 ***************************************************************************** ** ** 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 /* ** For the moment, the only part implemented is the rusage structure ** used by wait3. */ /* ** 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 struct rusage { struct timeval ru_utime; /* user time used */ struct timeval ru_stime; /* system time used -- not implemented */ }; #pragma __member_alignment __restore #ifdef __cplusplus } #endif #pragma __standard #endif /* __RESOURCE_LOADED */