#include <fcntl.h>
#include <unistd.h>
+#include <sys/file.h>
#include <folly/Exception.h>
#include <folly/FileUtil.h>
ownsFd_ = true;
}
+File::File(const std::string& name, int flags, mode_t mode)
+ : File(name.c_str(), flags, mode) {}
+
+File::File(StringPiece name, int flags, mode_t mode)
+ : File(name.str(), flags, mode) {}
+
File::File(File&& other) noexcept
: fd_(other.fd_)
, ownsFd_(other.ownsFd_) {