1 /* Copyright (C) 1991, 1993, 1995, 1996 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. */
26 /* Get the value of the system variable NAME. */
28 DEFUN(__sysconf
, (name
), int name
)
37 return __tzname_max ();
46 case _SC_REALTIME_SIGNALS
:
47 case _SC_PRIORITY_SCHEDULING
:
49 case _SC_ASYNCHRONOUS_IO
:
50 case _SC_PRIORITIZED_IO
:
51 case _SC_SYNCHRONIZED_IO
:
53 case _SC_MAPPED_FILES
:
55 case _SC_MEMLOCK_RANGE
:
56 case _SC_MEMORY_PROTECTION
:
57 case _SC_MESSAGE_PASSING
:
59 case _SC_SHARED_MEMORY_OBJECTS
:
64 case _SC_BC_SCALE_MAX
:
65 case _SC_BC_STRING_MAX
:
66 case _SC_EQUIV_CLASS_MAX
:
67 case _SC_EXPR_NEST_MAX
:
70 case _SC_CHARCLASS_NAME_MAX
:
84 weak_alias (__sysconf
, sysconf
)
86 stub_warning (sysconf
)