diff options
author | 2009-06-07 03:07:19 +0000 | |
---|---|---|
committer | 2009-06-07 03:07:19 +0000 | |
commit | d4842af321fbdaf95bf216bf783ad329d313a302 (patch) | |
tree | adfccedb333d04d9c31e05f322348d254fe2effb /lib/libc | |
parent | on amd64, store a pointer to the loaded data and the type. This will (diff) | |
download | wireguard-openbsd-d4842af321fbdaf95bf216bf783ad329d313a302.tar.xz wireguard-openbsd-d4842af321fbdaf95bf216bf783ad329d313a302.zip |
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')
-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 |