]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
alpha: Add sysdep/unix/sysv/linux/alpha/creat.c.
authorRichard Henderson <rth@twiddle.net>
Fri, 26 Mar 2010 17:28:37 +0000 (10:28 -0700)
committerRichard Henderson <rth@twiddle.net>
Fri, 26 Mar 2010 20:17:52 +0000 (13:17 -0700)
Signed-off-by: Richard Henderson <rth@twiddle.net>
ChangeLog.alpha
sysdeps/unix/sysv/linux/alpha/creat.c [new file with mode: 0644]

index 948cdc69abd3ed33dc2cc5e3158e19c345d48d32..78ce8631a07f1f2403e47e0309c7e7c0642d42f7 100644 (file)
@@ -1,3 +1,7 @@
+2010-03-26  Richard Henderson  <rth@redhat.com>
+
+       * sysdep/unix/sysv/linux/alpha/creat.c: New.
+
 2010-03-26  Richard Henderson  <rth@redhat.com>
 
        * sysdep/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel)
diff --git a/sysdeps/unix/sysv/linux/alpha/creat.c b/sysdeps/unix/sysv/linux/alpha/creat.c
new file mode 100644 (file)
index 0000000..9e661ba
--- /dev/null
@@ -0,0 +1,8 @@
+/* sysdeps/unix/sysv/linux/wordsize-64/syscalls.list defines creat and
+   creat64 for most linux targets, but on alpha creat is not a syscall.
+   If we do nothing, we'll wind up with creat64 being undefined, because
+   the syscalls.list assumes the creat->creat64 alias was created.  We
+   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)