From 5b48d597690bff2ecfccc71a66b9812e2bc98f03 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 3 Mar 2015 22:29:09 +0100 Subject: system/FileDescriptor: add "mode" parameter to Open() --- src/system/FileDescriptor.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/system/FileDescriptor.hxx') diff --git a/src/system/FileDescriptor.hxx b/src/system/FileDescriptor.hxx index 37657332b..673462389 100644 --- a/src/system/FileDescriptor.hxx +++ b/src/system/FileDescriptor.hxx @@ -90,7 +90,7 @@ public: return FileDescriptor(-1); } - bool Open(const char *pathname, int flags); + bool Open(const char *pathname, int flags, mode_t mode=0666); bool OpenReadOnly(const char *pathname); #ifndef WIN32 -- cgit v1.2.3