* Copyright (c) 1993 The Regents of the University of California.
* %sccs.include.redist.c%
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid
[] = "@(#)sysctl.c 5.2 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
sysctl(name
, namelen
, oldp
, oldlenp
, newp
, newlen
)
return (__sysctl(name
, namelen
, oldp
, oldlenp
, newp
, newlen
));
if (oldp
&& *oldlenp
< sizeof(_PATH_STDPATH
))
*oldlenp
= sizeof(_PATH_STDPATH
);
memmove(oldp
, _PATH_STDPATH
, sizeof(_PATH_STDPATH
));
if (oldp
&& *oldlenp
< sizeof(int))
*(int *)oldp
= BC_BASE_MAX
;
*(int *)oldp
= BC_DIM_MAX
;
*(int *)oldp
= BC_SCALE_MAX
;
*(int *)oldp
= BC_STRING_MAX
;
case USER_COLL_WEIGHTS_MAX
:
*(int *)oldp
= COLL_WEIGHTS_MAX
;
*(int *)oldp
= EXPR_NEST_MAX
;
*(int *)oldp
= RE_DUP_MAX
;
case USER_POSIX2_VERSION
:
*(int *)oldp
= _POSIX2_VERSION
;
case USER_POSIX2_CHAR_TERM
:
case USER_POSIX2_FORT_DEV
:
case USER_POSIX2_FORT_RUN
:
case USER_POSIX2_LOCALEDEF
:
*(int *)oldp
= FOPEN_MAX
;