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:
parent
dab225113d
commit
f7dc5f6146
2 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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{}}
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue