5 Copyright © 1995-2002, The AROS Development Team. All rights reserved.
8 Desc: ANSI-C header file sys/time.h
12 #include <sys/types.h>
13 #include <time.h> /* XXX Probably not allowed */
15 #include <aros/_timeval.h> /* get struct timeval */
17 /* struct itimerval is used by the interval timers getitimer()/setitimer() */
20 struct timeval it_interval
; /* timer interval */
21 struct timeval it_value
; /* current value */
24 /* Which interval timer */
25 #define ITIMER_REAL 0 /* Decrements in real time */
26 #define ITIMER_VIRTUAL 1 /* Decrements in task virtual time */
27 #define ITIMER_PROF 2 /* Decrements in task virtual/system time */
30 This structure describes a timezone. Note that most implementations of the
31 C library no longer use the timezone information passed to gettimeofday().
35 int tz_minuteswest
; /* Minutes west of Greenwich. */
36 int tz_dsttime
; /* Type of dst correction (see below). */
39 /* Daylight saving time styles. (tz_dsttime) */
40 #define DST_NONE 0 /* No special style. */
41 #define DST_USA 1 /* USA style. */
42 #define DST_AUST 2 /* Australian style. */
43 #define DST_WET 3 /* Western European style. */
44 #define DST_MET 4 /* Middle European style. */
45 #define DST_EET 5 /* Eastern European style. */
46 #define DST_CAN 6 /* Canadian style. */
47 #define DST_GB 7 /* Great British and Irish style. */
48 #define DST_RUM 8 /* Rumanian style. */
49 #define DST_TUR 9 /* Turkish style. */
50 #define DST_AUSTALT 10 /* Alternate Australian style. */
56 int getitimer(int which
, struct itimerval
*);
57 int setitimer(int which
, const struct itimerval
*, struct itimerval
*);
58 int gettimeofday(struct timeval
* tv
, struct timezone
* tz
);
59 int settimeofday(const struct timeval
* tv
, const struct timezone
* tz
);
60 int utimes(const char *file
, struct timeval tvp
[2]);
65 SUSv2 says that select() is defined here. BSD however defines it in
66 unistd.h. So does AROS, as that makes more sense.
69 #endif /* _SYS_TIME_H_ */