delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/05/08/09:17:09

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 8 May 2002 15:15:59 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: /proc improvements
Message-ID: <20020508151559.E9238@cygbert.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <001901c1f628$6e754b30$0100a8c0 AT advent02>
Mime-Version: 1.0
In-Reply-To: <001901c1f628$6e754b30$0100a8c0@advent02>
User-Agent: Mutt/1.3.22.1i

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 AT cygwin DOT 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/

- Raw text -


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