delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/02/24/04:35:11

X-Spam-Check-By: sourceware.org
Date: Fri, 24 Feb 2006 10:34:54 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: bindresvport(): can it be exported from cygwin1.dll?
Message-ID: <20060224093454.GJ4294@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <h83sv1dhuj4c6n7po53eno8b6r19a1uj39 AT 4ax DOT com> <20060223201227 DOT GH4294 AT calimero DOT vinschen DOT de> <fl6sv198vjodsjgta2qnu217ptn4e4grbb AT 4ax DOT com>
Mime-Version: 1.0
In-Reply-To: <fl6sv198vjodsjgta2qnu217ptn4e4grbb@4ax.com>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Feb 23 15:38, Andrew Schulman wrote:
> > > I see that bindresvport.c is part of the cygwin source code.
> > 
> > You have apparently better eyes then I have.  Where did you see that
> > bindresvport function in Cygwin?
> > 
> > If you're talking about the implementation in newlib/libc/sys/linux/...
> > then it's unusable for Cygwin.  There's a reason it's in the linux
> > subdirectory...
> 
> Ah... ok.
>  
> > >   Would it be
> > > possible to have it exported from cygwin1.dll?
> > 
> > No.  We need a implementation which uses the limited functionality
> > of WinSock.  It's not that hard, but it's definitely not going to be 
> > in 1.5.20.  http://cygwin.com/acronyms/#SHTDI
> 
> OK, I'll have a look at it.  Any ready pointers would be welcome.

bindresvport and bindresvport_sa are in functionality very similar to
rresvport, except that they don't create the socket by themselves.  So,
actually it's fairly easy to implement bindresvport{_sa} by ripping out
the bigger part from rresvport, move it into its own function called
bindresvport_sa, and implementing bindresvport and rresvport by calling
bindresvport_sa.

Actually, I'm planning to do this anyway, but I already added too many
new functions to 1.5.20, so this must wait, same as getaddrinfo or our
own implementation of rexec/rcmd.  However, this doesn't mean I wouldn't
be glad about help.  You know, http://cygwin.com/acronyms/#PTC  ;-)


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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