aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2010-03-26 10:28:37 -0700
committerRichard Henderson <rth@twiddle.net>2010-03-26 13:17:52 -0700
commitc7b880234d57e2c09cb7d4c8e9bf155ec15077a3 (patch)
treeb725d9d06747e47573ddd9a52e9544e862acf627
parenta9374d8174c2191b0cac73baf4a30a919f84443e (diff)
downloadglibc-c7b880234d57e2c09cb7d4c8e9bf155ec15077a3.tar.xz
glibc-c7b880234d57e2c09cb7d4c8e9bf155ec15077a3.zip
alpha: Add sysdep/unix/sysv/linux/alpha/creat.c.
Signed-off-by: Richard Henderson <rth@twiddle.net>
-rw-r--r--ChangeLog.alpha4
-rw-r--r--sysdeps/unix/sysv/linux/alpha/creat.c8
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog.alpha b/ChangeLog.alpha
index 948cdc69ab..78ce8631a0 100644
--- a/ChangeLog.alpha
+++ b/ChangeLog.alpha
@@ -1,5 +1,9 @@
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)
Adjust the test for gcc 4.5.
* sysdep/alpha/elf/configure: Rebuild.
diff --git a/sysdeps/unix/sysv/linux/alpha/creat.c b/sysdeps/unix/sysv/linux/alpha/creat.c
new file mode 100644
index 0000000000..9e661bab04
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/alpha/creat.c
@@ -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)