the arm syscall abi requires 64-bit arguments to be aligned on an even register boundary. these new macros facilitate meeting the abi requirement without imposing significant ugliness on the code.
11 lines
212 B
C
11 lines
212 B
C
#include <unistd.h>
|
|
#include "syscall.h"
|
|
#include "libc.h"
|
|
|
|
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));
|
|
}
|
|
|
|
LFS64(pwrite);
|