Commit c0611d70 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 2f29643e
......@@ -31,7 +31,8 @@
namespace os {
tuple<File, error> open(const string &path, int flags, mode_t mode) {
File f = {._fd = -1, .path = path};
File f;
f._path = path;
f._fd = ::open(path.c_str(), flags, mode);
error err;
if (f._fd == -1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment