From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9027 invoked by alias); 19 Jun 2002 13:59:56 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 8983 invoked from network); 19 Jun 2002 13:59:52 -0000 Received: from unknown (HELO adams0-57.reshall.ou.edu) (129.15.132.57) by sources.redhat.com with SMTP; 19 Jun 2002 13:59:52 -0000 Received: from adams0-57.reshall.ou.edu (localhost.localdomain [127.0.0.1]) by adams0-57.reshall.ou.edu (8.12.4/8.12.4) with ESMTP id g5JE6v38026538 for ; Wed, 19 Jun 2002 09:06:57 -0500 Received: from ou.edu (jcast@localhost) by adams0-57.reshall.ou.edu (8.12.4/8.12.4/Submit) with ESMTP id g5JE6uGN026534 for ; Wed, 19 Jun 2002 09:06:57 -0500 Message-Id: <200206191406.g5JE6uGN026534@adams0-57.reshall.ou.edu> X-Authentication-Warning: adams0-57.reshall.ou.edu: jcast owned process doing -bs To: cygwin@cygwin.com Subject: Re: Re[2]: Rebase 1.5-1: Causes invalid page fault In-Reply-To: Message from Bernard A Badger of "Wed, 19 Jun 2002 09:53:40 EDT." Date: Wed, 19 Jun 2002 08:23:00 -0000 From: Jon Cast X-SW-Source: 2002-06/txt/msg00965.txt.bz2 Bernard A Badger wrote: > > -----Original Message----- > > From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf > > Of Pavel Tsekov > > Sent: Tuesday, June 18, 2002 4:41 PM > > To: cygwin@cygwin.com > > Subject: Re[2]: Rebase 1.5-1: Causes invalid page fault > > The above is from help library that is coming with the > > downloadable Platform SDK. It is dated November, 2001. > > I just grepped /usr/include/w32api: > > ./basetsd.h:100:typedef unsigned long ULONG_PTR, *PULONG_PTR; > > So it is not a pointer to pointer. They have chosen a strange name > > though :) > Which "it" are you talking about? The typedef you found defines > ULONG_PTR as a pointer to unsigned long, and also defines PULONG_PTR > as a pointer to pointer to unsigned long. But I thought the issue > was the type of NewImageBase. No, `typedef unsigned long ULONG_PTR' defines `ULONG_PTR' as a synonym for `unsigned long'. Btw., if I remember the MSDN documentation correctly, ULONG_PTR is supposed an integer with the the same /size/ as a pointer, but also a typedef for unsigned long where possible. Hence the name. > The question was whether > ULONG_PTR *NewImageBase, > defined a pointer to a pointer --- it does! *NewImageBase defines > NewImageBase as a pointer to ULONG_PTR, which is itself a pointer, > so it is, again, a pointer-to-pointer-to-unsigned-long. No, it's a pointer to unsigned long which is really a pointer. Jon Cast -- 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/