Subject: re: posix time.h and adding restrict keyword
To: Murray Armfield <murray@river-styx.org>
From: matthew green <mrg@eterna.com.au>
List: tech-kern
Date: 04/18/2004 13:24:16
the restrict thing is probably good/fine to do.
Also, the struct timeval is making use of the long type while posix specifies
a couple of other data types for the timeval structure. Should this be
changed?
i.e.
struct timeval {
- long tv_sec; /* seconds */
- long tv_usec; /* and microseconds */
+ time_t tv_sec; /* seconds */
+ suseconds_t tv_usec; /* and microseconds */
};
Please cc me in any replies as I am no longer on any of the NetBSD mailing
lists.
this however is wrong. time_t and long, and i'd guess suseconds_t and
long both are difference sizes. ie, this breaks the ABI and API.
.mrg.