Luna/libos/src/Path.cpp
apio bc07cc94cb
All checks were successful
continuous-integration/drone/push Build is passing
libos: Document it entirely using Doxygen comments =D
Also, add copyright information to individual files. This is going to be a hassle to do for EVERY file.
2023-06-09 22:45:06 +02:00

30 lines
481 B
C++

/**
* @file Path.cpp
* @author apio (cloudapio.eu)
* @brief Dirfd-friendly Path class.
*
* @copyright Copyright (c) 2023, the Luna authors.
*
*/
#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)
{
}
}