Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mephisto!ncar!unmvax!bbx!bbxsda!scott From: scott@bbxsda.UUCP (Scott Amspoker) Newsgroups: comp.lang.c Subject: Re: Port Access Message-ID: <504@bbxsda.UUCP> Date: 3 Jan 90 16:41:45 GMT References: <12720@cbnews.ATT.COM> Reply-To: scott@bbxsda.UUCP (Scott Amspoker) Distribution: usa Organization: Basis International, Albuquerque, NM Lines: 23 In article <12720@cbnews.ATT.COM> knt@cbnews.ATT.COM (kirk.n.trost,59473,cb,1k238,614 860 4225) writes: > >Is there an easy way to access 386 ports using C >under UNIX. > >For example: > > x = input (portno) > output (portno, value) I would be very surprised if UNIX system allowed a user process to access ports directly. If you are writing a driver or kernal routine in C, procedures like the ones in your example could be used. Turbo C, for example, will generate in-line code for inport() and outport() calls. However, there is no standard here. You may write your own in assembler or see if your C library already has them. -- Scott Amspoker Basis International, Albuquerque, NM (505) 345-5232 unmvax.cs.unm.edu!bbx!bbxsda!scott