Return to BSD News archive
Newsgroups: comp.os.386bsd.questions Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!decwrl!nic.hookup.net!swrinde!sgiblab!sgigate.sgi.com!olivea!pagesat.net!netsys!direct!jlummel From: jlummel@caprica.com (James Lummel) Subject: Re: How to find list of open files? References: <2ic3kp$39o@orion.cc.andrews.edu> Sender: news@news.direct.net (Internet Direct News) Organization: Caprica Telecomputing Resources (213) 526-1195 (14.4KB) Date: Sat, 29 Jan 1994 03:54:42 GMT X-Newsreader: TIN [version 1.2 PL2] Message-ID: <CKDHJ6.Iqw@news.direct.net> Lines: 38 Andrew Gillham (gillham@andrews.edu) wrote: > Does anyone have any good ideas on how to get a list > of currently 'open' files on i386 BSD systems? > (or any UNIX box for that matter?) > I would guess that you could find the file descriptor > table in kernel memory and somehow read that, but as I don't > know anything about that, I'm stuck! > Anyway, maybe this 'top' thing does it? > It's not real important, I'm just kind of curious. > Thanks!! > -Andrew > -- > #!/bin/sh - ============================================== > echo "Andrew Gillham gillham@andrews.edu" > echo "Winix Hacker usrvnp86@ibmmail.com" > #========================================================= I'm interested in this to. I know under POSIX QNX you can type 'sin fi' (system information files) and it will list all open files, there the file pointer is and the size of the file. I use NetBSD as a anonymous FTP machine and would like the same functionality. -- James Lummel - jlummel@caprica.com ******************************************************** * Caprica Telecomputing Resources * * Serving the LA Basin area with Commercial Internet * * (213) 526-1195 * * All lines 14.4K Baud! * ********************************************************