Rename bits/stdio-lock.h to stdio-lock.h (bug 14912).
authorJoseph Myers <joseph@codesourcery.com>
Fri, 4 Sep 2015 16:21:14 +0000 (16:21 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 4 Sep 2015 16:21:14 +0000 (16:21 +0000)
commit81503d1e4449fdb334ad343f4ddc05891c6b4190
tree7a16671eb543edb24c014630dbc4dcfc7b0b70de
parent0f4341fbec937b26b34e0ee80ab903825c0c76d0
Rename bits/stdio-lock.h to stdio-lock.h (bug 14912).

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/stdio-lock.h to plain stdio-lock.h to follow
that convention.

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

[BZ #14912]
* bits/stdio-lock.h: Move to ...
* sysdeps/generic/stdio-lock.h: ...here.
(_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
* sysdeps/nptl/bits/stdio-lock.h: Move to ...
* sysdeps/nptl/stdio-lock.h: ...here.
(_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
* include/libio.h: Include <stdio-lock.h> instead of
<bits/stdio-lock.h>.
* sysdeps/nptl/fork.c: Likewise.
* sysdeps/pthread/flockfile.c: Likewise.
* sysdeps/pthread/ftrylockfile.c: Likewise.
* sysdeps/pthread/funlockfile.c: Likewise.
ChangeLog
include/libio.h
sysdeps/generic/stdio-lock.h [moved from bits/stdio-lock.h with 95% similarity]
sysdeps/nptl/fork.c
sysdeps/nptl/stdio-lock.h [moved from sysdeps/nptl/bits/stdio-lock.h with 97% similarity]
sysdeps/pthread/flockfile.c
sysdeps/pthread/ftrylockfile.c
sysdeps/pthread/funlockfile.c