+2014-10-30 Joseph Myers <joseph@codesourcery.com>
+
+ * 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.
+
2014-10-29 Carlos O'Donell <carlos@redhat.com>
* manual/llio.texi: Add comments discussing why write() may be
extern int __libc_open64 (const char *file, int oflag, ...);
extern int __libc_open (const char *file, int oflag, ...);
libc_hidden_proto (__libc_open)
-extern int __libc_creat (const char *file, mode_t mode);
extern int __libc_fcntl (int fd, int cmd, ...);
#ifndef NO_CANCELLATION
extern int __fcntl_nocancel (int fd, int cmd, ...) attribute_hidden;
/* Create FILE with protections MODE. */
int
-__libc_creat (file, mode)
+creat (file, mode)
const char *file;
mode_t mode;
{
return __open (file, O_WRONLY|O_CREAT|O_TRUNC, mode);
}
-weak_alias (__libc_creat, creat)
/* __open handles cancellation. */
LIBC_CANCEL_HANDLED ();
could have overridden that with a create64.c, but we might as well do
the right thing and set up creat64 as an alias. */
#include <io/creat.c>
-weak_alias(__libc_creat, creat64)
+weak_alias(creat, creat64)
/* Create FILE with protections MODE. */
int
-__libc_creat (const char *file, mode_t mode)
+creat (const char *file, mode_t mode)
{
return __open (file, O_WRONLY | O_CREAT | O_TRUNC, mode);
}
-weak_alias (__libc_creat, creat)
/* __open handles cancellation. */
LIBC_CANCEL_HANDLED ();
#if __WORDSIZE == 64
-weak_alias (__libc_creat, creat64)
+weak_alias (creat, creat64)
#endif
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
readahead - readahead i:iii __readahead readahead
sendfile - sendfile i:iipi sendfile sendfile64
sync_file_range - sync_file_range Ci:iiii sync_file_range
-creat - creat Ci:si __libc_creat creat creat64
+creat - creat Ci:si creat creat64
open - open Ci:siv __libc_open __open open __open64 open64
prlimit EXTRA prlimit64 i:iipp prlimit prlimit64