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 int EXFUN(__getdtablesize
, (NOARGS
));
28 extern size_t EXFUN(__getpagesize
, (NOARGS
));
30 /* Get the value of the system variable NAME. */
32 DEFUN(__sysconf
, (name
), int name
)
65 return __getdtablesize ();
71 return __tzname_max ();
74 #ifdef _POSIX_JOB_CONTROL
80 #ifdef _POSIX_SAVED_IDS
86 return _POSIX_VERSION
;
89 return __getpagesize ();
105 case _SC_BC_SCALE_MAX
:
112 case _SC_BC_STRING_MAX
:
114 return BC_STRING_MAX
;
119 case _SC_EQUIV_CLASS_MAX
:
120 #ifdef EQUIV_CLASS_MAX
121 return EQUIV_CLASS_MAX
;
126 case _SC_EXPR_NEST_MAX
:
128 return EXPR_NEST_MAX
;
149 /* This is actually supposed to return the version
150 of the 1003.2 utilities on the system {POSIX2_VERSION}. */
151 return _POSIX2_C_VERSION
;
154 #ifdef _POSIX2_C_BIND
155 return _POSIX2_C_BIND
;
162 return _POSIX2_C_DEV
;
168 #ifdef _POSIX2_FORT_DEV
169 return _POSIX2_FORT_DEV
;
175 #ifdef _POSIX2_SW_DEV
176 return _POSIX2_SW_DEV
;
183 weak_alias (__sysconf
, sysconf
)