Summary: | [patch] sysctl -t to display field types | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | ota | ||||
Component: | bin | Assignee: | Marcelo Araujo <araujo> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | araujo, tablosazi.farahan | ||||
Priority: | --- | Keywords: | patch | ||||
Version: | CURRENT | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
I will take it. Thanks! (In reply to Marcelo Araujo from comment #1) By the way, it looks new types were added after I submitted the patch. These new types need to be added for a complete list. Patch submitted for review. A commit references this bug: Author: araujo Date: Thu Dec 10 02:11:42 UTC 2015 New revision: 292045 URL: https://svnweb.freebsd.org/changeset/base/292045 Log: Add -t option to display field types. PR: bin/203918 Submitted by: ota <ota@j.email.ne.jp> Reviewed by: cem Approved by: bapt (mentor) Differential Revision: https://reviews.freebsd.org/D4451 Changes: head/sbin/sysctl/sysctl.8 head/sbin/sysctl/sysctl.c Committed with small changes, thank you! MARKED AS SPAM |
Created attachment 162274 [details] sysctl -t patch Added -t option to display field types. It may be used together with -d option. This made easier to find field types when toying sysctls in systat. % sysclt -t -a kern.ostype: string kern.osrelease: string kern.osrevision: integer kern.version: string kern.maxvnodes: integer kern.maxproc: integer kern.maxfiles: integer kern.argmax: integer kern.securelevel: integer kern.hostname: string kern.hostid: unsigned long kern.clockrate: opaque % sysctl -tda kern.ostype: string: Operating system type kern.osrelease: string: Operating system release kern.osrevision: integer: Operating system revision kern.version: string: Kernel version % sysctl -e -tda kern.ostype=string=Operating system type kern.osrelease=string=Operating system release kern.osrevision=integer=Operating system revision kern.version=string=Kernel version kern.maxvnodes=integer=Maximum number of vnodes