]> sourceware.org Git - glibc.git/commitdiff
Rename bits/libc-tsd.h to libc-tsd.h (bug 14912).
authorJoseph Myers <joseph@codesourcery.com>
Thu, 3 Sep 2015 20:33:46 +0000 (20:33 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 3 Sep 2015 20:33:46 +0000 (20:33 +0000)
It was noted in
<https://sourceware.org/ml/libc-alpha/2012-09/msg00305.html> that the
bits/*.h naming scheme should only be used for installed headers.
This patch renames bits/libc-tsd.h to plain libc-tsd.h to follow that
convention.

Tested for x86_64 (testing, and that installed stripped shared
libraries are unchanged by the patch).

[BZ #14912]
* bits/libc-tsd.h: Move to ...
* sysdeps/generic/libc-tsd.h: ...here.
(_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
* sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
* sysdeps/mach/hurd/libc-tsd.h: ...here.
(_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
* include/ctype.h: Include <libc-tsd.h> instead of
<bits/libc-tsd.h>.
* include/rpc/rpc.h: Likewise.
* locale/localeinfo.h: Likewise.
* sunrpc/rpc_thread.c: Likewise.
* sysdeps/mach/hurd/malloc-machine.h: Likewise.
* sysdeps/nptl/malloc-machine.h: Likewise.

ChangeLog
include/ctype.h
include/rpc/rpc.h
locale/localeinfo.h
sunrpc/rpc_thread.c
sysdeps/generic/libc-tsd.h [moved from bits/libc-tsd.h with 96% similarity]
sysdeps/mach/hurd/libc-tsd.h [moved from sysdeps/mach/hurd/bits/libc-tsd.h with 93% similarity]
sysdeps/mach/hurd/malloc-machine.h
sysdeps/nptl/malloc-machine.h

index a911d6aee8462fee18fa56c8a6c599d851dcd889..3d9265602ec7a0c53fc4b14a7a5f818ecd85b39f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,20 @@
 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
 
+       [BZ #14912]
+       * bits/libc-tsd.h: Move to ...
+       * sysdeps/generic/libc-tsd.h: ...here.
+       (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
+       * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
+       * sysdeps/mach/hurd/libc-tsd.h: ...here.
+       (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
+       * include/ctype.h: Include <libc-tsd.h> instead of
+       <bits/libc-tsd.h>.
+       * include/rpc/rpc.h: Likewise.
+       * locale/localeinfo.h: Likewise.
+       * sunrpc/rpc_thread.c: Likewise.
+       * sysdeps/mach/hurd/malloc-machine.h: Likewise.
+       * sysdeps/nptl/malloc-machine.h: Likewise.
+
        * Makefile (headers): Remove bits/libc-lock.h.
        * libio/Makefile (headers): Remove bits/stdio-lock.h.
 
index f3157b9e7d717821e651039d78be336a82dda0ba..ac6db790b74cb85a1cb4e178d80a7a5ed4de4eed 100644 (file)
@@ -21,7 +21,7 @@ extern int (__isctype) (int __c, int __mask);
    NL_CURRENT_INDIRECT.  */
 
 #  include "../locale/localeinfo.h"
-#  include <bits/libc-tsd.h>
+#  include <libc-tsd.h>
 
 #  ifndef CTYPE_EXTERN_INLINE  /* Used by ctype/ctype-info.c, which see.  */
 #   define CTYPE_EXTERN_INLINE extern inline
index d2f30131141c7abb50a6ea436dd0f4deff81b902..58bdef3cc9986e5e31c20c52386bcfb1a19be450 100644 (file)
@@ -1,6 +1,6 @@
 #ifndef _RPC_RPC_H
 #include <sunrpc/rpc/rpc.h>
-#include <bits/libc-tsd.h>
+#include <libc-tsd.h>
 
 /* Now define the internal interfaces.  */
 extern unsigned long _create_xid (void);
index bdab9fe74551c54a50b3d9d93517b2617e62ddff..434b839b61e12e0b9a8182fb4beba557ae0a92ae 100644 (file)
@@ -223,7 +223,7 @@ extern struct __locale_struct _nl_global_locale attribute_hidden;
 /* This fetches the thread-local locale_t pointer, either one set with
    uselocale or &_nl_global_locale.  */
 #define _NL_CURRENT_LOCALE     (__libc_tsd_get (__locale_t, LOCALE))
-#include <bits/libc-tsd.h>
+#include <libc-tsd.h>
 __libc_tsd_define (extern, __locale_t, LOCALE)
 
 
index fee47f7bf2f2d95f34276b3b628ed08a6c359166..5910ea7710b85dbbdb9cd0184ae9cfe459bb9493 100644 (file)
@@ -4,7 +4,7 @@
 #include <assert.h>
 
 #include <bits/libc-lock.h>
-#include <bits/libc-tsd.h>
+#include <libc-tsd.h>
 
 #ifdef _RPC_THREAD_SAFE_
 
similarity index 96%
rename from bits/libc-tsd.h
rename to sysdeps/generic/libc-tsd.h
index 5889d2eaae6846b92509a22a6390894bfb9470bd..b6aff7ac9d257ffb2d0cdfe47c7f188b2d96d5ec 100644 (file)
@@ -16,8 +16,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#ifndef _GENERIC_BITS_LIBC_TSD_H
-#define _GENERIC_BITS_LIBC_TSD_H 1
+#ifndef _GENERIC_LIBC_TSD_H
+#define _GENERIC_LIBC_TSD_H 1
 
 /* This file defines the following macros for accessing a small fixed
    set of thread-specific `void *' data used only internally by libc.
@@ -57,4 +57,4 @@
 #define __libc_tsd_get(TYPE, KEY)              (__libc_tsd_##KEY)
 #define __libc_tsd_set(TYPE, KEY, VALUE)       (__libc_tsd_##KEY = (VALUE))
 
-#endif /* bits/libc-tsd.h */
+#endif /* libc-tsd.h */
similarity index 93%
rename from sysdeps/mach/hurd/bits/libc-tsd.h
rename to sysdeps/mach/hurd/libc-tsd.h
index 0086154273529ace9fc79dbcb2a66b5f4d4fbd32..821105bcc99ab450bc7baa1851ce8fd5d0e3eeca 100644 (file)
@@ -16,8 +16,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#ifndef _BITS_LIBC_TSD_H
-#define _BITS_LIBC_TSD_H 1
+#ifndef _LIBC_TSD_H
+#define _LIBC_TSD_H 1
 
 #include <hurd/threadvar.h>
 
@@ -31,4 +31,4 @@
 #define __libc_tsd_set(TYPE, KEY, VALUE) \
   (*__libc_tsd_address (TYPE, KEY) = (VALUE))
 
-#endif /* bits/libc-tsd.h */
+#endif /* libc-tsd.h */
index d69d82be8ea0f4b766bd415de6211cd7d4963415..ba8b60dee86fbb0434a76036e073d2b69a092135 100644 (file)
@@ -54,7 +54,7 @@
 
 /* thread specific data for glibc */
 
-#include <bits/libc-tsd.h>
+#include <libc-tsd.h>
 
 typedef int tsd_key_t[1];      /* no key data structure, libc magic does it */
 __libc_tsd_define (static, void *, MALLOC)     /* declaration/common definition */
index 27c9911d17529540a0d1a3ed20102a834b651250..a3d10892bfcc52dd8b3ef4b62811e881f3f2e504 100644 (file)
@@ -60,7 +60,7 @@ extern void *__dso_handle __attribute__ ((__weak__));
 
 /* thread specific data for glibc */
 
-#include <bits/libc-tsd.h>
+#include <libc-tsd.h>
 
 typedef int tsd_key_t[1];      /* no key data structure, libc magic does it */
 __libc_tsd_define (static, void *, MALLOC)     /* declaration/common definition */
This page took 0.102144 seconds and 5 git commands to generate.