From owner-freebsd-questions Mon Apr 26 23:50:35 1999 Delivered-To: freebsd-questions@freebsd.org Received: from obiwan.eastcoast.co.za (obiwan.eastcoast.co.za [196.7.130.5]) by hub.freebsd.org (Postfix) with ESMTP id 4450514D92 for ; Mon, 26 Apr 1999 23:50:17 -0700 (PDT) (envelope-from ThomasP@cat.co.za) Received: from dc.cat.co.za (unverified [216.2.181.98]) by obiwan.eastcoast.co.za (Rockliffe SMTPRA 2.1.6) with ESMTP id for ; Tue, 27 Apr 1999 08:46:56 +0200 Received: by DC with Internet Mail Service (5.0.1460.8) id ; Tue, 27 Apr 1999 08:53:23 +0200 Message-ID: <81F5585A3B93D111A8D10080ADB4CBB9055A0B@DC> From: Thomas Page To: "'freebsd-questions@FreeBSD.org'" Subject: Using SIGIO Date: Tue, 27 Apr 1999 08:53:22 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1460.8) Content-Type: multipart/alternative; boundary="---- =_NextPart_001_01BE907A.A4229E20" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------ =_NextPart_001_01BE907A.A4229E20 Content-Type: text/plain Hi, I am having trouble setting up a SIGIO for the serial port, the point in question is that when I do a fcntl(fd,F_GETOWN) or fcntl(fd,F_SETOWN,...), I get an "Inappropriate ioctl for device". I have used "signal" and a signal handler, and have set the serial port to "O_ASYNC", but this third requirment (as per all the books I have) just will not work. Is it a user rights issue, or am I way off track? I have tried various other ideas, fcntl(fd,FASYNC), ioctl(fd,TIOSPGRP)..., etc, etc, but all with various error messages. I have even tried locking the fd, then unlocking afterwards, no change. Thanks Thomas Page CAT (Pty) Ltd - Advanced security Technology thomasp@cat.co.za (tompage@hotmail.com) +27 31 560 6556 "The proper 'office' of a friend is to side with you when you are wrong. Nearly everyone will side with you when you are right." Mark Twain ------ =_NextPart_001_01BE907A.A4229E20 Content-Type: text/html Content-Transfer-Encoding: quoted-printable Using SIGIO

Hi,
I am having trouble setting up a = SIGIO for the serial port, the point in question is that when I do a = fcntl(fd,F_GETOWN) or fcntl(fd,F_SETOWN,...), I get an = "Inappropriate ioctl for device". I have used = "signal" and a signal handler, and have set the serial port = to "O_ASYNC", but this third requirment (as per all the books = I have) just will not work. Is it a user rights issue, or am I way off = track?

I have tried various other ideas, = fcntl(fd,FASYNC), ioctl(fd,TIOSPGRP)..., etc, etc, but all with various = error messages. I have even tried locking the fd, then unlocking = afterwards, no change.

Thanks


Thomas Page
CAT (Pty) Ltd - Advanced security Technology
thomasp@cat.co.za   = (tompage@hotmail.com) +27 31 560 6556

"The proper = 'office' of a friend is to side with you when you are wrong. Nearly = everyone will side with you when you are = right."        Mark = Twain

------ =_NextPart_001_01BE907A.A4229E20-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message