lkml.org 
[lkml]   [1996]   [Jun]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: struct timespec


On Tue, 18 Jun 1996, Thomas Gschwind wrote:
>
> Last week, I found out, that timespec is declared as
> struct timespec {
> long tv_sec; /* seconds */
> long tv_nsec; /* nanoseconds */
> };
>
> However pthreads declares it in its own header files as
> struct timespec {
> long ts_sec; /* seconds */
> long ts_nsec; /* nanoseconds */
> };
> which seems a little bit more intuitive to me.
>
> I made a little patch, which replaces tv_n?sec in ts_n?sec.

"ts_[n]sec" _is_ a bit more intuitive, but it's WRONG. Strange but true,
it really _is_ supposed to be "tv_[n]sec" even for timespec.

In short, you need to fix the pthreads library, not linux.

Linus


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