On Thu, Mar 09, 2000 at 07:35:37PM -0800, vilas kumar wrote:
>
> In Turbo C, you have the functions inport() and outport() to deal with
> receiving and sending data to external ports such as LPTs. How do I do it
> when I an programming in C in UNIX environment. In other words, can anybody
> tell me how to send an 8 bit binary data to port 0x378 using an ANSI C
> program? A sample code would be very useful.
As Gaurav pointed out, you can potentially do it, but it's frowned upon.
You should be writing a kernel mode device driver which does all these
low level operations and provide a device abstraction to be used from
user level.
-Arun
-----------------------------------------------------------------------
For more information on the LIH mailing list see:
http://lists.linux-india.org/lists/LIH