Luna/libos/src/Path.cpp
apio 3eb78aa5f3
All checks were successful
continuous-integration/drone/push Build is passing
libos+init: Add a new Path class to handle both file descriptors and file paths
2023-05-03 17:37:26 +02:00

21 lines
328 B
C++

#include <os/Path.h>
namespace os
{
Path::Path(const char* path) : m_dirfd(), m_name(path)
{
}
Path::Path(StringView path) : m_dirfd(), m_name(path)
{
}
Path::Path(int fd) : m_dirfd(fd), m_name()
{
}
Path::Path(int dirfd, StringView name) : m_dirfd(dirfd), m_name(name)
{
}
}