Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* top on OSF?
@ 1994-07-21 14:50 Timo Lahti
  1994-07-22 14:18 ` Ralf Eckstein
  1994-07-22 16:28 ` Matt Thomas
  0 siblings, 2 replies; 3+ messages in thread
From: Timo Lahti @ 1994-07-21 14:50 UTC (permalink / 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.	
------------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1994-07-22 16:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-07-21 14:50 top on OSF? Timo Lahti
1994-07-22 14:18 ` Ralf Eckstein
1994-07-22 16:28 ` Matt Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox