On Tue, 25 Aug 2009, Ivan Voras wrote: > Hi, > > At least one on-line tutorial about parallel port hacking > (http://www.excamera.com/articles/21/parallel.html) uses these header > files: > > #include <sys/dev/ppbus/ppi.h> > #include <sys/dev/ppbus/ppbconf.h> > > They are actually present in /sys, but not in the normal userland > include paths. Is this intentional, or was it removed sometimes in > the past?
According to the ppi man page it's.. #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <dev/ppbus/ppi.h> #include <dev/ppbus/ppbconf.h> int main(int argc, char **argv) { int fd; if ((fd = open("/dev/ppi0", O_RDWR)) == -1) { printf("Can't open /dev/ppi0\n"); exit(1); } exit(0); } Those includes are present on my 7.2 box (upgraded with the last week) and my (oldish) -current box. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
signature.asc
Description: This is a digitally signed message part.