From owner-freebsd-questions Mon Nov 30 08:17:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA11512 for freebsd-questions-outgoing; Mon, 30 Nov 1998 08:17:26 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ninbox.ml.org (hsv1-32.airnet.net [207.242.81.32]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA11506 for ; Mon, 30 Nov 1998 08:17:23 -0800 (PST) (envelope-from kris@airnet.net) Received: from airnet.net (localhost [127.0.0.1]) by ninbox.ml.org (8.9.1/8.8.5) with ESMTP id KAA04092 for ; Mon, 30 Nov 1998 10:13:53 -0600 (CST) Message-ID: <3662C440.C3552A80@airnet.net> Date: Mon, 30 Nov 1998 10:13:52 -0600 From: Kris Kirby Organization: Absolutely None! X-Mailer: Mozilla 4.07 [en] (X11; U; FreeBSD 3.0-RELEASE i386) MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: How to access a device under UN*X? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Granted this isn't the usual question, but I've drawn a blank as to the proper way that I'm supposed to access a device (parallel port or serial port) under UN*X. I get the feeling I am supposed to get a file descriptor and ioctl the rest. I would like to know how to do the raw as well as "standard" (for serial I/O) communications, if there is any difference. Also, is it generally bad to attempt assembly under FreeBSD, or is there some special way to go about it? I am running 3.0-RELEASE and have other machines on 2.2.5-RELEASE and 2.2.7-RELEASE. I doubt that will make much difference except for ELF. -- Kris Kirby UAH Mail UAH CS Home WWW ------------------------------------------- TGIFreeBSD... 'Nuff said. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message