home *** CD-ROM | disk | FTP | other *** search
/ Zodiac Super OZ / MEDIADEPOT.ISO / FILES / 13 / DJCRX201.ZIP / include / sys / time.h < prev    next >
C/C++ Source or Header  |  1995-08-27  |  945b  |  41 lines

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #ifndef __dj_include_sys_time_h_
  3. #define __dj_include_sys_time_h_
  4.  
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8.  
  9. #ifndef __dj_ENFORCE_ANSI_FREESTANDING
  10.  
  11. #ifndef __STRICT_ANSI__
  12.  
  13. #ifndef _POSIX_SOURCE
  14.  
  15. #include <time.h>
  16.  
  17. #define ITIMER_REAL      0
  18. #define ITIMER_PROF      1
  19.  
  20. struct itimerval {
  21.   struct  timeval it_interval;    /* timer interval */
  22.   struct  timeval it_value;       /* current value */
  23. };
  24.  
  25. int getitimer(int _which, struct itimerval *_value);
  26. int setitimer(int _which, struct itimerval *_value, struct itimerval *_ovalue);
  27. int utimes(const char *_file, struct timeval _tvp[2]);
  28.  
  29. #endif /* !_POSIX_SOURCE */
  30. #endif /* !__STRICT_ANSI__ */
  31. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  32.  
  33. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  34. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  35.  
  36. #ifdef __cplusplus
  37. }
  38. #endif
  39.  
  40. #endif /* !__dj_include_sys_time_h_ */
  41.