Mail Archives: cygwin-developers/2002/05/29/22:33:31
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 -