Date: Thu, 03 Aug 2000 16:17:23 +0100 From: Laurence Barry <laurence@herculeez.com> To: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: nfiles Message-ID: <39898D03.6185C6C3@herculeez.com>
next in thread | raw e-mail | index | archive | help
--------------C15E94179D76E87B217B0C82 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sure this is a simple one ... I need to determine the total number of files open on a system. The only way I can think to do this is a sysctl() call with mib[0]=CTL_KERN and mib[1]=KERN_FILE, then trawl through the file structure that is returned. There must be a simpler way. Laurence Barry -- laurence@herculeez.com --------------C15E94179D76E87B217B0C82 Content-Type: text/html; charset=iso-8859-15 Content-Transfer-Encoding: 7bit <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <pre>Sure this is a simple one ... I need to determine the total number of files open on a system. The only way I can think to do this is a sysctl() call with mib[0]=CTL_KERN and mib[1]=KERN_FILE, then trawl through the file structure that is returned. There must be a simpler way. Laurence Barry -- laurence@herculeez.com</pre> </html> --------------C15E94179D76E87B217B0C82-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39898D03.6185C6C3>