#
c14aafed |
| 18-Mar-2015 |
Navdeep Parhar <np@FreeBSD.org> |
Merge r278538 through r280226.
|
#
28349245 |
| 17-Mar-2015 |
Ian Lepore <ian@FreeBSD.org> |
In sbuf_new_for_sysctl(), default the buffer size to 64 bytes if the passed-in pointer is NULL and the length is zero.
|
#
7426d572 |
| 15-Mar-2015 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Merge from head
|
#
2dbe5fa7 |
| 14-Mar-2015 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r279985 through r279994.
|
#
1eafc078 |
| 14-Mar-2015 |
Ian Lepore <ian@FreeBSD.org> |
Set the SBUF_INCLUDENUL flag in sbuf_new_for_sysctl() so that sysctl strings returned to userland include the nulterm byte.
Some uses of sbuf_new_for_sysctl() write binary data rather than strings;
Set the SBUF_INCLUDENUL flag in sbuf_new_for_sysctl() so that sysctl strings returned to userland include the nulterm byte.
Some uses of sbuf_new_for_sysctl() write binary data rather than strings; clear the SBUF_INCLUDENUL flag after calling sbuf_new_for_sysctl() in those cases. (Note that the sbuf code still automatically adds a nulterm byte in sbuf_finish(), but since it's not included in the length it won't get copied to userland along with the binary data.)
Remove explicit adding of a nulterm byte in a couple places now that it gets done automatically by the sbuf drain code.
PR: 195668
show more ...
|
#
d899be7d |
| 19-Jan-2015 |
Glen Barber <gjb@FreeBSD.org> |
Reintegrate head: r274132-r277384
Sponsored by: The FreeBSD Foundation
|
#
8f0ea33f |
| 13-Jan-2015 |
Glen Barber <gjb@FreeBSD.org> |
Reintegrate head revisions r273096-r277147
Sponsored by: The FreeBSD Foundation
|
#
a4ed7276 |
| 03-Jan-2015 |
Enji Cooper <ngie@FreeBSD.org> |
MFhead @ r276594
|
#
eca4d50a |
| 28-Dec-2014 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r274961 through r276342.
|
#
84267cac |
| 28-Dec-2014 |
Mateusz Guzik <mjg@FreeBSD.org> |
sysctl: don't modify oid_running for static nodes
It is necessary to prevent nodes from being destroyed while used, but static ones cannot be destroyed.
|
#
9268022b |
| 19-Nov-2014 |
Simon J. Gerraty <sjg@FreeBSD.org> |
Merge from head@274682
|
Revision tags: release/10.1.0 |
|
#
5c9ef378 |
| 04-Nov-2014 |
Alexander V. Chernikov <melifaro@FreeBSD.org> |
Sync to HEAD@r274095.
|
#
f84f8f94 |
| 26-Oct-2014 |
Mateusz Guzik <mjg@FreeBSD.org> |
Now that sysctl_root is only called with sysctl lock in shared mode, update its assertion to require that.
Update comment missed in r273400: sysctl_xlock/unlock -> sysctl_xlock/xunlock
Noted by: jhb
|
#
b0d69dfa |
| 24-Oct-2014 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
In all cases except CTLTYPE_STRING, penv is NULL here, so passing it indiscriminately to printf() and freeenv() is incorrect. Add a NULL check before freeenv(); as for printf(), we could use req.new
In all cases except CTLTYPE_STRING, penv is NULL here, so passing it indiscriminately to printf() and freeenv() is incorrect. Add a NULL check before freeenv(); as for printf(), we could use req.newptr instead, but we'd have to select the correct format string based on the type, and that's too much work for an error message, so just remove it.
show more ...
|
#
fca77320 |
| 21-Oct-2014 |
Mateusz Guzik <mjg@FreeBSD.org> |
Mark some more sysctl stuff shared-locked and MPSAFE.
|
#
b564c5d6 |
| 21-Oct-2014 |
Mateusz Guzik <mjg@FreeBSD.org> |
Make sysctl name2oid shared-locked as well.
This is a follow-up to r273401.
|
#
efe0abdd |
| 21-Oct-2014 |
Mateusz Guzik <mjg@FreeBSD.org> |
Implement shared locking for sysctl.
|
#
580a0117 |
| 21-Oct-2014 |
Mateusz Guzik <mjg@FreeBSD.org> |
Rename sysctl_lock and _unlock to sysctl_xlock and _xunlock.
|
#
867b5960 |
| 20-Oct-2014 |
Neel Natu <neel@FreeBSD.org> |
IFC @r273206
|
#
2be111bf |
| 16-Oct-2014 |
Davide Italiano <davide@FreeBSD.org> |
Follow up to r225617. In order to maximize the re-usability of kernel code in userland rename in-kernel getenv()/setenv() to kern_setenv()/kern_getenv(). This fixes a namespace collision with libc sy
Follow up to r225617. In order to maximize the re-usability of kernel code in userland rename in-kernel getenv()/setenv() to kern_setenv()/kern_getenv(). This fixes a namespace collision with libc symbols.
Submitted by: kmacy Tested by: make universe
show more ...
|
#
246e7a2b |
| 02-Sep-2014 |
Neel Natu <neel@FreeBSD.org> |
IFC @r269962
Submitted by: Anish Gupta (akgupt3@gmail.com)
|
#
ee7b0571 |
| 19-Aug-2014 |
Simon J. Gerraty <sjg@FreeBSD.org> |
Merge head from 7/28
|
#
1b833d53 |
| 13-Aug-2014 |
Alexander V. Chernikov <melifaro@FreeBSD.org> |
Sync to HEAD@r269943.
|
Revision tags: release/9.3.0 |
|
#
30d58d6b |
| 10-Jul-2014 |
Mateusz Guzik <mjg@FreeBSD.org> |
Don't make a temporary copy of fixed sysctl strings.
|
#
604bf9d3 |
| 05-Jul-2014 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
When getting the initial value of numeric tunables use the getenv_xxx() functions instead of strtoq(), because the getenv_xxx() functions include wrappers for various postfixes like G/M/K, which strt
When getting the initial value of numeric tunables use the getenv_xxx() functions instead of strtoq(), because the getenv_xxx() functions include wrappers for various postfixes like G/M/K, which strtoq() doesn't do.
show more ...
|