diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2009-06-07 03:07:20 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2009-06-07 03:07:20 +0000 |
commit | 35f0486b79701fae79f4e1da115887021cca6abf (patch) | |
tree | d5729efcae898a700d4d656f0ce61d5ab19a2798 /lib/libc/gen/sysctl.3 | |
parent | af1d7788f946103f1f71ffcbc3b4887428e05017 (diff) |
Add KERN_FILE2 sysctl analogous to KERN_PROC2 but for file structures,
along with vnode type-specific info to make it more useful for fstat(1).
OK deraadt@
Diffstat (limited to 'lib/libc/gen/sysctl.3')
-rw-r--r-- | lib/libc/gen/sysctl.3 | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/libc/gen/sysctl.3 b/lib/libc/gen/sysctl.3 index 51840ae3878..89f568b4d95 100644 --- a/lib/libc/gen/sysctl.3 +++ b/lib/libc/gen/sysctl.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sysctl.3,v 1.185 2008/12/23 09:57:55 jmc Exp $ +.\" $OpenBSD: sysctl.3,v 1.186 2009/06/07 03:07:19 millert Exp $ .\" .\" Copyright (c) 1993 .\" The Regents of the University of California. All rights reserved. @@ -27,7 +27,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: December 23 2008 $ +.Dd $Mdocdate: June 7 2009 $ .Dt SYSCTL 3 .Os .Sh NAME @@ -412,6 +412,7 @@ information. .It Dv KERN_DOMAINNAME No " string yes" .It Dv KERN_EMUL No " node not applicable" .It Dv KERN_FILE No " struct file no" +.It Dv KERN_FILE2 No " struct kinfo_file2 no" .It Dv KERN_FORKSTAT No " struct forkstat no" .It Dv KERN_FSCALE No " integer no" .It Dv KERN_FSYNC No " integer no" @@ -547,6 +548,15 @@ The returned data consists of a single followed by an array of .Li struct file , whose size depends on the current number of such objects in the system. +.It Dv KERN_FILE2 +Like +.Dv KERN_FILE +but an array of +.Li struct kinfo_file2 +structures is returned. +The fifth level name is the size of the +.Li struct kinfo_file2 +and the sixth level name is the number of structures to return. .It Dv KERN_FORKSTAT A .Li struct forkstat |