blob: 0a16dcb6be662c14ea3a98fd7d41d98c7fe3629d [file] [log] [blame]
#include "sys.hpp"
#include <fcntl.h>
#include <unistd.h>
namespace binstore
{
namespace internal
{
int SysImpl::open(const char* pathname, int flags) const
{
return ::open(pathname, flags);
}
int SysImpl::close(int fd) const
{
return ::close(fd);
}
off_t SysImpl::lseek(int fd, off_t offset, int whence) const
{
return ::lseek(fd, offset, whence);
}
ssize_t SysImpl::read(int fd, void* buf, size_t count) const
{
return ::read(fd, buf, count);
}
ssize_t SysImpl::write(int fd, const void* buf, size_t count) const
{
return ::write(fd, buf, count);
}
SysImpl sys_impl;
} // namespace internal
} // namespace binstore