Subject: Re: procfs file system
To: Wolfgang Solfrank <ws@kurt.tools.de>
From: Jose Alburquerque <jose@alexandria.net>
List: netbsd-help
Date: 11/04/1996 03:06:24
You're absolutely right! a "cat /proc/curproc/status" works just fine! I
was using "more" but getting no output. I wonder if there's any
difference between more and cat in this aspect? At any rate, thanks.
Sincerely
Jose
On Mon, 4 Nov 1996, Wolfgang Solfrank wrote:
> > Why is it that the files ctl, mem, note, notepg and status (in particular)
> > have 0 length? The man page for mount_procfs says that the file status
> > should contain a line with the process information. Is there a "right"
> > way of accessing this file that I'm ignoring? Thanks.
>
> Did you actually try a "cat /proc/curproc/status"? The length of the status
> line is varying, so the length given by the ls command would be misleading
> anyway, and the implementor of the procfs filesystem choose to return a zero
> length in the stat call. But reading the file should give you the information
> anyway. (Can't test is myself, because my implementation of procfs is quite
> a bit different).
>
> Hope it helps,
> Wolfgang
> --
> ws@TooLs.DE (Wolfgang Solfrank, TooLs GmbH) +49-228-985800
>
* * * * +<><><><><><><><><><><><><><><><><><><><><><><><><><><><><>+
* * | Jose A. Alburquerque |
* O O * | jose@smartec.com |
* () * | csjaa@csfaculty.engr.ccny.cuny.edu |
* \----/ * | |
* * | "In God we trust" - From face of US penny |
* * * * +<><><><><><><><><><><><><><><><><><><><><><><><><><><><><>+