Skip site navigation (1)Skip section navigation (2)
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

--------------7BE7112A5D8588A6B55EFFFC
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



--------------7BE7112A5D8588A6B55EFFFC
Content-Type: text/html; charset=iso-8859-15
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Sure this is a simple one ...
<p>I&nbsp;need to determine the total number of files open on a system.
The only way I&nbsp;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>&nbsp; Laurence Barry
<pre>--&nbsp;
&nbsp; laurence@herculeez.com
</pre>
&nbsp;</html>

--------------7BE7112A5D8588A6B55EFFFC--



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39898501.6FDC3C79>