X-Spam-Check-By: sourceware.org
Date: Fri, 7 Apr 2006 17:09:36 -1000 (HST)
From: Antonio Querubin <tony@lava.net>
To: Reid Thompson <reid.thompson@ateb.com>
Cc: cygwin@cygwin.com
Subject: Re: getsockname problem
In-Reply-To: <44365DE8.4070008@ateb.com>
Message-ID: <Pine.BSI.4.61.0604071706210.4432@malasada.lava.net>
References: <Pine.BSI.4.61.0604070121530.9018@malasada.lava.net>  <44365DE8.4070008@ateb.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Fri, 7 Apr 2006, Reid Thompson wrote:

> well,,, not 'any' other linux system...
>
> $ ./getsockname
> socket = -1
> length = 16
> getsockname rc = -1
> returned length = 16
> getsockname: Bad file descriptor

That points out an error in getting the raw socket, not in getsockname() 
itself.  getsockname() can't work on an invalid socket.  Maybe you didn't 
have the right priviledges to get the raw socket on the run above?  On 
most systems you need admin/root priviledges to get the raw socket.

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

