X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.8 required=5.0	tests=BAYES_50,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL
X-Spam-Check-By: sourceware.org
Message-Id: <201302101548.r1AFmnYw039876@shell0.rawbw.com>
To: cygwin@cygwin.com
Reply-To: Norman Shapiro <cygwin@dad.org>
From: cygwin@dad.org
Subject: Accessing a printer port
Date: Sun, 10 Feb 2013 07:48:48 -0800
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Here is my problem. There is an old laptop running Windows XP. It has a female "printer port", which I understand is also known as a "parallel port". There is a male 25 pin to female 9 pin adapter that fits the female port. The 9 pin end will eventually be connected to a serial device. I want to send characters to the serial device, from a C program.

Can I just open("/cygdrive/c/prn", ...)?

Can I use tcsetattr on the resulting file descriptor?

Thank you very much, as they say, in advance.

    Norman Shapiro

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

