[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sizeof a process ??



On Sat, 15 Apr 1995, Theo Janssen wrote:

> How can i get the actual size of a process in MiNT, so that i will get
> a value, which is equal to the "filesize"-value in the /proc directory ? 
> I tried to experiment a little with the PROC structure and the BASEPAGE 
> but didn't succeed yet.

Just open the process with Fopen, and by calling Fcntl(...,FSTAT) you
will get all important values such as size, owner's pid and so on in an 
XATTR struct.
 
>           cheerio Theo


Ciao,
Stephan


+------------------------------+-----------------------------+
|      Stephan Haslbeck	       |    Fachschaft Informatik    |
|       Agricolastr. 61	       |   Technische Universitaet   |
|      D-80686 Muenchen	       |      Muenchen, Bayern	     |
+------------------------------+-----------------------------+
|          Es gibt keine Probleme, nur Loesungen.	     |
+------------------------------------------------------------+