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

  1. /****************************************************************************
  2.  *
  3.  * $Source: /usr/local/cvsroot/gccsdk/unixlib/source/clib/sys/timeb.h,v $
  4.  * $Date: 2004/04/17 10:51:15 $
  5.  * $Revision: 1.5 $
  6.  * $State: Exp $
  7.  * $Author: nick $
  8.  *
  9.  ***************************************************************************/
  10.  
  11. #ifndef __SYS_TIMEB_H
  12. #define __SYS_TIMEB_H 1
  13.  
  14. #ifndef __UNIXLIB_FEATURES_H
  15. #include <features.h>
  16. #endif
  17.  
  18. #define __need_time_t
  19. #include <time.h>
  20.  
  21. __BEGIN_DECLS
  22.  
  23. /* Structure returned by the `ftime' function.  */
  24.  
  25. struct timeb
  26.   {
  27.     time_t time;        /* Seconds since epoch, as from `time'.  */
  28.     unsigned short int millitm;    /* Additional milliseconds.  */
  29.     short int timezone;        /* Minutes west of GMT.  */
  30.     short int dstflag;        /* Nonzero if Daylight Savings Time used.  */
  31.   };
  32.  
  33. /* Fill in TIMEBUF with information about the current time.  */
  34. extern int ftime (struct timeb *__timebuf) __THROW;
  35.  
  36. __END_DECLS
  37.  
  38. #endif    /* sys/timeb.h */
  39.