git: sysctl - Add -i and -q from FreeBSD

Matthew Dillon dillon at crater.dragonflybsd.org
Thu May 12 14:29:28 PDT 2016


commit 823c552f60f672bc220d474809aa6d5a8cf454cf
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu May 12 14:27:09 2016 -0700

    sysctl - Add -i and -q from FreeBSD
    
    Enhance the sysctl code, will be used by /etc/network.subr
    
    * sysctl -i	- Exit cleanly with exit code 0 if a sysctl mib does not
    		  exist.  No warning or error message is output for this
    		  case.
    
    * sysctl -q	- Exit with exit code N if a sysctl mib does not exist.
    		  N is the number of mib's on the command line which failed.
    		  No warning or error message is output for this case.

Summary of changes:
 sbin/sysctl/sysctl.8 |  9 +++++++--
 sbin/sysctl/sysctl.c | 37 +++++++++++++++++++++++++++++--------
 2 files changed, 36 insertions(+), 10 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/823c552f60f672bc220d474809aa6d5a8cf454cf


-- 
DragonFly BSD source repository


More information about the Commits mailing list