1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef BASE_ANDROID_FIFO_UTILS_H_
6 #define BASE_ANDROID_FIFO_UTILS_H_
10 #include "base/base_export.h"
11 #include "base/basictypes.h"
19 // Creates a fifo at the given |path| with POSIX permissions set to |mode|,
20 // returning true if it was successfully created and permissions were set.
21 BASE_EXPORT
bool CreateFIFO(const FilePath
& path
, int mode
);
23 // Redirects the |stream| to the file provided by |path| with |mode|
24 // permissions, returning true if successful.
25 BASE_EXPORT
bool RedirectStream(FILE* stream
,
29 } // namespace android
32 #endif // BASE_ANDROID_FIFO_UTILS_H_