From b76a29a69ae5412c3c1d101eefa9562990e74407 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 7 Aug 2013 19:54:38 +0200 Subject: ConfigPath: return a Path object Migrate all callers to use Path directly, instead of doing the conversion in each caller. --- src/fs/FileSystem.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/fs') diff --git a/src/fs/FileSystem.hxx b/src/fs/FileSystem.hxx index 4df415e0a..aab5f3bfb 100644 --- a/src/fs/FileSystem.hxx +++ b/src/fs/FileSystem.hxx @@ -116,6 +116,12 @@ static inline bool RemoveFile(const Path &file) */ Path ReadLink(const Path &path); +static inline bool +MakeFifo(const Path &path, mode_t mode) +{ + return mkfifo(path.c_str(), mode) == 0; +} + /** * Wrapper for access() that uses #Path names. */ -- cgit v1.2.3