Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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