17#ifndef TOOLBOX_IO_FILE_HPP
18#define TOOLBOX_IO_FILE_HPP
24#include <toolbox/contrib/libutil.h>
98inline int remove(
const char* path, std::error_code&
ec)
noexcept
108inline std::pair<FileHandle, FileHandle>
pipe2(
int flags, std::error_code&
ec)
noexcept
186 return read(fd,
static_cast<void*
>(
buf.data()), buffer_size(
buf),
ec);
192 return read(fd,
static_cast<void*
>(
buf.data()), buffer_size(
buf));
218 return write(fd,
static_cast<const void*
>(
buf.data()), buffer_size(
buf),
ec);
224 return write(fd,
static_cast<const void*
>(
buf.data()), buffer_size(
buf));
228inline int fcntl(
int fd,
int cmd, std::error_code&
ec)
noexcept
238template <
typename ArgT>
259template <
typename ArgT>