diff --git a/include/ircd/fs/fd.h b/include/ircd/fs/fd.h index b9715ef71..6c0316563 100644 --- a/include/ircd/fs/fd.h +++ b/include/ircd/fs/fd.h @@ -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; diff --git a/ircd/fs.cc b/ircd/fs.cc index efd439af2..6c3fe76f4 100644 --- a/ircd/fs.cc +++ b/ircd/fs.cc @@ -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{}} {