summaryrefslogtreecommitdiffstats
path: root/libc/arch-sh
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2010-07-08 16:52:27 -0700
committerDavid 'Digit' Turner <digit@google.com>2010-07-08 16:52:27 -0700
commitab8b54101eed0a4b92ebf8fa6994cd1b4f22d8f4 (patch)
tree938dc20fe75d7fcedb7c11c7c44f68aa783463e7 /libc/arch-sh
parentd466780c7cedb41edcf13f28ad900556c6aaa5b2 (diff)
downloadbionic-ab8b54101eed0a4b92ebf8fa6994cd1b4f22d8f4.zip
bionic-ab8b54101eed0a4b92ebf8fa6994cd1b4f22d8f4.tar.gz
bionic-ab8b54101eed0a4b92ebf8fa6994cd1b4f22d8f4.tar.bz2
libc: fix fstatfs() implementation.
The syscall expects the size of the buffer as the second argument. Change-Id: I99ede2fec7fcd385ca03ff022c2cffa4297bea8d
Diffstat (limited to 'libc/arch-sh')
-rw-r--r--libc/arch-sh/syscalls.mk2
-rw-r--r--libc/arch-sh/syscalls/__fstatfs64.S (renamed from libc/arch-sh/syscalls/fstatfs.S)6
2 files changed, 4 insertions, 4 deletions
diff --git a/libc/arch-sh/syscalls.mk b/libc/arch-sh/syscalls.mk
index a8a151a..ddae8d3 100644
--- a/libc/arch-sh/syscalls.mk
+++ b/libc/arch-sh/syscalls.mk
@@ -77,7 +77,7 @@ syscall_src += arch-sh/syscalls/fsync.S
syscall_src += arch-sh/syscalls/fchown.S
syscall_src += arch-sh/syscalls/sync.S
syscall_src += arch-sh/syscalls/__fcntl64.S
-syscall_src += arch-sh/syscalls/fstatfs.S
+syscall_src += arch-sh/syscalls/__fstatfs64.S
syscall_src += arch-sh/syscalls/sendfile.S
syscall_src += arch-sh/syscalls/fstatat.S
syscall_src += arch-sh/syscalls/mkdirat.S
diff --git a/libc/arch-sh/syscalls/fstatfs.S b/libc/arch-sh/syscalls/__fstatfs64.S
index 6adb2cb..dcf1d80 100644
--- a/libc/arch-sh/syscalls/fstatfs.S
+++ b/libc/arch-sh/syscalls/__fstatfs64.S
@@ -2,11 +2,11 @@
#include <sys/linux-syscalls.h>
.text
- .type fstatfs, @function
- .globl fstatfs
+ .type __fstatfs64, @function
+ .globl __fstatfs64
.align 4
-fstatfs:
+__fstatfs64:
/* invoke trap */
mov.l 0f, r3 /* trap num */