X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave.korn@artimi.com>
To: <cygwin@cygwin.com>
References: <47D4A7E4.5070509@tlinx.org> <47D4B7D2.1F78DADB@dessent.net> <47D4E892.1090305@tlinx.org> <47D50BB6.EFB28302@dessent.net> <47D6056B.6000805@tlinx.org> <47D610C2.EECE7EE9@dessent.net> <00b601c8843a$d94fe2c0$2708a8c0@CAM.ARTIMI.COM> <47D7EFEC.122C76AE@dessent.net>
Subject: RE: Bug: C-prog from Win dies in fork; gdb.exe also won't run
Date: Wed, 12 Mar 2008 15:34:55 -0000
Message-ID: <00d001c88456$9f75a3c0$2708a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <47D7EFEC.122C76AE@dessent.net>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
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

Brian Dessent wrote on 12 March 2008 15:00:

> Dave Korn wrote:
> 
> >   The native API, to the very best of my knowledge, exports exactly the
> > same set of interfaces to every subsystem.  Can you explain exactly
> > what you're talking about here?
> 
> Microsoft Windows Internals, 4th. Ed (Russinovich & Solomon), p. 60:

> p.394:

  Thanks, but none of that seems germane to the question I was really
asking.  Those quotes don't say, for example "NtCreateProcess will return
ERROR_INVALID_PARAMETER if a win32-ss application tries to pass the
COPY_ON_WRITE_FLAG but will accept the flag when called by a posix-ss
application".  Corinna explained it from the angle I was looking at.

  Now, who supposes you could work around the restriction by writing 

  * (WORD *) 0x004000dc = POSIX_CUI;

just before calling NtSetInformation?

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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

