home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 7 / RISCWORLD_VOL7.iso / Software / Issue4 / SDL / gcc346 / !gcc / include / unixlib / sys / h / times < prev    next >
Encoding:
Text File  |  2006-09-17  |  997 b   |  42 lines

  1. /****************************************************************************
  2.  *
  3.  * $Source: /usr/local/cvsroot/gccsdk/unixlib/source/clib/sys/times.h,v $
  4.  * $Date: 2004/04/17 10:51:15 $
  5.  * $Revision: 1.5 $
  6.  * $State: Exp $
  7.  * $Author: nick $
  8.  *
  9.  ***************************************************************************/
  10.  
  11. /* POSIX Standard 4.5.2: Process Times <sys/times.h>.  */
  12.  
  13. #ifndef __SYS_TIMES_H
  14. #define __SYS_TIMES_H
  15.  
  16. #ifndef __UNIXLIB_FEATURES_H
  17. #include <features.h>
  18. #endif
  19.  
  20. #define __need_clock_t
  21. #include <time.h>
  22.  
  23. __BEGIN_DECLS
  24.  
  25. /* Structure describing CPU time used by a process and its children.  */
  26.  
  27. struct tms
  28. {
  29.   clock_t tms_utime;     /* user time */
  30.   clock_t tms_stime;     /* system time */
  31.   clock_t tms_cutime;    /* user time of dead children */
  32.   clock_t tms_cstime;    /* system time of dead children */
  33. };
  34.  
  35. /* Store the CPU time used by this process and all its dead children
  36.    in buffer.  */
  37. extern clock_t times (struct tms *__tmsp) __THROW;
  38.  
  39. __END_DECLS
  40.  
  41. #endif
  42.