delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, |
<http://sourceware.cygnus.com/ml/#faqs> | |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Message-Id: | <199908231509.KAA18018@mercury.xraylith.wisc.edu> |
To: | JRSON AT NetZero DOT Net |
cc: | cygwin AT sourceware DOT cygnus DOT com |
Subject: | Re: fdopen() and winsock |
In-Reply-To: | Your message of "Mon, 23 Aug 1999 07:28:47 GMT." |
<37c0f58b DOT 2428339 AT smtp DOT netzero DOT net> | |
Date: | Mon, 23 Aug 1999 10:09:44 -0500 |
From: | Mumit Khan <khan AT xraylith DOT wisc DOT EDU> |
JRSON AT NetZero DOT Net (John R Hanson) writes: > Actually They are regular file handles, just like any other. > There is a bug in all 9x/kernel32 libc/msv/crtdll interface > implementations GetFileType() returns TYPE_UNKNOWN for handles to > sockets. Since this is AFAIK the only unknown type there is, you know you hav > e > a socket handle;-) Thanks for the clarification. My MSDN CD does document this and I guess that makes it a "feature" rather than a bug ;-) I may consider adding a GetFileType interface in mingw runtime (under a "bug fix" library that you have to explicitly link to). > there is a fix in the more recent perl distrib's > that you can use as a general solution. > -loldnames -lperlcrt -lmsvcrt will get you TYPE_CHAR > for socket handles. that are put into an fd with _open_osfhandle() > also fixes several other nasty bugs in the MS libcXXX. I see references to PerlCRT DLL, but can't find the source nor any mention of what license it's disributed under. Anyone with more info on it? If it's not free (in either the GNU/gratis or BSD-style free software sense), then, as far as I'm concerned, it's irrelevant. Regards, Mumit -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |