Re: Porting Microsoft C to Linux

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 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/