Deleted Added
full compact
sysctl.h (62573) sysctl.h (62622)
1/*
2 * Copyright (c) 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 * Redistribution and use in source and binary forms, with or without

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

29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)sysctl.h 8.1 (Berkeley) 6/2/93
1/*
2 * Copyright (c) 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 * Redistribution and use in source and binary forms, with or without

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

29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)sysctl.h 8.1 (Berkeley) 6/2/93
37 * $FreeBSD: head/sys/sys/sysctl.h 62573 2000-07-04 11:25:35Z phk $
37 * $FreeBSD: head/sys/sys/sysctl.h 62622 2000-07-05 07:46:41Z jhb $
38 */
39
40#ifndef _SYS_SYSCTL_H_
41#define _SYS_SYSCTL_H_
42
43#include <sys/_posix.h>
44#include <sys/queue.h>
45

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

168 SYSCTL_OID(parent, nbr, name, CTLTYPE_STRING|access, \
169 arg, len, sysctl_handle_string, "A", descr)
170
171/* Oid for an int. If ptr is NULL, val is returned. */
172#define SYSCTL_INT(parent, nbr, name, access, ptr, val, descr) \
173 SYSCTL_OID(parent, nbr, name, CTLTYPE_INT|access, \
174 ptr, val, sysctl_handle_int, "I", descr)
175
38 */
39
40#ifndef _SYS_SYSCTL_H_
41#define _SYS_SYSCTL_H_
42
43#include <sys/_posix.h>
44#include <sys/queue.h>
45

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

168 SYSCTL_OID(parent, nbr, name, CTLTYPE_STRING|access, \
169 arg, len, sysctl_handle_string, "A", descr)
170
171/* Oid for an int. If ptr is NULL, val is returned. */
172#define SYSCTL_INT(parent, nbr, name, access, ptr, val, descr) \
173 SYSCTL_OID(parent, nbr, name, CTLTYPE_INT|access, \
174 ptr, val, sysctl_handle_int, "I", descr)
175
176/* Oid for an unsigned int. If ptr is NULL, val is returned. */
177#define SYSCTL_UINT(parent, nbr, name, access, ptr, val, descr) \
178 SYSCTL_OID(parent, nbr, name, CTLTYPE_INT|access, \
179 ptr, val, sysctl_handle_int, "IU", descr)
180
176/* Oid for a long. The pointer must be non NULL. */
181/* Oid for a long. The pointer must be non NULL. */
177#define SYSCTL_LONG(parent, nbr, name, access, ptr, descr) \
182#define SYSCTL_LONG(parent, nbr, name, access, ptr, val, descr) \
178 SYSCTL_OID(parent, nbr, name, CTLTYPE_INT|access, \
183 SYSCTL_OID(parent, nbr, name, CTLTYPE_INT|access, \
179 ptr, 0, sysctl_handle_long, "L", descr)
184 ptr, val, sysctl_handle_long, "L", descr)
180
185
186/* Oid for a long. The pointer must be non NULL. */
187#define SYSCTL_ULONG(parent, nbr, name, access, ptr, val, descr) \
188 SYSCTL_OID(parent, nbr, name, CTLTYPE_INT|access, \
189 ptr, val, sysctl_handle_long, "LU", descr)
190
181/* Oid for an opaque object. Specified by a pointer and a length. */
182#define SYSCTL_OPAQUE(parent, nbr, name, access, ptr, len, fmt, descr) \
183 SYSCTL_OID(parent, nbr, name, CTLTYPE_OPAQUE|access, \
184 ptr, len, sysctl_handle_opaque, fmt, descr)
185
186/* Oid for a struct. Specified by a pointer and a type. */
187#define SYSCTL_STRUCT(parent, nbr, name, access, ptr, type, descr) \
188 SYSCTL_OID(parent, nbr, name, CTLTYPE_OPAQUE|access, \

--- 326 unchanged lines hidden ---
191/* Oid for an opaque object. Specified by a pointer and a length. */
192#define SYSCTL_OPAQUE(parent, nbr, name, access, ptr, len, fmt, descr) \
193 SYSCTL_OID(parent, nbr, name, CTLTYPE_OPAQUE|access, \
194 ptr, len, sysctl_handle_opaque, fmt, descr)
195
196/* Oid for a struct. Specified by a pointer and a type. */
197#define SYSCTL_STRUCT(parent, nbr, name, access, ptr, type, descr) \
198 SYSCTL_OID(parent, nbr, name, CTLTYPE_OPAQUE|access, \

--- 326 unchanged lines hidden ---