lkml.org 
[lkml]   [1996]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Long-standing bugs and typos
Date
Another possible typo may be found in <linux/time.h>, which recently (late 
1.3.5x I think) had a timespec struct added to it that looks like this:

struct timespec {
long tv_sec; /* seconds */
long tv_nsec; /* nanoseconds */
};

I suspect these are typos (from timeval?) for ts_sec/ts_nsec respectively?

libc-5.2.18 has the following (conflicting) definition of timespec in its
include/pthread/mit/sys/timers.h:

struct timespec {
time_t ts_sec;
long ts_nsec;
};

I suspect one of these ought to be changed...
Dan

--
I may also be reached as dd@orplid.shnet.org, but please do not send large
messages to that address, thank you.


\
 
 \ /
  Last update: 2005-03-22 13:36    [W:3.851 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site