[fpc-devel]Ports under Linux

Marco van de Voort Marcov at stack.nl
Sun Feb 4 14:23:53 CET 2001

> I have tried to use the parallel port under Linux and I cannot.
> It always leaves with the error: 216 "General Protection fault".
> I use the unit "Ports".
> In order to use the parallel port under Windows assembler is due to use.
> In the end one ends up creating the unit "Ports" under Windows. There is
> another form? (WINAPI???)

(From memory:)

Under Linux and FreeBSD you usually have to be root to access 
ports AND ask permission with ioperm. See units manual, linux unit, 
function ioperm and maybe also the inport<x> and outport<x> 
functions there.

More information about the fpc-devel mailing list