aboutsummaryrefslogtreecommitdiff
path: root/sbin/sysctl
Commit message (Collapse)AuthorAgeFilesLines
...
* sysctl(8): fix typename for uint32_t.Andriy Voskoboinyk2016-12-311-1/+1
| | | | | | | MFC after: 5 days. Notes: svn path=/head/; revision=310961
* Consolidate four efi_next_descriptor() definitions.Konstantin Belousov2016-09-181-3/+0
| | | | | | | | Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=305942
* Fix "sysctl vm.vmtotal" output on machines with > 2TB virtual memoryAlan Somers2016-06-241-9/+9
| | | | | | | | | | | | | | | | sbin/sysctl/sysctl.c Fix integer overflows in printf format strings PR: 199673 Submitted by: Vitaly Magerya Reviewed by: cem Approved by: re (marius) MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D6941 Notes: svn path=/head/; revision=302174
* Explicitly add more files to the 'runtime' package.Glen Barber2016-02-091-0/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295450
* Add -t option to display field types.Marcelo Araujo2015-12-102-12/+30
| | | | | | | | | | | 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 Notes: svn path=/head/; revision=292045
* Follow-up to r290475: Add sysctl(8) support for added typesConrad Meyer2015-11-071-28/+81
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=290476
* sysctl(8): Fix style nitsConrad Meyer2015-10-231-5/+6
| | | | | | | | Suggested by: bde Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289835
* Sysctl: Add common support for U8, U16 typesConrad Meyer2015-10-221-0/+28
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289773
* Only print the errno string in case sysctl(3) does not file with ENOENTBaptiste Daroussin2015-10-071-1/+5
| | | | | | | | | | | | | | | | | | This reduces the noise in error reporing from sysctl(8): Before: $ sysctl bla=something sysctl: unknown oid 'bla': No such file or directory After: $ sysctl bla=something sysctl: unknown oid 'bla' MFC after: 1 week Sponsored by: Gandi.net Notes: svn path=/head/; revision=288984
* Trim spaces at the end of the buffer before trying to convert it to an oidBaptiste Daroussin2015-10-071-0/+6
| | | | | | | | | | | This allows to write entries in sysctl.conf with spaces before the '=' like kern.ipc.shmmax = 9663676416 MFC after: 1 week Sponsored by: Gandi.net Notes: svn path=/head/; revision=288981
* Teach sysctl about the new optional suffix after IK to specifyWarner Losh2015-07-291-8/+42
| | | | | | | | | | precision. Update input as well. Add IK to the manual (it was missing completely). Differential Revision: https://reviews.freebsd.org/D3181 Notes: svn path=/head/; revision=285994
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-272-12/+33
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge from head@274682Simon J. Gerraty2014-11-191-105/+224
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=274683
| * \ Merge head from 7/28Simon J. Gerraty2014-08-191-2/+2
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | | Merge headSimon J. Gerraty2014-04-282-3/+3
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * | | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | Sync with HEAD.David E. O'Brien2013-02-082-71/+207
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | | add support for specifying an initial buffer size when fetching aJohn-Mark Gurney2015-02-132-10/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sysctl... This is useful for kern.arandom which (without -B) will happily return 0 bytes, which isn't too useful or random... fix spelling (thanks igor!) of settable while I'm here... Notes: svn path=/head/; revision=278654
* | | | | | Fix inverted logic introduced in r272154.Xin LI2014-12-011-2/+5
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Noticed by: trasz MFC after: 2 weeks Notes: svn path=/head/; revision=275377
* | | | | Refactor the code a little bit to reduce duplicated code.Xin LI2014-09-261-102/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: mjg MFC after: 2 weeks Notes: svn path=/head/; revision=272154
* | | | | Explicitly set errno to 0 before calling strto*.Xin LI2014-09-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Suggested by: mjg MFC after: 2 weeks Notes: svn path=/head/; revision=272145
* | | | | The strtol(3) family of functions would set errno when it hits one.Xin LI2014-09-251-8/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check errno and handle it as invalid input. Obtained from: HardenedBSD Submitted by: David CARLIER <devnexen@gmail.com> MFC after: 2 weeks Notes: svn path=/head/; revision=272144
* | | | | Constify a parameter of name2oid. No functional change.Xin LI2014-09-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 2 months Notes: svn path=/head/; revision=272044
* | | | | Add a sysctl to export the EFI memory map along with a handler in theJohn Baldwin2014-09-131-0/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sysctl(8) binary to format it. Reviewed by: emaste MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D771 Notes: svn path=/head/; revision=271495
* | | | | Pass the length of an structure to the pretty-printer backends as aJohn Baldwin2014-09-121-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | size_t instead of an int. Notes: svn path=/head/; revision=271487
* | | | | - Add a new structure type for the ACPI 3.0 SMAP entry that includes theJohn Baldwin2014-08-291-0/+29
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | optional attributes field. - Add a 'machdep.smap' sysctl that exports the SMAP table of the running system as an array of the ACPI 3.0 structure. (On older systems, the attributes are given a value of zero.) Note that the sysctl only exports the SMAP table if it is available via the metadata passed from the loader to the kernel. If an SMAP is not available, an empty array is returned. - Add a format handler for the ACPI 3.0 SMAP structure to the sysctl(8) binary to format the SMAP structures in a readable format similar to the format found in boot messages. MFC after: 2 weeks Notes: svn path=/head/; revision=270828
* | | | Don't hide zero-length strings when doing sysctl listings.Hans Petter Selasky2014-06-271-2/+2
| |_|/ |/| | | | | | | | | | | | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=267960
* | | Fix warnings to not append "No error: 0".Edward Tomasz Napierala2013-11-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=258659
* | | Fix a typo: s/wriable/writable/Devin Teske2013-11-121-1/+1
| |/ |/| | | | | Notes: svn path=/head/; revision=258055
* | Use the right format string for line buffer.Xin LI2013-01-131-1/+1
| | | | | | | | | | | | | | | | PR: bin/174910 Submitted by: Fabian Keil <fk fabiankeil.de> Notes: svn path=/head/; revision=245361
* | Teach sysctl(8) about parsing a file (while I'm there also give itXin LI2012-12-132-62/+175
| | | | | | | | | | | | | | | | | | | | capability of parsing both = and : formats). Submitted by: hrs (initial version, bugs are mine) MFC after: 3 months Notes: svn path=/head/; revision=244198
* | Make Tflag and Wflag filters work for more sysctl options.Alfred Perlstein2012-12-121-11/+11
| | | | | | | | | | | | | | | | To do this move the Tflag and Wflag checks earlier in show_var() so we bail earlier for variables not matching our query. Notes: svn path=/head/; revision=244133
* | Allow sysctl to filter boot and runtime tunables.Alfred Perlstein2012-12-112-6/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the following flags to sysctl: -W - show only writable sysctls -T - show only tuneable sysctls This can be used to create a /var/run/sysctl.boot to compare set tunables versus booted tunables. Sponsored by: iXsystems Notes: svn path=/head/; revision=244106
* | In parse():Xin LI2012-12-111-6/+5
|/ | | | | | | | | | | - Only operate on copy, don't operate on source. - Eliminate home-rolled strsep(). - Constify the parameter. MFC after: 2 weeks Notes: svn path=/head/; revision=244104
* s/Free Memory Pages/Free Memory/ to avoid confusion, since we'reEitan Adler2012-04-111-1/+1
| | | | | | | | | | | | reporting a number of bytes rather than a number of pages PR: misc/165208 Submitted by: Arnaud Lacombe <lacombar@gmail.com> Approved by: cperciva MFC after: 3 days Notes: svn path=/head/; revision=234134
* mdoc: terminate quoted strings.Joel Dahl2012-03-261-66/+66
| | | | | | | Reviewed by: brueffer Notes: svn path=/head/; revision=233510
* If the -d flag is specified, ignore any new values specified and onlyJohn Baldwin2011-12-011-1/+1
| | | | | | | | | | display the descriptions of specified nodes. Reported by: Jason Hellenthal jhell of dataix net MFC after: 2 weeks Notes: svn path=/head/; revision=228181
* Introduce signed and unsigned version of CTLTYPE_QUAD, renamingMatthew D Fleming2011-01-191-24/+42
| | | | | | | existing uses. Rename sysctl_handle_quad() to sysctl_handle_64(). Notes: svn path=/head/; revision=217616
* sysctl(8) should use the CTLTYPE to determine the type of data whenMatthew D Fleming2011-01-191-25/+29
| | | | | | | | | | | | | | reading. (This was already done for writing to a sysctl). This requires all SYSCTL setups to specify a type. Most of them are now checked at compile-time. Remove SYSCTL_*X* sysctl additions as the print being in hex should be controlled by the -x flag to sysctl(8). Succested by: bde Notes: svn path=/head/; revision=217586
* Fix typo and bump date.Matthew D Fleming2011-01-171-2/+2
| | | | Notes: svn path=/head/; revision=217522
* The kernel is not exporting any "T,dev_t" sysctl nodes anymore, soMatthew D Fleming2011-01-172-56/+2
| | | | | | | remove the capability and mention from sysctl(8). Notes: svn path=/head/; revision=217521
* Make the format of "Real Memory" and "Virtual Memory" lines moreMarko Zec2010-09-161-2/+2
| | | | | | | | | consistent with the rest of sysctl vm.vmtotal output. MFC after: 3 days Notes: svn path=/head/; revision=212726
* Free the memory allocated via strdup.Rebecca Cran2010-03-131-0/+1
| | | | | | | | | | PR: bin/113881 Submitted by: Alexander Drozdov dzal_mail mtu-net.ru Approved by: rrs (mentor) MFC after: 1 week Notes: svn path=/head/; revision=205118
* sysctl(8): make WARNS=3 cleanUlrich Spörlein2010-02-152-12/+18
| | | | | | | | | | Fixes inspired by work done in DragonflyBSD. PR: bin/140016 Approved by: ed (Co-mentor) Notes: svn path=/head/; revision=203917