delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/27/13:58:46

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Wed, 27 Jun 2001 13:33:27 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: pthreads works, sorta
Message-ID: <20010627133327.H22088@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <01C0FE95 DOT 54BB7F10 DOT jorgens AT coho DOT net> <3B3A0345 DOT FA629136 AT beamreachnetworks DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <3B3A0345.FA629136@beamreachnetworks.com>; from emonsler@beamreachnetworks.com on Wed, Jun 27, 2001 at 09:01:09AM -0700

On Wed, Jun 27, 2001 at 09:01:09AM -0700, Eric M. Monsler wrote:
>Steve Jorgensen wrote:
>>OK, I'm over my head to even try to participate in this, but it seems
>>to me that if you want to check for the condition where you can neither
>>read nor write
>
>I think that the check is for the condition that "one can both read and
>write", before proceeding.  The IsBad logic forces a somewhat reversed
>logical structure, i.e.  "if not both read and write, fail", which is
>coder-optimised to "if not write, fail", since if we can't read we also
>can't write.
>
>Read-only is failure, as is a NULL, or any other bad pointer.
>
>Assuming I've understood the previous discussions correctly...

You've got it right.  The pointers being checked should always be writable.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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