0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd::fs: Add fd fdno ctor.

This commit is contained in:
Jason Volk 2019-03-31 23:57:35 -07:00
parent dab225113d
commit f7dc5f6146
2 changed files with 6 additions and 0 deletions

View file

@ -34,6 +34,7 @@ struct ircd::fs::fd
operator bool() const;
bool operator!() const;
explicit fd(const int &);
fd(const string_view &path, const opts &);
fd(const string_view &path);
fd() = default;

View file

@ -1252,6 +1252,11 @@ ircd::fs::fd::opts::opts(const std::ios::openmode &mode)
// fd::fd
//
ircd::fs::fd::fd(const int &fdno)
:fdno{fdno}
{
}
ircd::fs::fd::fd(const string_view &path)
:fd{path, opts{}}
{