Deleted Added
full compact
kern_sysctl.c (12662) kern_sysctl.c (12819)
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

--- 23 unchanged lines hidden (view full) ---

32 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 * SUCH DAMAGE.
38 *
39 * @(#)kern_sysctl.c 8.4 (Berkeley) 4/14/94
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

--- 23 unchanged lines hidden (view full) ---

32 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 * SUCH DAMAGE.
38 *
39 * @(#)kern_sysctl.c 8.4 (Berkeley) 4/14/94
40 * $Id: kern_sysctl.c,v 1.55 1995/12/06 13:27:38 phk Exp $
40 * $Id: kern_sysctl.c,v 1.56 1995/12/07 12:46:52 davidg Exp $
41 */
42
43#include <sys/param.h>
44#include <sys/systm.h>
45#include <sys/sysproto.h>
46#include <sys/kernel.h>
47#include <sys/vnode.h>
48#include <sys/unistd.h>

--- 903 unchanged lines hidden (view full) ---

952/* Non-standard BSDI extension - only present on their 4.3 net-2 releases */
953#define KINFO_BSDI_SYSINFO (101<<8)
954
955/*
956 * XXX this is bloat, but I hope it's better here than on the potentially
957 * limited kernel stack... -Peter
958 */
959
41 */
42
43#include <sys/param.h>
44#include <sys/systm.h>
45#include <sys/sysproto.h>
46#include <sys/kernel.h>
47#include <sys/vnode.h>
48#include <sys/unistd.h>

--- 903 unchanged lines hidden (view full) ---

952/* Non-standard BSDI extension - only present on their 4.3 net-2 releases */
953#define KINFO_BSDI_SYSINFO (101<<8)
954
955/*
956 * XXX this is bloat, but I hope it's better here than on the potentially
957 * limited kernel stack... -Peter
958 */
959
960struct {
960static struct {
961 int bsdi_machine; /* "i386" on BSD/386 */
962/* ^^^ this is an offset to the string, relative to the struct start */
963 char *pad0;
964 long pad1;
965 long pad2;
966 long pad3;
967 u_long pad4;
968 u_long pad5;

--- 20 unchanged lines hidden (view full) ---

989
990} bsdi_si;
991/*
992 * this data is appended to the end of the bsdi_si structure during copyout.
993 * The "char *" offsets are relative to the base of the bsdi_si struct.
994 * This contains "FreeBSD\02.0-BUILT-nnnnnn\0i386\0", and these strings
995 * should not exceed the length of the buffer here... (or else!! :-)
996 */
961 int bsdi_machine; /* "i386" on BSD/386 */
962/* ^^^ this is an offset to the string, relative to the struct start */
963 char *pad0;
964 long pad1;
965 long pad2;
966 long pad3;
967 u_long pad4;
968 u_long pad5;

--- 20 unchanged lines hidden (view full) ---

989
990} bsdi_si;
991/*
992 * this data is appended to the end of the bsdi_si structure during copyout.
993 * The "char *" offsets are relative to the base of the bsdi_si struct.
994 * This contains "FreeBSD\02.0-BUILT-nnnnnn\0i386\0", and these strings
995 * should not exceed the length of the buffer here... (or else!! :-)
996 */
997char bsdi_strings[80]; /* It had better be less than this! */
997static char bsdi_strings[80]; /* It had better be less than this! */
998
999#ifndef _SYS_SYSPROTO_H_
1000struct getkerninfo_args {
1001 int op;
1002 char *where;
1003 int *size;
1004 int arg;
1005};

--- 141 unchanged lines hidden ---
998
999#ifndef _SYS_SYSPROTO_H_
1000struct getkerninfo_args {
1001 int op;
1002 char *where;
1003 int *size;
1004 int arg;
1005};

--- 141 unchanged lines hidden ---