diff options
author | Joseph Myers <joseph@codesourcery.com> | 2014-10-30 19:44:31 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2014-10-30 19:44:31 +0000 |
commit | d4e157aaaead89474366f58fa57e035441a2bd8b (patch) | |
tree | 1763af19644312b12c733d2e71cf349d09765014 /sysdeps/unix/sysv/linux/syscalls.list | |
parent | 0c6891a0037dae32d512970690502227f856fa20 (diff) | |
download | glibc-d4e157aaaead89474366f58fa57e035441a2bd8b.tar glibc-d4e157aaaead89474366f58fa57e035441a2bd8b.tar.gz glibc-d4e157aaaead89474366f58fa57e035441a2bd8b.tar.bz2 glibc-d4e157aaaead89474366f58fa57e035441a2bd8b.zip |
Remove __libc_creat function name.
glibc has lots of __libc_* function names that no longer serve any
purpose (are not used for any calls or exported at a public symbol
version). This patch removes __libc_creat. It has the effect of
creat becoming a strong symbol instead of a weak symbol in various
cases, but that's fine; in shared libraries it doesn't matter at all,
while for static linking the only other symbol sometimes defined in
the same object is creat64, and whenever creat64 is a reserved name so
is creat.
Other such cases of unnecessary __libc_* symbols are expected to be
dealt with in separate patches over time.
Tested for x86_64 (testsuite, and that the disassembly of installed
shared libraries is unchanged by the patch).
* include/fcntl.h (__libc_creat): Remove declaration.
* io/creat.c (__libc_creat): Rename to creat.
(creat): Do not define as alias.
* sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
of creat instead of __libc_creat.
* sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
to creat.
(creat): Do not define as alias.
[__WORDSIZE == 64] (creat64): Define as alias of creat instead of
__libc_creat.
* sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
__libc_creat name.
* sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
Likewise.
Diffstat (limited to 'sysdeps/unix/sysv/linux/syscalls.list')
-rw-r--r-- | sysdeps/unix/sysv/linux/syscalls.list | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/syscalls.list b/sysdeps/unix/sysv/linux/syscalls.list index a0b8de80a6..a9e5c7b782 100644 --- a/sysdeps/unix/sysv/linux/syscalls.list +++ b/sysdeps/unix/sysv/linux/syscalls.list @@ -6,7 +6,7 @@ bdflush EXTRA bdflush i:ii bdflush capget EXTRA capget i:pp capget capset EXTRA capset i:pp capset clock_adjtime EXTRA clock_adjtime i:ip clock_adjtime -creat - creat Ci:si __libc_creat creat +creat - creat Ci:si creat create_module EXTRA create_module 3 create_module delete_module EXTRA delete_module 3 delete_module epoll_create EXTRA epoll_create i:i epoll_create |