timeb.h 752 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* timeb.h -- An implementation of the standard Unix <sys/timeb.h> file.
  2. Written by Ian Lance Taylor <ian@cygnus.com>
  3. Public domain; no rights reserved.
  4. <sys/timeb.h> declares the structure used by the ftime function, as
  5. well as the ftime function itself. Newlib does not provide an
  6. implementation of ftime. */
  7. #ifndef _SYS_TIMEB_H
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. #define _SYS_TIMEB_H
  12. #include <_ansi.h>
  13. #include <machine/types.h>
  14. #ifndef __time_t_defined
  15. typedef _TIME_T_ time_t;
  16. #define __time_t_defined
  17. #endif
  18. struct timeb
  19. {
  20. time_t time;
  21. unsigned short millitm;
  22. short timezone;
  23. short dstflag;
  24. };
  25. extern int ftime _PARAMS ((struct timeb *));
  26. #ifdef __cplusplus
  27. }
  28. #endif
  29. #endif /* ! defined (_SYS_TIMEB_H) */