Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* /proc fs - anyone had any success reading
@ 1994-08-16  6:30 Gareth Owen
  1994-08-26 15:17 ` Peter Thompson
  0 siblings, 1 reply; 2+ messages in thread
From: Gareth Owen @ 1994-08-16  6:30 UTC (permalink / raw)


Hi,

I'm trying to use the /proc filesys and associated ioctl calls as found
in proc (4).  All I want to do is read out the prpsstruct info to get
some simple process stats.  However whenever I attempt any of the ioctl
calls on the open file descriptor I get EANOTTY which doesn't seem very
appropriate to me :-)

fd = open ("/proc/00567", O_RDWR, 0);
ioctl(fd, whatever_command, &p);

Anyone got any ideas...or better still a short working piece of code which
does something similar....

cheers


Gareth


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

end of thread, other threads:[~1994-08-26 15:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-08-16  6:30 /proc fs - anyone had any success reading Gareth Owen
1994-08-26 15:17 ` Peter Thompson

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