* Copyright (c) 1993 The Regents of the University of California.
* This code is derived from software contributed to Berkeley by
* Sean Eric Fagan of Cygnus Support.
* %sccs.include.redist.c%
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid
[] = "@(#)sysconf.c 5.1 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
len
= sizeof(struct clockinfo
);
&clk
, &len
, NULL
, 0) == -1 ? -1 : clk
.hz
);
mib
[1] = KERN_JOB_CONTROL
;
mib
[1] = USER_BC_BASE_MAX
;
mib
[1] = USER_BC_DIM_MAX
;
mib
[1] = USER_BC_SCALE_MAX
;
mib
[1] = USER_BC_STRING_MAX
;
case _SC_COLL_WEIGHTS_MAX
:
mib
[1] = USER_COLL_WEIGHTS_MAX
;
mib
[1] = USER_EXPR_NEST_MAX
;
mib
[1] = USER_RE_DUP_MAX
;
mib
[1] = USER_POSIX2_VERSION
;
mib
[1] = USER_POSIX2_C_BIND
;
mib
[1] = USER_POSIX2_C_DEV
;
mib
[1] = USER_POSIX2_FORT_DEV
;
mib
[1] = USER_POSIX2_FORT_RUN
;
mib
[1] = USER_POSIX2_LOCALEDEF
;
mib
[1] = USER_POSIX2_SW_DEV
;
return (sysctl(mib
, 2, &value
, &len
, NULL
, 0) == -1 ? -1 : value
);