summaryrefslogtreecommitdiff
path: root/lib/libc/unistd/pwrite.c
blob: 8c2e66f09384b1f2d637b9176b7ac217ea0e730a (plain)
1
2
3
4
5
6
7
#include <syscall.h> // for __NR_pwrite, __syscall_4, syscall
#include <unistd.h>  // for off_t, pwrite, size_t, ssize_t

ssize_t pwrite(int fildes, const void *buf, size_t nbyte, off_t offset)
{
	return syscall(pwrite, fildes, buf, nbyte, offset);
}