#pragma once
#include <folly/portability/Config.h>
#include <folly/portability/IOVec.h>
#include <folly/portability/SysTypes.h>
#if FOLLY_HAVE_PREADV || FOLLY_HAVE_PWRITEV
#include <sys/uio.h>
#endif
namespace folly {
#if !FOLLY_HAVE_PREADV
ssize_t preadv(int fd, const iovec* iov, int count, off_t offset);
#else
preadv;
#endif
#if !FOLLY_HAVE_PWRITEV
ssize_t pwritev(int fd, const iovec* iov, int count, off_t offset);
#else
pwritev;
#endif
}
#ifdef _WIN32
extern "C" ssize_t readv(int fd, const iovec* iov, int count);
extern "C" ssize_t writev(int fd, const iovec* iov, int count);
#endif
namespace folly {
#ifdef IOV_MAX
constexpr size_t kIovMax = …;
#else
constexpr size_t kIovMax = UIO_MAXIOV;
#endif
}