From c743c7f8a871e0bff340db732e2a3203c5ae7f17 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Thu, 18 Feb 2016 23:34:57 -0500 Subject: Implement open, creat, and close --- src/posix_extras.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/posix_extras.h') 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() {} -- cgit v1.2.3