From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 25 03:41:21 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B9ED106568D; Tue, 25 Aug 2009 03:41:21 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id A44B98FC13; Tue, 25 Aug 2009 03:41:20 +0000 (UTC) Received: from inchoate.gsoft.com.au (inchoate.gsoft.com.au [203.31.81.30]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id n7P3fITi012268 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 25 Aug 2009 13:11:18 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Tue, 25 Aug 2009 13:11:04 +0930 User-Agent: KMail/1.9.10 References: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1386211.b6zfeR6ZaB"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200908251311.12503.doconnor@gsoft.com.au> X-Spam-Score: -3.603 () ALL_TRUSTED,AWL,BAYES_00 X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Cc: Ivan Voras Subject: Re: Parallel port headers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Aug 2009 03:41:21 -0000 --nextPart1386211.b6zfeR6ZaB Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 > #include > > 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 #include #include #include #include int main(int argc, char **argv) { int fd; if ((fd =3D open("/dev/ppi0", O_RDWR)) =3D=3D -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)=20 and my (oldish) -current box. =2D-=20 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 --nextPart1386211.b6zfeR6ZaB Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iD8DBQBKk11Y5ZPcIHs/zowRAqzWAJ9FJXUiBtx3oi6MT1alA06/caB8CgCeOab4 yNmVHb5n5Svm9lWcIHMbZLY= =4e/m -----END PGP SIGNATURE----- --nextPart1386211.b6zfeR6ZaB--