delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/27/02:12:24

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
Message-ID: <01C0FE95.54BB7F10.jorgens@coho.net>
From: Steve Jorgensen <jorgens AT coho DOT net>
Reply-To: "jorgens AT coho DOT net" <jorgens AT coho DOT net>
To: "Cygwin List (E-mail)" <cygwin AT cygwin DOT com>
Subject: RE: pthreads works, sorta
Date: Tue, 26 Jun 2001 23:11:27 -0700
X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4211
MIME-Version: 1.0

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, and you can never write if you can't read, then you only need to 
check the read condition.  You only need to check the write condition if 
you need to distinguish between read-only and read/write.

-----Original Message-----
From:	Robert Collins [SMTP:robert DOT collins AT itdomain DOT com DOT au]
Sent:	Tuesday, June 26, 2001 10:49 PM
To:	Tak Ota; cygwin AT cygwin DOT com
Subject:	RE: pthreads works, sorta

> -----Original Message-----
> From: Tak Ota [mailto:Takaaki DOT Ota AT am DOT sony DOT com]
> Sent: Wednesday, June 27, 2001 3:53 PM
> To: cygwin AT cygwin DOT com
> Subject: Re: pthreads works, sorta
>
>
> I'm not sure either.  If that is the case, replacing IsBadWritePtr
> with IsBadReadPtr maybe the answer since can't read mans can't write.
>


Nope, write is the one :]

IIRC my cpu bits correctly there is a page bit for readonly, not page
bits for read and for write.

So writeable implies readable, readable does not imply writeable.

Rob

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


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