Blame nptl/vars.c

Packit Service 82fcde
/* Copyright (C) 2004-2018 Free Software Foundation, Inc.
Packit Service 82fcde
   This file is part of the GNU C Library.
Packit Service 82fcde
Packit Service 82fcde
   The GNU C Library is free software; you can redistribute it and/or
Packit Service 82fcde
   modify it under the terms of the GNU Lesser General Public
Packit Service 82fcde
   License as published by the Free Software Foundation; either
Packit Service 82fcde
   version 2.1 of the License, or (at your option) any later version.
Packit Service 82fcde
Packit Service 82fcde
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service 82fcde
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 82fcde
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 82fcde
   Lesser General Public License for more details.
Packit Service 82fcde
Packit Service 82fcde
   You should have received a copy of the GNU Lesser General Public
Packit Service 82fcde
   License along with the GNU C Library; if not, see
Packit Service 82fcde
   <http://www.gnu.org/licenses/>.  */
Packit Service 82fcde
Packit Service 82fcde
#include <pthreadP.h>
Packit Service 82fcde
#include <stdlib.h>
Packit Service 82fcde
#include <tls.h>
Packit Service 82fcde
#include <unistd.h>
Packit Service 82fcde
Packit Service 82fcde
/* Default thread attributes for the case when the user does not
Packit Service 82fcde
   provide any.  */
Packit Service 82fcde
struct pthread_attr __default_pthread_attr attribute_hidden;
Packit Service 82fcde
Packit Service 82fcde
/* Mutex protecting __default_pthread_attr.  */
Packit Service 82fcde
int __default_pthread_attr_lock = LLL_LOCK_INITIALIZER;
Packit Service 82fcde
Packit Service 82fcde
/* Flag whether the machine is SMP or not.  */
Packit Service 82fcde
int __is_smp attribute_hidden;
Packit Service 82fcde
Packit Service 82fcde
#ifndef TLS_MULTIPLE_THREADS_IN_TCB
Packit Service 82fcde
/* Variable set to a nonzero value either if more than one thread runs or ran,
Packit Service 82fcde
   or if a single-threaded process is trying to cancel itself.  See
Packit Service 82fcde
   nptl/descr.h for more context on the single-threaded process case.  */
Packit Service 82fcde
int __pthread_multiple_threads attribute_hidden;
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
/* Table of the key information.  */
Packit Service 82fcde
struct pthread_key_struct __pthread_keys[PTHREAD_KEYS_MAX]
Packit Service 82fcde
  __attribute__ ((nocommon));
Packit Service 82fcde
hidden_data_def (__pthread_keys)