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: | <3A5B23FC.59E103E4@mip.sdu.dk> |
Date: | Tue, 09 Jan 2001 15:45:16 +0100 |
From: | =?iso-8859-1?Q?Ren=E9=20M=F8ller?= Fonseca <fonseca AT mip DOT sdu DOT dk> |
Organization: | MIP, University of Southern Denmark |
X-Mailer: | Mozilla 4.76 [en] (Windows NT 5.0; U) |
X-Accept-Language: | en |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | prototype of bind in sys/socket.h |
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. Cheers, René -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |