mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
62d011d0c0
These are needed by newer capnp. musl does the following: #define fallocate64 fallocate #define pwritev64 pwritev
17 lines
445 B
C
17 lines
445 B
C
#define _DEFAULT_SOURCE
|
|
#include <sys/uio.h>
|
|
#include <unistd.h>
|
|
#include <syscall.h>
|
|
#include "syscall.h"
|
|
|
|
ssize_t pwritev(int fd, const struct iovec *iov, int count, off_t ofs)
|
|
{
|
|
/// There was cancellable syscall (syscall_cp), but I don't care.
|
|
return syscall(SYS_pwritev, fd, iov, count, (long)(ofs), (long)(ofs>>32));
|
|
}
|
|
|
|
ssize_t pwritev64(int fd, const struct iovec *iov, int count, off_t ofs)
|
|
{
|
|
return pwritev(fd, iov, count, ofs);
|
|
}
|