mirror of
https://sourceware.org/git/glibc.git
synced 2025-10-12 19:04:54 +03:00
Add missing include guards to <dl-tls.h>
Some architecture-specific variants lack header inclusion guards. Add them for consistency with the generic version.
This commit is contained in:
@@ -16,6 +16,8 @@
|
|||||||
License along with the GNU C Library; if not, see
|
License along with the GNU C Library; if not, see
|
||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
#ifndef _DL_TLS_H
|
||||||
|
#define _DL_TLS_H
|
||||||
|
|
||||||
/* Type used for the representation of TLS information in the GOT. */
|
/* Type used for the representation of TLS information in the GOT. */
|
||||||
typedef struct dl_tls_index
|
typedef struct dl_tls_index
|
||||||
@@ -65,3 +67,5 @@ rtld_hidden_def (___tls_get_addr)
|
|||||||
|
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* _DL_TLS_H */
|
||||||
|
@@ -16,6 +16,8 @@
|
|||||||
License along with the GNU C Library. If not, see
|
License along with the GNU C Library. If not, see
|
||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
#ifndef _DL_TLS_H
|
||||||
|
#define _DL_TLS_H
|
||||||
|
|
||||||
/* Type used for the representation of TLS information in the GOT. */
|
/* Type used for the representation of TLS information in the GOT. */
|
||||||
typedef struct
|
typedef struct
|
||||||
@@ -43,3 +45,5 @@ typedef struct
|
|||||||
extern void *__tls_get_addr (tls_index *ti);
|
extern void *__tls_get_addr (tls_index *ti);
|
||||||
|
|
||||||
#define __TLS_GET_ADDR(__ti) (__tls_get_addr (__ti) - TLS_DTV_OFFSET)
|
#define __TLS_GET_ADDR(__ti) (__tls_get_addr (__ti) - TLS_DTV_OFFSET)
|
||||||
|
|
||||||
|
#endif /* _DL_TLS_H */
|
||||||
|
@@ -16,6 +16,8 @@
|
|||||||
License along with the GNU C Library. If not, see
|
License along with the GNU C Library. If not, see
|
||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
#ifndef _DL_TLS_H
|
||||||
|
#define _DL_TLS_H
|
||||||
|
|
||||||
/* Type used for the representation of TLS information in the GOT. */
|
/* Type used for the representation of TLS information in the GOT. */
|
||||||
typedef struct
|
typedef struct
|
||||||
@@ -42,3 +44,5 @@ typedef struct
|
|||||||
extern void *__tls_get_addr (tls_index *ti);
|
extern void *__tls_get_addr (tls_index *ti);
|
||||||
|
|
||||||
#define __TLS_GET_ADDR(__ti) (__tls_get_addr (__ti) - TLS_DTV_OFFSET)
|
#define __TLS_GET_ADDR(__ti) (__tls_get_addr (__ti) - TLS_DTV_OFFSET)
|
||||||
|
|
||||||
|
#endif /* _DL_TLS_H */
|
||||||
|
@@ -16,6 +16,8 @@
|
|||||||
License along with the GNU C Library. If not, see
|
License along with the GNU C Library. If not, see
|
||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
#ifndef _DL_TLS_H
|
||||||
|
#define _DL_TLS_H
|
||||||
|
|
||||||
/* Type used for the representation of TLS information in the GOT. */
|
/* Type used for the representation of TLS information in the GOT. */
|
||||||
typedef struct
|
typedef struct
|
||||||
@@ -45,3 +47,5 @@ extern void *__tls_get_addr (tls_index *ti);
|
|||||||
|
|
||||||
/* Value used for dtv entries for which the allocation is delayed. */
|
/* Value used for dtv entries for which the allocation is delayed. */
|
||||||
#define TLS_DTV_UNALLOCATED ((void *) -1l)
|
#define TLS_DTV_UNALLOCATED ((void *) -1l)
|
||||||
|
|
||||||
|
#endif /* _DL_TLS_H */
|
||||||
|
@@ -16,6 +16,8 @@
|
|||||||
License along with the GNU C Library; if not, see
|
License along with the GNU C Library; if not, see
|
||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
#ifndef _DL_TLS_H
|
||||||
|
#define _DL_TLS_H
|
||||||
|
|
||||||
/* Type used for the representation of TLS information in the GOT. */
|
/* Type used for the representation of TLS information in the GOT. */
|
||||||
typedef struct
|
typedef struct
|
||||||
@@ -105,3 +107,5 @@ extern void *__tls_get_addr_internal (tls_index *ti);
|
|||||||
+ (unsigned long) __builtin_thread_pointer (); })
|
+ (unsigned long) __builtin_thread_pointer (); })
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* _DL_TLS_H */
|
||||||
|
Reference in New Issue
Block a user