Check supported DF_1_XXX bits
[glibc.git] / nptl / vars.c
blob43a6e3957c23c87d3af147e8d4750eae53c1d622
1 /* Copyright (C) 2004 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 Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the 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 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
18 #include <pthreadP.h>
19 #include <stdlib.h>
20 #include <tls.h>
21 #include <unistd.h>
23 /* Default stack size. */
24 size_t __default_stacksize attribute_hidden
25 #ifdef SHARED
27 #else
28 = PTHREAD_STACK_MIN;
29 #endif
31 /* Flag whether the machine is SMP or not. */
32 int __is_smp attribute_hidden;
34 #ifndef TLS_MULTIPLE_THREADS_IN_TCB
35 /* Variable set to a nonzero value either if more than one thread runs or ran,
36 or if a single-threaded process is trying to cancel itself. See
37 nptl/descr.h for more context on the single-threaded process case. */
38 int __pthread_multiple_threads attribute_hidden;
39 #endif
41 /* Table of the key information. */
42 struct pthread_key_struct __pthread_keys[PTHREAD_KEYS_MAX]
43 __attribute__ ((nocommon));
44 hidden_data_def (__pthread_keys)