From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,1ea67492723a28ac,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-07-21 22:10:51 PST Path: nntp.gmd.de!Germany.EU.net!EU.net!uunet!psinntp!psinntp!sa-htn.valmet.com!sa-cgy.valmet.com!timol From: timol@sa-cgy.valmet.com (Timo Lahti) Newsgroups: comp.unix.osf.osf1 Subject: top on OSF? Date: 21 Jul 1994 14:50:26 GMT Organization: Sage Systems Division, Valmet Automation Canada Distribution: world Message-ID: <30m1vi$6va@oasys.sa-cgy.valmet.com> NNTP-Posting-Host: oasys.sa-cgy.valmet.com Keywords: top, ioctl, alpha X-Newsreader: TIN [version 1.2 PL2] I ran into few problems trying to modify top for OSF1 / V2.0. I couldn find a file supporting porting to OSF anywhere, if anyone out there knows where to find the machine dependent source for OSF I'd appreciate if you could tell me the location. Anyways that would be the easiest solution. I've also tried to make the porting file by myself starting from bsd43 version but again there seems to be lots of difficulties. What I need to know is the process related information like pids and cpu usages and so on. For example getting struct proc would help me a lot. I tried to use ioctl-function without any success, all I get is error code for bad file descriptor. Process information is located in /proc directory in multiple files named by pids of running processes. Man page for ioctl tells me to open the file for both reading and writing, but these files can't be opened for writing of course. And just with reading permissions I get the error. Another way is to nlist function to read the /vmunix file but this doesn't get me anywhere either. Reading is no problem but the values I get makes no sense, field values for proc structure are mainly located in unreadable area. So if anyone has read proc, prpsinfo, prstatus or utask structures in OSF with success, would you please let me know how it is done. --Timo ------------------------------------------------------------------------------ Timo J Lahti timol@sa-cgy.valmet.com local:250 office:2011 There is absolutely no warranty for timol; type "clear" for details. timol 1.0, Copyright 1970 Mother & Father, Inc. ------------------------------------------------------------------------------