| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com> |
| List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
| List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, |
| <http://sourceware.cygnus.com/ml/#faqs> | |
| Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
| Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
| Message-ID: | <37C0EAC4.63151D86@tbit.dk> |
| Date: | Mon, 23 Aug 1999 08:31:32 +0200 |
| From: | Kim Poulsen <kpo AT tbit DOT dk> |
| Organization: | Ericsson Telebit A/S |
| X-Mailer: | Mozilla 4.61 [en] (Win98; I) |
| X-Accept-Language: | en |
| MIME-Version: | 1.0 |
| To: | Cygwin Mailing list <cygwin AT sourceware DOT cygnus DOT com> |
| Subject: | Serial port programming |
Hi there
I've got the following problem:
I need to access the serial ports of my PC through an ANSI C program.
How do I do that ? I have already tried using fopen("/dev/com2", "r")
and fopen("com2", "r") but these only causes a core dump.
So how to avoid core dumping and make me able to set the serial port
stats (parity, stop bits, bits per byte, serial speed) ?
dos.h is not available as far as I can see and therefore inportb() and
outportb() as well...
The FAQ or the mailing list archive has no response on 'serial' or
'port' which is why I ask here now.
Thank you in advance for any answers that might help me clear this up.
Kim
--
Kim Poulsen, B.Sc.E.E, System Developer HW
Ericsson Telebit A/S Tel: + 45 86 28 81 76
Fabriksvej 11 Fax: + 45 86 28 81 86
DK-8260 Viby J E-mail: info AT tbit DOT dk
Denmark URL: http://www.tbit.dk/
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |