aboutsummaryrefslogtreecommitdiff
path: root/src/posix_extras.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/posix_extras.h')
-rw-r--r--src/posix_extras.h2
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() {}