Date: Thu, 03 Aug 2000 15:43:14 +0100 From: Laurence Barry <laurence@herculeez.com> To: FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: nfiles Message-ID: <39898501.6FDC3C79@herculeez.com>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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 [-- Attachment #2 --] <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> Sure this is a simple one ... <p>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. <p> Laurence Barry <pre>-- laurence@herculeez.com </pre> </html>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39898501.6FDC3C79>
