delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/09/10:44:31

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: Tue, 9 Jan 2001 16:43:29 +0100
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: prototype of bind in sys/socket.h
Message-ID: <20010109164329.B4141@cobold.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <3A5B23FC DOT 59E103E4 AT mip DOT sdu DOT dk>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <3A5B23FC.59E103E4@mip.sdu.dk>; from fonseca@mip.sdu.dk on Tue, Jan 09, 2001 at 03:45:16PM +0100

On Tue, Jan 09, 2001 at 03:45:16PM +0100, René Møller Fonseca wrote:
> Hi,
> 
> The prototype of bind in /usr/include/sys/socket.h is:
> int bind (int, struct sockaddr *__my_addr, int __addrlen);
> 
> Without knowing what the standard exactly suggests, I think this should
> have been:
> int bind (int, const struct sockaddr *__my_addr, int __addrlen);
> 
> bind is not allowed to modify the socket address! The operating systems,
> that I have checked, use const in the prototype of bind.

You're right. Thanks for the hint. I will change that.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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