projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
getservbyport_r: fix out-of-bounds buffer read
[musl]
/
src
/
unistd
/
pwrite.c
diff --git
a/src/unistd/pwrite.c
b/src/unistd/pwrite.c
index
c4d3aff
..
869b69f
100644
(file)
--- a/
src/unistd/pwrite.c
+++ b/
src/unistd/pwrite.c
@@
-1,14
+1,7
@@
#include <unistd.h>
#include "syscall.h"
#include <unistd.h>
#include "syscall.h"
-#include "libc.h"
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 = syscall(__NR_pwrite, fd, buf, size, __SYSCALL_LL(ofs));
- CANCELPT_END;
- return r;
+ return syscall_cp(SYS_pwrite, fd, buf, size, __SYSCALL_LL_PRW(ofs));
}
}
-
-LFS64(pwrite);