From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,5c1b5c77feab2f8,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-08-15 23:56:06 PST Newsgroups: comp.unix.osf.osf1 From: geo@spclmway.demon.co.uk (Gareth Owen) Path: bga.com!news.sprintlink.net!hookup!news.moneng.mei.com!howland.reston.ans.net!pipex!demon!spclmway.demon.co.uk!geo Subject: /proc fs - anyone had any success reading Organization: Siemens Plessey Controls Limited, UK Reply-To: geo@spclmway.demon.co.uk X-Newsreader: Demon Internet Simple News v1.27 Date: Tue, 16 Aug 1994 06:30:25 +0000 Message-ID: <777018625snz@spclmway.demon.co.uk> Sender: usenet@demon.co.uk 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