I am trying to write a program that will access the serial and parallel port on Linux system using gcc. Any help is appreciated.

Thanks,
Joerich