annotate nt/inc/sys/time.h @ 42471:4234f54994ef

(main): Parenthesize assignment when used as truth value to prevent gcc warnings.
author Pavel Janík <Pavel@Janik.cz>
date Tue, 01 Jan 2002 22:08:54 +0000
parents fa66d09c3310
children 23a1cea22d13
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
27625
fa66d09c3310 Add include protection.
Andrew Innes <andrewi@gnu.org>
parents: 15139
diff changeset
1 #ifndef SYS_TIME_H_INCLUDED
fa66d09c3310 Add include protection.
Andrew Innes <andrewi@gnu.org>
parents: 15139
diff changeset
2 #define SYS_TIME_H_INCLUDED
fa66d09c3310 Add include protection.
Andrew Innes <andrewi@gnu.org>
parents: 15139
diff changeset
3
15139
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
4 /*
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
5 * sys/time.h doesn't exist on NT
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
6 */
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
7
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
8 struct timeval
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
9 {
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
10 long tv_sec; /* seconds */
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
11 long tv_usec; /* microseconds */
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
12 };
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
13 struct timezone
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
14 {
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
15 int tz_minuteswest; /* minutes west of Greenwich */
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
16 int tz_dsttime; /* type of dst correction */
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
17 };
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
18
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
19 void gettimeofday (struct timeval *, struct timezone *);
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
20
27625
fa66d09c3310 Add include protection.
Andrew Innes <andrewi@gnu.org>
parents: 15139
diff changeset
21 #endif /* SYS_TIME_H_INCLUDED */
fa66d09c3310 Add include protection.
Andrew Innes <andrewi@gnu.org>
parents: 15139
diff changeset
22
15139
4d638e5a9e7d Initial revision
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff changeset
23 /* end of sys/time.h */