lkml.org 
[lkml]   [1998]   [Sep]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From(Alan Cox)
SubjectRe: Porting Microsoft C to Linux
DateTue, 22 Sep 1998 05:58:38 +0100 (BST)
> 	_bios_timeofday(_TIME_GETCLOCK, &timeout);
>
> I have tried replacing it with gettimeofday() but I am not sure what
> TIME_GETCLOCK does so I don't know if I am doing the right thing.

You need to understand what the code is trying to do

My guess is its timer stuff if so you probably want


timeout = jiffies + someoffset;

while(time_before(jiffies, timeout))
{
things_occur
}


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:44    [from the cache]
©2003-2010