Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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
Message-ID: <n2m-g.chogho.3vv21a9.1@buzzy-box.bavag>
From: Bas van Gompel <cygwin.buzz@bavag.tmfweb.nl>
Subject: Re: win95 pipe problems -- report + testcase + patch
References: <200409050451.i854pPi21887@esds.vss.fsi.com> <n2m-g.chlod0.3vvdk95.1@buzzy-box.bavag> <20040908100657.GC20537@cygbert.vinschen.de>
Reply-To: cygwin mailing-list <cygwin@cygwin.com>
Organisation: Ehm...
To: cygwin@cygwin.com
Lines: 43
Date: Thu,  9 Sep 2004 03:00:53 +0200 (MET DST)
X-IsSubscribed: yes

Op Wed, 8 Sep 2004 12:06:57 +0200 schreef Corinna Vinschen
in <20040908100657.GC20537@cygbert.vinschen.de>:
:  On Sep  8 01:55, Bas van Gompel wrote:
: > This fix trips on a bug in (my) windows 95 (OSR2):
: > It's CreateNamedPipe returns 0 instead of -1 (INVALID_HANDLE_VALUE),
: > causing all operations on pipes to fail.
: > [...]
: > A patch to work around this in cygwin could be: (WFM)

[pipe-w95.diff]

: > I hope this patch is small enough to qualify as `trivial', as I
:
:  It is.  I'm just wondering if it is really necessary to assume, that
:  CreateNamedPipe will ever return NULL as a vaild handle.  I'd assume

The fact that INVALID_HANDLE_VALUE != NULL, made me think NULL might
be a valid handle value elsewhere. I was just trying to be thorough.
I don't think the difference will severely hurt performance or size...

:  that the following patch is sufficient:

[...]

Possibly. However MS might also make NULL be an alias to NUL in the
future, or just treat NULL like any other handle.

: > haven't received any reply to my legal query (yet). (Did the reply
: > get blocked from the list?)
:
:  No, there was no reply so far, unfortunately.  I'm sorry.  I'll try to
:  nudge our legal department again.

I'll be waiting. (This will give me more time to test readdir_r,
once I decide how to keep accesses separate.)

L8r,

Buzz.
-- 
  ) |  | ---/ ---/  Yes, this | This message consists of true | I do not
--  |  |   /    /   really is |   and false bits entirely.    | mail for
  ) |  |  /    /    a 72 by 4 +-------------------------------+ any1 but
--  \--| /--- /---  .sigfile. |   |perl -pe "s.u(z)\1.as."    | me. 4^re

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

