| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
a warning, return 1 instead of 0 to indicate that we didn't print
anything, so that top-level callers don't print a spurious newline.
This is mainly to fix output formatting when stderr is redirected. It
also helps in some cases when stderr is interleaved with stdout,
depending on the details of the interleaving (this program has the
usual null explicit support for syncing stderr with stdout).
Return 1 instead of -1 after printing the "malloc failed" warning, since
the return value is boolean.
|
| |
|
|
|
|
| |
warnings.
|
|
|
|
|
| |
unused include, adding parens for return and sizeof and renaming,
adding some missing whitespace and sorting some variables.
|
|
|
|
|
|
| |
value into a variable of the right type and then printing it via
an intmax_t. This makes avoids some duplication and makes it easy
to add a new integer format Q for printing things of type CTLTYPE_QUAD.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
them unsigned I made the possible overflows hard to detect,
and it only saved 1 bit which isn't principal, even less now
that the underlying issue with the total of virtual memory has
been fixed. (For the record, it will overflow with >=2T of
VM total, with 32-bit ints used to keep counters in pages.)
- While here, fix printing of other "struct vmtotal" members
such as t_rq, t_dw, t_pw, and t_sw as they are also signed.
Reviewed by: bde
MFC after: 3 days
|
| |
|
|
|
|
|
|
|
| |
- Fix overflow bugs in sysctl(8), systat(1), and vmstat(8)
when printing values of "struct vmmeter" in kilobytes as
they don't necessarily fit into 32 bits. (Fix sysctl(8)
reporting of a total virtual memory; it's in pages too.)
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
the BUGS section of the alloca(3) manpage. In particular, when
the number of TCP sockets is several tens of thousand, trying to
"sysctl -a" would SIGSEGV on the net.inet.tcp.pcblist entry (it
would exceed the stacksize ulimit, in an undetectable manner).
Reported by: Igor Sysoev
|
|
|
|
|
|
|
| |
specify temperature.
Reviewed by: njl
MFC after: 3 days
|
|
|
|
|
|
| |
fatal on sizeof(int) != sizeof(long) systems (such as amd64).
MFC after: 1 day
|
|
|
|
| |
the same, except sysctl(8) will print out the values in hex.
|
|
|
|
|
|
| |
bde@. Fix nearby int conversion and a couple style bugs.
MFC after: 1 day
|
|
|
|
| |
MFC after: 3 days
|
| |
|
| |
|
|
|
|
|
|
|
| |
errors generated. In particular, it suppresses "unknown oid" when
attempting to get or set a sysctl not present in the kernel.
MFC after: 1 week
|
|
|
|
|
|
|
| |
- Change some section numbers to match reality
- For MLINKS to manpages from ports, mention which port installs them
MFC after: 3 days
|
| |
|
|
|
|
| |
string data.
|
| |
|
|
|
|
|
|
| |
Reviewed by: keramida
Approved by: grehan (mentor)
MFC after: 1 week
|
| |
|
| |
|
|
|
|
|
| |
PR: docs/44435
Submitted by: Slaven Rezic slaven dot rezic at berlin dot de
|
|
|
|
| |
Submitted by: ssouhlal
|
|
|
|
| |
sysctl tool to print a more readable value for temperatures.
|
|
|
|
|
|
| |
per letter dated July 22, 1999.
Approved by: core, imp
|
|
|
|
| |
value. All the other numeric types are doing it . . .
|
|
|
|
| |
Use WARNS?= instead of WARNS=.
|
|
|
|
| |
Pointed out by: johan
|
| |
|
|
|
|
|
| |
Currently, the only effect it has is to print some (but not all) numbers
using thousands separators.
|
|
|
|
|
|
| |
tunable error message more brief.
Suggested by: bde
|
|
|
|
| |
than a pointer to an int, since that is what it really wants anyway.
|
|
|
|
| |
Suggested by: njl
|
|
|
|
| |
user has attempted to write to a read only, tunable value.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(1) Reject zero-length strings for CTLTYPE_INT, _UINT, _LONG,
_ULONG. Do not silently convert to 0.
(2) When converting CTLTYPE_INT, _UINT, _LONG, and _ULONG, check the
end pointer generated by strtol() and strtoul() rather than
discarding it. Reject the string if either none of the string
was useful for conversion to an integer, or if there was
trailing garbage.
I.e., we will not allow you to set a numeric sysctl to a value unless
we can completely convert the string argument to a numeric value.
I tripped over this when I put the following in /etc/sysctl.conf:
kern.maxfiles="4000"
Ouch.
|
| |
|
|
|
|
|
|
|
| |
* s/can not/cannot/
Submitted by: ru (*)
Approved by: re (rwatson)
|
|
|
|
|
|
|
|
|
| |
loader.conf(5)
PR: 38426 (slightly modified)
Submitted by: Phil Pennock <pdp@nl.demon.net>
Approved by: re (bmah)
MFC after: 3 days
|
|
|
|
|
| |
to the build, and performs a subset of the functionality that the getconf(1)
utility performs.
|
|
|
|
|
|
| |
it according to ancient and obsolete rules.
This removes one more user of <sys/diskslice.h>
|
|
|
|
| |
caused by rev 1.45. (eg: the estimate being exactly half of the result.)
|
|
|
|
| |
a more human-readable 'kilobytes' instead of pages.
|
|
|
|
|
|
|
| |
(the patch in the PR was stale).
PR: kern/5689
Submitted by: Hiten Pandya <hiten@unixdaemons.com>
|