/proc improvements

Corinna Vinschen corinna-cygwin@cygwin.com
Wed May 8 06:16:00 GMT 2002


On Wed, May 08, 2002 at 01:36:45AM +0100, Chris January wrote:
> I'm currently working on making the /proc implementation in CVS compatible
> with the procps and psmisc packages. Although commands like top and ps are
> already running, not all the values are meaningful (48486.8% CPU usage
> anyone?).
> If anyone has any ideas on the kind of things they'd like to see
> implemented, please let me know.

I'd think these would be funny:

/proc/<PID>/environ	containing environment
/proc/<PID>/exe		symlink to executable file
/proc/<PID>/gid		like /proc/<PID>/uid, primary gid.

Currently the uid and gid of all <PID> directories are both just 0.
Since all uid/gid information per process is available, it shouldn't
be too hard to fake the ownership of the <PID> directories in stat().

And two unrelated:

/proc/self		symlink pointing to /proc/<PID> of current process.
/proc/mounts		containing same output as generated by mount(1).

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

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



More information about the Cygwin mailing list