delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/08/21:01:05

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <n2m-g.chogho.3vv21a9.1@buzzy-box.bavag>
From: Bas van Gompel <cygwin DOT buzz AT bavag DOT tmfweb DOT nl>
Subject: Re: win95 pipe problems -- report + testcase + patch
References: <200409050451 DOT i854pPi21887 AT esds DOT vss DOT fsi DOT com> <n2m-g DOT chlod0 DOT 3vvdk95 DOT 1 AT buzzy-box DOT bavag> <20040908100657 DOT GC20537 AT cygbert DOT vinschen DOT de>
Reply-To: cygwin mailing-list <cygwin AT cygwin DOT com>
Organisation: Ehm...
To: cygwin AT cygwin DOT 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 DOT GC20537 AT cygbert DOT vinschen DOT 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/

- Raw text -


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