17#ifndef TOOLBOX_IO_FILE_HPP
18#define TOOLBOX_IO_FILE_HPP
23#include <toolbox/contrib/libutil.h>
97inline int remove(
const char* path, std::error_code&
ec)
noexcept
107inline std::pair<FileHandle, FileHandle>
pipe2(
int flags, std::error_code&
ec)
noexcept
185 return read(fd,
static_cast<void*
>(
buf.data()), buffer_size(
buf),
ec);
191 return read(fd,
static_cast<void*
>(
buf.data()), buffer_size(
buf));
217 return write(fd,
static_cast<const void*
>(
buf.data()), buffer_size(
buf),
ec);
223 return write(fd,
static_cast<const void*
>(
buf.data()), buffer_size(
buf));
227inline int fcntl(
int fd,
int cmd, std::error_code&
ec)
noexcept
237template <
typename ArgT>
258template <
typename ArgT>