#ifndef __RESOURCE_LOADED #define __RESOURCE_LOADED 1 /**************************************************************************** ** ** - Declarations for resource operations ** ***************************************************************************** ** Header introduced by the X/Open CAE Specification, Issue 4, Version 2 ***************************************************************************** ** ** 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 /* ** 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 typedef __time_t time_t; #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 */