lkml.org 
[lkml]   [1998]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Porting Microsoft C to Linux
On Tue, 22 Sep 1998, Colin Coe wrote:

>I am working on a driver for the ACL serial cards. The manufacturer
>(StarGate, now defunct) has supplied Microsoft C code as examples on how
>the cards are programmed. I have been working through porting this code
>to run under Linux, but there are some functions I am not sure about.
>The _bios_timeofday function, below, is causing some confusion.
>
> long timeout, currtime;
>...
> _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.
>
>Any ideas?
>
>Colin
>
>PS. This code also includes conio.h and bios.h, neither of which exists
>under Linux.

conio.h is available as a lib for Linux, however I heavily
recommend porting the driver to NOT require conio.h. bios.h is
probably just required for the _bios_whatever() functions. These
can be easily ported by just looking at the MS or Borland manuals
regarding these functions.

--
Mike A. Harris - Computer Consultant - Linux advocate

Linux software galore: http://freshmeat.net


-
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    [W:0.056 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site