On Wed, 23 May 2007, Karl SjC6dahl - dunceor wrote:
standard
breakdown
they are not "pretty much the same"; they happen to have the same
field names (a bad design decisison, but we have to live with that),
but they ARE different:
struct bpf_timeval {
u_int32_t tv_sec;
u_int32_t tv_usec;
};
struct timeval {
long tv_sec; /* seconds */
long tv_usec; /* and microseconds */
};
Apart from the fields being unsigned in the bpf_timeval case, they are
not the same size on 64-bit platforms.
-Otto