delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Date: | Fri, 7 Apr 2006 17:09:36 -1000 (HST) |
From: | Antonio Querubin <tony AT lava DOT net> |
To: | Reid Thompson <reid DOT thompson AT ateb DOT com> |
Cc: | cygwin AT cygwin DOT 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 DOT BSI DOT 4 DOT 61 DOT 0604070121530 DOT 9018 AT malasada DOT lava DOT net> <44365DE8 DOT 4070008 AT ateb DOT com> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
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 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |