Last change
on this file since 444 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
800 bytes
|
Rev | Line | |
---|
[444] | 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 | |
---|
| 5 | <sys/timeb.h> declares the structure used by the ftime function, as |
---|
| 6 | well as the ftime function itself. Newlib does not provide an |
---|
| 7 | implementation of ftime. */ |
---|
| 8 | |
---|
| 9 | #ifndef _SYS_TIMEB_H |
---|
| 10 | |
---|
| 11 | #ifdef __cplusplus |
---|
| 12 | extern "C" { |
---|
| 13 | #endif |
---|
| 14 | |
---|
| 15 | #define _SYS_TIMEB_H |
---|
| 16 | |
---|
| 17 | #include <_ansi.h> |
---|
| 18 | #include <sys/_types.h> |
---|
| 19 | |
---|
| 20 | #if !defined(__time_t_defined) && !defined(_TIME_T_DECLARED) |
---|
| 21 | typedef _TIME_T_ time_t; |
---|
| 22 | #define __time_t_defined |
---|
| 23 | #define _TIME_T_DECLARED |
---|
| 24 | #endif |
---|
| 25 | |
---|
| 26 | struct timeb |
---|
| 27 | { |
---|
| 28 | time_t time; |
---|
| 29 | unsigned short millitm; |
---|
| 30 | short timezone; |
---|
| 31 | short dstflag; |
---|
| 32 | }; |
---|
| 33 | |
---|
| 34 | extern int ftime (struct timeb *); |
---|
| 35 | |
---|
| 36 | #ifdef __cplusplus |
---|
| 37 | } |
---|
| 38 | #endif |
---|
| 39 | |
---|
| 40 | #endif /* ! defined (_SYS_TIMEB_H) */ |
---|
Note: See
TracBrowser
for help on using the repository browser.