From: geo@spclmway.demon.co.uk (Gareth Owen)
Subject: /proc fs - anyone had any success reading
Date: Tue, 16 Aug 1994 06:30:25 +0000 [thread overview]
Message-ID: <777018625snz@spclmway.demon.co.uk> (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
next reply other threads:[~1994-08-16 6:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-08-16 6:30 Gareth Owen [this message]
1994-08-26 15:17 ` /proc fs - anyone had any success reading Peter Thompson
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