From owner-freebsd-hardware Tue Nov 5 6:58:12 2002 Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6928037B401 for ; Tue, 5 Nov 2002 06:58:11 -0800 (PST) Received: from wildwind.hq.panda.bg (wildwind.hq.panda.bg [217.75.134.65]) by mx1.FreeBSD.org (Postfix) with SMTP id 017AD43E42 for ; Tue, 5 Nov 2002 06:58:10 -0800 (PST) (envelope-from nik@hq.panda.bg) Received: (qmail 15032 invoked by uid 85); 5 Nov 2002 15:05:28 -0000 Received: from unknown (HELO nik.panda) (192.168.5.100) by wildwind.hq.panda.bg with SMTP; 5 Nov 2002 15:05:27 -0000 Date: Tue, 5 Nov 2002 16:58:06 +0200 From: Nikolay Petrov X-Mailer: The Bat! (v1.61) Reply-To: Nikolay Petrov Organization: Panda KOOP X-Priority: 3 (Normal) Message-ID: <1527329343.20021105165806@hq.panda.bg> To: freebsd-hardware@FreeBSD.org Subject: changing com port RTS flag - Inappropriate ioctl for device MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Nik's Monitoring Daemon (AMaViS perl-11e - 31 Oct 2002 10:25:16 EEST) Sender: owner-freebsd-hardware@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello , I try to change com RTS flag with small perl code: require "termios.ph"; $DEVICE = new IO::File; die "Cannot open $tty, $!" unless $DEVICE->open("+<$tty"); $DEVICE -> autoflush(1); IO::Stty::stty($DEVICE, 'raw'); IO::Stty::stty($DEVICE, 'cs8', 'cread', 'inlcr', 'pass8', $tty_speed); ioctl($DEVICE, &TIOCMBIS, &TIOCM_RTS) || print "Error: TIOCMBIS: $!\n"; ioctl($DEVICE, &TIOCMBIC, &TIOCM_RTS) || print "Error: TIOCMBIC: $!\n"; and i receve 'Inappropriate ioctl for device' error: Error: TIOCMBIS: Inappropriate ioctl for device Error: TIOCMBIC: Inappropriate ioctl for device -- Best regards, Nikolay nik@hq.panda.bg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hardware" in the body of the message