diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2013-10-22 16:40:29 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2013-10-22 16:40:29 +0000 |
commit | 1e8e86830088bc4916f73acb3ff1c803a22d0711 (patch) | |
tree | 559b7726aea1589415802d71831be8c99d19b13d /sbin/sysctl/sysctl.c | |
parent | d5e889686338eef83539b6067cc6fd1e27214fc8 (diff) |
- add UNIX-domain socket info to struct kinfo_file2
- convert netstat from kvm_getfiles() to kvm_getfile2() using that
- delete kvm_getfiles() and KERN_FILE as no longer used (bump libkvm's major)
- rename kvm_getfile2() to kvm_getfiles(), kinfo_file2 to kinfo_file
and KERN_FILE2 to KERN_FILE.
ok deraadt@, millert@
ports scan sthen@
Diffstat (limited to 'sbin/sysctl/sysctl.c')
-rw-r--r-- | sbin/sysctl/sysctl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index e5df3e3c385..74ecbc7b574 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.c,v 1.194 2013/07/18 05:02:57 guenther Exp $ */ +/* $OpenBSD: sysctl.c,v 1.195 2013/10/22 16:40:28 guenther Exp $ */ /* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */ /* @@ -387,7 +387,6 @@ parse(char *string, int flags) warnx("use dmesg to view %s", string); return; case KERN_VNODE: - case KERN_FILE: if (flags == 0) return; warnx("use pstat to view %s information", string); @@ -439,7 +438,7 @@ parse(char *string, int flags) case KERN_EMUL: sysctl_emul(string, newval, flags); return; - case KERN_FILE2: + case KERN_FILE: if (flags == 0) return; warnx("use fstat to view %s information", string); |