From: timol@sa-cgy.valmet.com (Timo Lahti)
Subject: top on OSF?
Date: 21 Jul 1994 14:50:26 GMT [thread overview]
Message-ID: <30m1vi$6va@oasys.sa-cgy.valmet.com> (raw)
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.
------------------------------------------------------------------------------
next reply other threads:[~1994-07-21 14:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-07-21 14:50 Timo Lahti [this message]
1994-07-22 14:18 ` top on OSF? Ralf Eckstein
1994-07-22 16:28 ` Matt Thomas
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox