kern_sysctl.c (268509) | kern_sysctl.c (273174) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Mike Karels at Berkeley Software Design, Inc. 7 * 8 * Quite extensively rewritten by Poul-Henning Kamp of the FreeBSD --- 22 unchanged lines hidden (view full) --- 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * 35 * @(#)kern_sysctl.c 8.4 (Berkeley) 4/14/94 36 */ 37 38#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Mike Karels at Berkeley Software Design, Inc. 7 * 8 * Quite extensively rewritten by Poul-Henning Kamp of the FreeBSD --- 22 unchanged lines hidden (view full) --- 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * 35 * @(#)kern_sysctl.c 8.4 (Berkeley) 4/14/94 36 */ 37 38#include <sys/cdefs.h> |
39__FBSDID("$FreeBSD: head/sys/kern/kern_sysctl.c 268509 2014-07-10 21:46:57Z mjg $"); | 39__FBSDID("$FreeBSD: head/sys/kern/kern_sysctl.c 273174 2014-10-16 18:04:43Z davide $"); |
40 41#include "opt_capsicum.h" 42#include "opt_compat.h" 43#include "opt_ktrace.h" 44 45#include <sys/param.h> 46#include <sys/fail.h> 47#include <sys/systm.h> --- 188 unchanged lines hidden (view full) --- 236 /* XXX there is no getenv_uquad() */ 237 if (getenv_quad(path + rem, &val_quad) == 0) 238 return; 239 val_64 = val_quad; 240 req.newlen = sizeof(val_64); 241 req.newptr = &val_64; 242 break; 243 case CTLTYPE_STRING: | 40 41#include "opt_capsicum.h" 42#include "opt_compat.h" 43#include "opt_ktrace.h" 44 45#include <sys/param.h> 46#include <sys/fail.h> 47#include <sys/systm.h> --- 188 unchanged lines hidden (view full) --- 236 /* XXX there is no getenv_uquad() */ 237 if (getenv_quad(path + rem, &val_quad) == 0) 238 return; 239 val_64 = val_quad; 240 req.newlen = sizeof(val_64); 241 req.newptr = &val_64; 242 break; 243 case CTLTYPE_STRING: |
244 penv = getenv(path + rem); | 244 penv = kern_getenv(path + rem); |
245 if (penv == NULL) 246 return; 247 req.newlen = strlen(penv); 248 req.newptr = penv; 249 break; 250 default: 251 return; 252 } --- 1530 unchanged lines hidden --- | 245 if (penv == NULL) 246 return; 247 req.newlen = strlen(penv); 248 req.newptr = penv; 249 break; 250 default: 251 return; 252 } --- 1530 unchanged lines hidden --- |