glibc/locale
Zack Weinberg 9090848d06 Narrowing the visibility of libc-internal.h even further.
posix/wordexp-test.c used libc-internal.h for PTR_ALIGN_DOWN; similar
to what was done with libc-diag.h, I have split the definitions of
cast_to_integer, ALIGN_UP, ALIGN_DOWN, PTR_ALIGN_UP, and PTR_ALIGN_DOWN
to a new header, libc-pointer-arith.h.

It then occurred to me that the remaining declarations in libc-internal.h
are mostly to do with early initialization, and probably most of the
files including it, even in the core code, don't need it anymore.  Indeed,
only 19 files actually need what remains of libc-internal.h.  23 others
need libc-diag.h instead, and 12 need libc-pointer-arith.h instead.
No file needs more than one of them, and 16 don't need any of them!

So, with this patch, libc-internal.h stops including libc-diag.h as
well as losing the pointer arithmetic macros, and all including files
are adjusted.

        * include/libc-pointer-arith.h: New file.  Define
	cast_to_integer, ALIGN_UP, ALIGN_DOWN, PTR_ALIGN_UP, and
        PTR_ALIGN_DOWN here.
        * include/libc-internal.h: Definitions of above macros
	moved from here.  Don't include libc-diag.h anymore either.
	* posix/wordexp-test.c: Include stdint.h and libc-pointer-arith.h.
        Don't include libc-internal.h.

	* debug/pcprofile.c, elf/dl-tunables.c, elf/soinit.c, io/openat.c
	* io/openat64.c, misc/ptrace.c, nptl/pthread_clock_gettime.c
	* nptl/pthread_clock_settime.c, nptl/pthread_cond_common.c
	* string/strcoll_l.c, sysdeps/nacl/brk.c
	* sysdeps/unix/clock_settime.c
	* sysdeps/unix/sysv/linux/i386/get_clockfreq.c
	* sysdeps/unix/sysv/linux/ia64/get_clockfreq.c
	* sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
	* sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c:
	Don't include libc-internal.h.

	* elf/get-dynamic-info.h, iconv/loop.c
	* iconvdata/iso-2022-cn-ext.c, locale/weight.h, locale/weightwc.h
	* misc/reboot.c, nis/nis_table.c, nptl_db/thread_dbP.h
	* nscd/connections.c, resolv/res_send.c, soft-fp/fmadf4.c
	* soft-fp/fmasf4.c, soft-fp/fmatf4.c, stdio-common/vfscanf.c
	* sysdeps/ieee754/dbl-64/e_lgamma_r.c
	* sysdeps/ieee754/dbl-64/k_rem_pio2.c
	* sysdeps/ieee754/flt-32/e_lgammaf_r.c
	* sysdeps/ieee754/flt-32/k_rem_pio2f.c
	* sysdeps/ieee754/ldbl-128/k_tanl.c
	* sysdeps/ieee754/ldbl-128ibm/k_tanl.c
	* sysdeps/ieee754/ldbl-96/e_lgammal_r.c
	* sysdeps/ieee754/ldbl-96/k_tanl.c, sysdeps/nptl/futex-internal.h:
	Include libc-diag.h instead of libc-internal.h.

        * elf/dl-load.c, elf/dl-reloc.c, locale/programs/locarchive.c
        * nptl/nptl-init.c, string/strcspn.c, string/strspn.c
	* malloc/malloc.c, sysdeps/i386/nptl/tls.h
	* sysdeps/nacl/dl-map-segments.h, sysdeps/x86_64/atomic-machine.h
	* sysdeps/unix/sysv/linux/spawni.c
        * sysdeps/x86_64/nptl/tls.h:
        Include libc-pointer-arith.h instead of libc-internal.h.

	* elf/get-dynamic-info.h, sysdeps/nacl/dl-map-segments.h
	* sysdeps/x86_64/atomic-machine.h:
        Add multiple include guard.
2017-03-01 20:33:46 -05:00
..
bits Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
programs Narrowing the visibility of libc-internal.h even further. 2017-03-01 20:33:46 -05:00
broken_cur_max.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
C_name.c Update. 2001-04-06 17:49:18 +00:00
C-address.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
C-collate.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
C-ctype.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
C-identification.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
C-measurement.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
C-messages.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
C-monetary.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
C-name.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
C-numeric.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
C-paper.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
C-telephone.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
C-time.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
C-translit.h Regenerate locale/C-translit.h. 2015-12-09 22:24:26 -05:00
C-translit.h.in Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
categories.def Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
coll-lookup.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
coll-lookup.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
duplocale.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
elem-hash.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
findlocale.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
freelocale.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
gen-translit.pl Make shebang interpreter directives consistent 2016-01-07 04:03:21 -05:00
global-locale.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
hashval.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
indigits.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
indigitswc.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
iso-639.def localedata: sgs_LT: new locale [BZ #12450] 2016-05-01 15:18:04 -04:00
iso-3166.def Fix typos in 3166.def. 2013-10-04 18:51:42 -04:00
iso-4217.def localedata: CLDRv29: update LC_MONETARY int_curr_symbol & currency_symbol 2016-04-15 13:42:29 -04:00
langinfo.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lc-address.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lc-collate.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lc-ctype.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lc-identification.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lc-measurement.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lc-messages.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lc-monetary.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lc-name.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lc-numeric.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lc-paper.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lc-telephone.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lc-time.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
loadarchive.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
loadlocale.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
locale.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
localeconv.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
localeinfo.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
localename.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
locarchive.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
Makefile Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mb_cur_max.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
newlocale.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
nl_langinfo_l.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
nl_langinfo.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
outdigits.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
outdigitswc.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
setlocale.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strlen-hash.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
SYS_libc.c [BZ #284, BZ #721] 2005-02-17 01:19:55 +00:00
tst-C-locale.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tst-duplocale.c Add missing test files. 2009-11-17 16:23:57 -08:00
tst-locname.c Add missing test files. 2009-11-17 16:23:57 -08:00
uselocale.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
Versions * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change. 2003-03-03 09:45:25 +00:00
weight.h Narrowing the visibility of libc-internal.h even further. 2017-03-01 20:33:46 -05:00
weightwc.h Narrowing the visibility of libc-internal.h even further. 2017-03-01 20:33:46 -05:00
xlocale.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
xlocale.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00