Limit spellcheck feedback to approximately 10 MB.
[chromium-blink-merge.git] / base / android / fifo_utils.h
blob1936defaf6e74c49b43c19a42375d8c697c3b2d0
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_
8 #include <stdio.h>
10 #include "base/base_export.h"
11 #include "base/basictypes.h"
13 namespace base {
15 class FilePath;
17 namespace android {
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,
26 const FilePath& path,
27 const char* mode);
29 } // namespace android
30 } // namespace base
32 #endif // BASE_ANDROID_FIFO_UTILS_H_