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 |
Date: | Sun, 12 Nov 2000 22:41:29 -0500 |
From: | Christopher Faylor <cgf AT redhat DOT com> |
To: | cygwin AT cygwin DOT com |
Cc: | f DOT wagner AT gmx DOT net |
Subject: | Re: serial programming HOWTO |
Message-ID: | <20001112224129.A1112@redhat.com> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com, f DOT wagner AT gmx DOT net |
References: | <000901c04ce6$85ea7ca0$0201a8c0 AT mark> <20001112153546 DOT A31042 AT redhat DOT com> <00c601c04cf9$1e77a8a0$0201a8c0 AT mark> |
Mime-Version: | 1.0 |
User-Agent: | Mutt/1.3.11i |
In-Reply-To: | <00c601c04cf9$1e77a8a0$0201a8c0@mark>; from f.wagner@gmx.net on Sun, Nov 12, 2000 at 11:37:19PM +0100 |
On Sun, Nov 12, 2000 at 11:37:19PM +0100, Frank Wagner wrote: >Hello and thanks for the reply, > >> >From the linux man page: >> >> "The sa_restorer element is obsolete and should not be >> used." >> >> It's also not mentioned in the Single UNIX Specification. > >Means this that I can comment out that line with the sa_restorer >statement? I assume so, yes. >>>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? >> >>Because cygwin is not linux? The above use of saio.sa_mask is >>incorrect. You should be using sigemptyset() to clear the mask. This >>will also work on linux. > >But the serial programming HOWTO is witten for linux. Did the author >make a mistake in this case? The author apparently used a nonportable construct. cgf -- 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 |