From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,da399e1289c5e4f6,start X-Google-Attributes: gidfee84,public From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Subject: Re: /proc questions Date: 1995/09/18 Message-ID: <43kvq7$oaq@usenet.pa.dec.com>#1/1 X-Deja-AN: 110327575 distribution: world references: <43kqvo$64n@mark.ucdavis.edu> organization: Digital Equipment Corporation reply-to: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) newsgroups: comp.unix.osf.osf1 In article <43kqvo$64n@mark.ucdavis.edu>, cccbrian@peseta.ucdavis.edu (Brian C Hill) writes: > >1. /proc doesn't seem to mount by default out-of-the-box. >Should it? I don't think V1.2 or V1.3 mounted it by default. I don't remember what V2.0 did. As far as I can remember V3.0 and later all did. I haven't had to do anything (that I remember) for V3.2A and V3.2C. I don't recall if the installation doconfig puts procfs in the menu of kernel options. > >2. Is there some secondary API to process information if procfs >is not mounted? That is, if I do a stat inside my program and >see that the fstype of /proc is not procfs, is there some other >way to get process information without having to walk through >kmem? You might be able to get limited information via the undocumented MACH interfaces. I tried to use them in Monitor until I discovered that they had to be called as root. It is probably easier to make sure that /proc is mounted. > > / Brian C. Hill bchill@ucdavis.edu __ \ -- Alan Rollow alan@nabeth.cxo.dec.com