aboutsummaryrefslogtreecommitdiff
path: root/src/unistd
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2016-08-11 18:36:46 -0400
committerRich Felker <dalias@aerifal.cx>2016-08-11 18:36:46 -0400
commit7cc3a28eed7e3b72a1ce4568fb55154bb0540726 (patch)
treee26aaecd58946d49e6648a4788fbb7ddc6c1ef43 /src/unistd
parent39494a273eaa6b714e0fa0c59ce7a1f5fbc80a1e (diff)
downloadmusl-7cc3a28eed7e3b72a1ce4568fb55154bb0540726.zip
musl-7cc3a28eed7e3b72a1ce4568fb55154bb0540726.tar.gz
musl-7cc3a28eed7e3b72a1ce4568fb55154bb0540726.tar.bz2
fix pread/pwrite syscall calling convention on sh
despite sh not generally using register-pair alignment for 64-bit syscall arguments, there are arch-specific versions of the syscall entry points for pread and pwrite which include a dummy argument for alignment before the 64-bit offset argument.
Diffstat (limited to 'src/unistd')
-rw-r--r--src/unistd/pread.c2
-rw-r--r--src/unistd/pwrite.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/unistd/pread.c b/src/unistd/pread.c
index 3d2799f..5483eb9 100644
--- a/src/unistd/pread.c
+++ b/src/unistd/pread.c
@@ -4,7 +4,7 @@
ssize_t pread(int fd, void *buf, size_t size, off_t ofs)
{
- return syscall_cp(SYS_pread, fd, buf, size, __SYSCALL_LL_O(ofs));
+ return syscall_cp(SYS_pread, fd, buf, size, __SYSCALL_LL_PRW(ofs));
}
LFS64(pread);
diff --git a/src/unistd/pwrite.c b/src/unistd/pwrite.c
index bbe4c34..4bf3d7d 100644
--- a/src/unistd/pwrite.c
+++ b/src/unistd/pwrite.c
@@ -4,7 +4,7 @@
ssize_t pwrite(int fd, const void *buf, size_t size, off_t ofs)
{
- return syscall_cp(SYS_pwrite, fd, buf, size, __SYSCALL_LL_O(ofs));
+ return syscall_cp(SYS_pwrite, fd, buf, size, __SYSCALL_LL_PRW(ofs));
}
LFS64(pwrite);