Rev 4874 | Rev 6099 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4874 | Rev 4921 | ||
---|---|---|---|
Line 10... | Line 10... | ||
10 | 10 | ||
11 | #ifdef __cplusplus |
11 | #ifdef __cplusplus |
12 | extern "C" { |
12 | extern "C" { |
Line 13... | Line 13... | ||
13 | #endif |
13 | #endif |
14 | 14 | ||
15 | #ifndef _WINSOCK_H |
15 | #ifndef _TIMEVAL_DEFINED |
16 | #define _TIMEVAL_DEFINED |
16 | #define _TIMEVAL_DEFINED |
17 | struct timeval { |
17 | struct timeval { |
18 | time_t tv_sec; |
18 | time_t tv_sec; |
Line 19... | Line -... | ||
19 | suseconds_t tv_usec; |
- | |
20 | }; |
- | |
21 | - | ||
22 | struct timezone { |
- | |
23 | int tz_minuteswest; |
- | |
24 | int tz_dsttime; |
- | |
25 | }; |
- | |
26 | - | ||
27 | #ifdef __CYGWIN__ |
- | |
28 | #include |
- | |
29 | #endif /* __CYGWIN__ */ |
- | |
30 | - | ||
31 | #endif /* _WINSOCK_H */ |
- | |
32 | - | ||
33 | #define ITIMER_REAL 0 |
- | |
34 | #define ITIMER_VIRTUAL 1 |
- | |
35 | #define ITIMER_PROF 2 |
- | |
36 | - | ||
37 | struct itimerval { |
- | |
38 | struct timeval it_interval; |
- | |
39 | struct timeval it_value; |
19 | suseconds_t tv_usec; |
40 | }; |
20 | }; |
Line 41... | Line 21... | ||
41 | 21 | ||
42 | /* BSD time macros used by RTEMS code */ |
22 | /* BSD time macros used by RTEMS code */ |
Line 68... | Line 48... | ||
68 | --(result)->tv_sec; \ |
48 | --(result)->tv_sec; \ |
69 | (result)->tv_usec += 1000000; \ |
49 | (result)->tv_usec += 1000000; \ |
70 | } \ |
50 | } \ |
71 | } while (0) |
51 | } while (0) |
72 | #endif /* defined (__rtems__) || defined (__CYGWIN__) */ |
52 | #endif /* defined (__rtems__) || defined (__CYGWIN__) */ |
- | 53 | #endif /* !_TIMEVAL_DEFINED */ |
|
- | 54 | ||
- | 55 | struct timezone { |
|
- | 56 | int tz_minuteswest; |
|
- | 57 | int tz_dsttime; |
|
- | 58 | }; |
|
- | 59 | ||
- | 60 | #ifdef __CYGWIN__ |
|
- | 61 | #include |
|
- | 62 | #endif /* __CYGWIN__ */ |
|
- | 63 | ||
- | 64 | #define ITIMER_REAL 0 |
|
- | 65 | #define ITIMER_VIRTUAL 1 |
|
- | 66 | #define ITIMER_PROF 2 |
|
- | 67 | ||
- | 68 | struct itimerval { |
|
- | 69 | struct timeval it_interval; |
|
- | 70 | struct timeval it_value; |
|
- | 71 | }; |
|
- | 72 | ||
- | 73 | #ifdef _COMPILING_NEWLIB |
|
- | 74 | int _EXFUN(_gettimeofday, (struct timeval *__p, void *__tz)); |
|
- | 75 | #endif |
|
Line 73... | Line 76... | ||
73 | 76 | ||
- | 77 | int _EXFUN(gettimeofday, (struct timeval *__restrict __p, |
|
74 | int _EXFUN(gettimeofday, (struct timeval *__p, void *__tz)); |
78 | void *__restrict __tz)); |
75 | int _EXFUN(settimeofday, (const struct timeval *, const struct timezone *)); |
79 | int _EXFUN(settimeofday, (const struct timeval *, const struct timezone *)); |
76 | int _EXFUN(utimes, (const char *__path, const struct timeval *__tvp)); |
80 | int _EXFUN(utimes, (const char *__path, const struct timeval *__tvp)); |
77 | int _EXFUN(getitimer, (int __which, struct itimerval *__value)); |
81 | int _EXFUN(getitimer, (int __which, struct itimerval *__value)); |
78 | int _EXFUN(setitimer, (int __which, const struct itimerval *__value, |
82 | int _EXFUN(setitimer, (int __which, const struct itimerval *__restrict __value, |
Line 79... | Line 83... | ||
79 | struct itimerval *__ovalue)); |
83 | struct itimerval *__restrict __ovalue)); |
80 | 84 | ||
81 | #ifdef __cplusplus |
85 | #ifdef __cplusplus |
82 | } |
86 | } |