delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/12/18:21:23

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: <00c601c04cf9$1e77a8a0$0201a8c0@mark>
From: "Frank Wagner" <f DOT wagner AT gmx DOT net>
To: <cygwin AT cygwin DOT com>
References: <000901c04ce6$85ea7ca0$0201a8c0 AT mark> <20001112153546 DOT A31042 AT redhat DOT com>
Subject: Re: serial programming HOWTO
Date: Sun, 12 Nov 2000 23:37:19 +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 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?

> >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?

Greetings

Frank



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019