1 /* Copyright (C) 1991, 1993, 1995 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public
15 License along with the GNU C Library; see the file COPYING.LIB. If
16 not, write to the Free Software Foundation, Inc., 675 Mass Ave,
17 Cambridge, MA 02139, USA. */
27 extern size_t EXFUN(__getpagesize
, (NOARGS
));
29 /* Get the value of the system variable NAME. */
31 DEFUN(__sysconf
, (name
), int name
)
78 return __tzname_max ();
81 #ifdef _POSIX_JOB_CONTROL
87 #ifdef _POSIX_SAVED_IDS
93 return _POSIX_VERSION
;
96 return __getpagesize ();
112 case _SC_BC_SCALE_MAX
:
119 case _SC_BC_STRING_MAX
:
121 return BC_STRING_MAX
;
126 case _SC_EQUIV_CLASS_MAX
:
127 #ifdef EQUIV_CLASS_MAX
128 return EQUIV_CLASS_MAX
;
133 case _SC_EXPR_NEST_MAX
:
135 return EXPR_NEST_MAX
;
156 /* This is actually supposed to return the version
157 of the 1003.2 utilities on the system {POSIX2_VERSION}. */
158 return _POSIX2_C_VERSION
;
161 #ifdef _POSIX2_C_BIND
162 return _POSIX2_C_BIND
;
169 return _POSIX2_C_DEV
;
175 #ifdef _POSIX2_FORT_DEV
176 return _POSIX2_FORT_DEV
;
181 case _SC_2_LOCALEDEF
:
182 #ifdef _POSIX2_LOCALEDEF
183 return _POSIX2_LOCALEDEF
;
189 #ifdef _POSIX2_SW_DEV
190 return _POSIX2_SW_DEV
;
197 weak_alias (__sysconf
, sysconf
)