]>
sourceware.org Git - glibc.git/blob - sysdeps/mach/hurd/tls.h
1 /* Definitions for thread-local data handling. Hurd version.
2 Copyright (C) 2003-2021 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 <https://www.gnu.org/licenses/>. */
28 # include <mach/mig_errors.h>
33 /* This is the size of the initial TCB. */
34 # define TLS_INIT_TCB_SIZE sizeof (tcbhead_t)
36 /* Alignment requirements for the initial TCB. */
37 # define TLS_INIT_TCB_ALIGN __alignof__ (tcbhead_t)
39 /* This is the size of the TCB. */
40 # define TLS_TCB_SIZE TLS_INIT_TCB_SIZE /* XXX */
42 /* Alignment requirements for the TCB. */
43 # define TLS_TCB_ALIGN TLS_INIT_TCB_ALIGN /* XXX */
46 /* Install the dtv pointer. The pointer passed is to the element with
47 index -1 which contain the length. */
48 # define INSTALL_DTV(descr, dtvp) \
49 ((tcbhead_t *) (descr))->dtv = (dtvp) + 1
51 /* Return dtv of given thread descriptor. */
52 # define GET_DTV(descr) \
53 (((tcbhead_t *) (descr))->dtv)
55 #endif /* !ASSEMBLER */
This page took 0.038634 seconds and 5 git commands to generate.