X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com Reply-To: Norman Shapiro From: cygwin AT dad DOT org Subject: Accessing a printer port Date: Sun, 10 Feb 2013 07:48:48 -0800 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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