www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2002/05/29/22:33:31

Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT cygwin DOT com>
List-Help: <mailto:cygwin-developers-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT cygwin DOT com
Delivered-To: mailing list cygwin-developers AT cygwin DOT com
Date: Wed, 29 May 2002 22:33:20 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin-developers AT cygwin DOT com
Subject: Re: Question about process enumeration and _pinfo structure
Message-ID: <20020530023320.GA9906@redhat.com>
Reply-To: cygwin-developers AT cygwin DOT com
Mail-Followup-To: cygwin-developers AT cygwin DOT com
References: <008601c2068e$193b6200$0100a8c0 AT advent02> <20020528223943 DOT GA18086 AT redhat DOT com> <00fc01c2069a$17e09680$0100a8c0 AT advent02> <20020528235306 DOT GC18281 AT redhat DOT com> <00dc01c2077a$c07828e0$0100a8c0 AT advent02>
Mime-Version: 1.0
In-Reply-To: <00dc01c2077a$c07828e0$0100a8c0@advent02>
User-Agent: Mutt/1.3.23.1i

On Thu, May 30, 2002 at 02:38:25AM +0100, Chris January wrote:
>> I'll see if I can come up with something.
>While you'll looking at this, there are some other things that I need to be
>able to get information about too:
>i) the current directory of a process. Presently, this is stored in the
>cygheap structure, which AFAIK is inaccessible outside of that process. I
>have some code which uses some undocumented NT internal structures that gets
>the current directory of a Win32 process, but this doesn't allow for
>symlinks and virtual paths (a la /proc).
>ii)  the environment of a process. This can be got with just NT internal
>calls, but I'd prefer to have something that works on Win 9x too.

The windows environment isn't even updated currently, so that wouldn't
work.

>iii) a processes' fd table. Again, this is stored in the cygheap structure.
>iv) the current root of the process (cf chroot). Again, this is stored in
>the cygheap structure.

So, it sounds like there is a requirement for a generic interface into
some of the interesting cygheap bits.  Hmm.  That's as doable as providing
argv, at least.

cgf

- Raw text -


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