sysctl.c (77332) | sysctl.c (77567) |
---|---|
1/* 2 * Copyright (c) 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 28 unchanged lines hidden (view full) --- 37 The Regents of the University of California. All rights reserved.\n"; 38#endif /* not lint */ 39 40#ifndef lint 41#if 0 42static char sccsid[] = "@(#)from: sysctl.c 8.1 (Berkeley) 6/6/93"; 43#endif 44static const char rcsid[] = | 1/* 2 * Copyright (c) 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 28 unchanged lines hidden (view full) --- 37 The Regents of the University of California. All rights reserved.\n"; 38#endif /* not lint */ 39 40#ifndef lint 41#if 0 42static char sccsid[] = "@(#)from: sysctl.c 8.1 (Berkeley) 6/6/93"; 43#endif 44static const char rcsid[] = |
45 "$FreeBSD: head/sbin/sysctl/sysctl.c 77332 2001-05-28 12:35:40Z des $"; | 45 "$FreeBSD: head/sbin/sysctl/sysctl.c 77567 2001-06-01 02:58:09Z dd $"; |
46#endif /* not lint */ 47 48#include <sys/types.h> 49#include <sys/stat.h> 50#include <sys/sysctl.h> 51#include <sys/resource.h> 52 53#include <ctype.h> --- 303 unchanged lines hidden (view full) --- 357 * Returns one if didn't know what to do with this. 358 * Return minus one if we had errors. 359 */ 360 361static int 362show_var(int *oid, int nlen) 363{ 364 u_char buf[BUFSIZ], *val, *p; | 46#endif /* not lint */ 47 48#include <sys/types.h> 49#include <sys/stat.h> 50#include <sys/sysctl.h> 51#include <sys/resource.h> 52 53#include <ctype.h> --- 303 unchanged lines hidden (view full) --- 357 * Returns one if didn't know what to do with this. 358 * Return minus one if we had errors. 359 */ 360 361static int 362show_var(int *oid, int nlen) 363{ 364 u_char buf[BUFSIZ], *val, *p; |
365 char name[BUFSIZ], descr[BUFSIZ], *fmt; | 365 char name[BUFSIZ], *fmt; |
366 int qoid[CTL_MAXNAME+2]; 367 int i; 368 size_t j, len; 369 u_int kind; 370 int (*func)(int, void *); 371 372 qoid[0] = 0; 373 memcpy(qoid + 2, oid, nlen * sizeof(int)); --- 162 unchanged lines hidden --- | 366 int qoid[CTL_MAXNAME+2]; 367 int i; 368 size_t j, len; 369 u_int kind; 370 int (*func)(int, void *); 371 372 qoid[0] = 0; 373 memcpy(qoid + 2, oid, nlen * sizeof(int)); --- 162 unchanged lines hidden --- |