delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-ID: | <000901c04ce6$85ea7ca0$0201a8c0@mark> |
From: | "Frank Wagner" <f DOT wagner AT gmx DOT net> |
To: | <cygwin AT sourceware DOT cygnus DOT com> |
Subject: | serial programming HOWTO |
Date: | Sun, 12 Nov 2000 21:24:12 +0100 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook Express 5.00.2014.211 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2014.211 |
Hello, I encountered something confusing. This part of c-sourccode is from the asynchronous input example included in the serial programming HOWTO document: /* install the signal handler before making the device asynchronous */ saio.sa_handler = signal_handler_IO; saio.sa_mask = 0; saio.sa_flags = 0; saio.sa_restorer = NULL; sigaction(SIGIO,&saio,NULL); I tried to compile this example under Win95 with cygwin and got the following error: ! program.c:41: structure has no member named `sa_restorer' OK. There was no declaration of "sa_restorer" in the file /sys/signal.h. Why? After that I tried to compile that example under Linux and got the follwing error message program.c: 39 incompatible types in assignment --dir=. that refers to the folloing line of the source: saio.sa_mask = 0; Why do I get a error message form an example that is written for linux? Can someone help me? I'm very confused. With regards Frank ========================= Frank Wagner Registered Linux User 146442 E-mail f DOT wagner AT gmx DOT net ========================= -- 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 |