diff options
author | Benjamin Barenblat <bbaren@mit.edu> | 2016-02-18 23:34:57 -0500 |
---|---|---|
committer | Benjamin Barenblat <bbaren@mit.edu> | 2016-02-18 23:34:57 -0500 |
commit | c743c7f8a871e0bff340db732e2a3203c5ae7f17 (patch) | |
tree | 54e14677ef5d3954ecaa094a281d6e2790a1be17 /src/posix_extras.h | |
parent | 31f07c69ab50373dfab170360ee570b882703abc (diff) |
Implement open, creat, and close
Diffstat (limited to 'src/posix_extras.h')
-rw-r--r-- | src/posix_extras.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/posix_extras.h b/src/posix_extras.h index 9498249..9aea47d 100644 --- a/src/posix_extras.h +++ b/src/posix_extras.h @@ -72,6 +72,7 @@ class Directory { class File { public: File(const char* path, int flags); + File(const char* path, int flags, mode_t mode); File(const File&); File(File&& other) = default; virtual ~File() noexcept; @@ -88,6 +89,7 @@ class File { // Calls openat(2) on the path relative to the file descriptor. The path must // indeed be relative (i.e., it must not start with '/'). File OpenAt(const char* path, int flags) const; + File OpenAt(const char* path, int flags, mode_t mode) const; private: File() {} |