projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
qsort: add a short comment about the algorithm
[oweals/musl.git]
/
src
/
unistd
/
pwrite.c
diff --git
a/src/unistd/pwrite.c
b/src/unistd/pwrite.c
index 56ed6b4c47d71c8a144398f19fa03b25ba948596..4bf3d7dfcdaa1171fab942005fee289a35cd59f8 100644
(file)
--- a/
src/unistd/pwrite.c
+++ b/
src/unistd/pwrite.c
@@
-4,11
+4,7
@@
ssize_t pwrite(int fd, const void *buf, size_t size, off_t ofs)
{
ssize_t pwrite(int fd, const void *buf, size_t size, off_t ofs)
{
- ssize_t r;
- CANCELPT_BEGIN;
- r = syscall5(__NR_pwrite, fd, (long)buf, size, SYSCALL_LL(ofs));
- CANCELPT_END;
- return r;
+ return syscall_cp(SYS_pwrite, fd, buf, size, __SYSCALL_LL_PRW(ofs));
}
LFS64(pwrite);
}
LFS64(pwrite);