Update copyright dates with scripts/update-copyrights.
[glibc.git] / sysdeps / unix / sysv / linux / arm / tls.h
blobad0dee4c75950462a735a5d11d97a92bf137b9b6
1 /* Definition for thread-local data handling. ARM/Linux version.
2 Copyright (C) 2005-2015 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
19 #ifndef _LINUX_ARM_TLS_H
20 #define _LINUX_ARM_TLS_H 1
22 /* Almost everything is OS-independent and common for all NPTL on ARM. */
23 #include <sysdeps/arm/nptl/tls.h>
25 #ifndef __ASSEMBLER__
27 /* Get system call information. */
28 # include <sysdep.h>
30 /* Code to initially initialize the thread pointer. This might need
31 special attention since 'errno' is not yet available and if the
32 operation can cause a failure 'errno' must not be touched. */
33 # define TLS_INIT_TP(tcbp) \
34 ({ INTERNAL_SYSCALL_DECL (err); \
35 long int result_var; \
36 result_var = INTERNAL_SYSCALL_ARM (set_tls, err, 1, (tcbp)); \
37 INTERNAL_SYSCALL_ERROR_P (result_var, err) \
38 ? "unknown error" : NULL; })
40 #endif /* __ASSEMBLER__ */
42 #endif /* tls.h */