Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 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. | |
| 4 | |
| 5 #ifndef BASE_ANDROID_FIFO_UTILS_H_ | |
| 6 #define BASE_ANDROID_FIFO_UTILS_H_ | |
| 7 | |
| 8 #include <stdio.h> | |
| 9 | |
| 10 #include "base/base_export.h" | |
| 11 #include "base/basictypes.h" | |
| 12 | |
| 13 namespace base { | |
| 14 | |
| 15 class FilePath; | |
| 16 | |
| 17 namespace android { | |
| 18 | |
| 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); | |
|
scherkus (not reviewing)
2013/06/07 21:30:57
I felt that the base/ variants of the tests functi
| |
| 22 | |
| 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); | |
| 28 | |
| 29 } // namespace android | |
| 30 } // namespace base | |
| 31 | |
| 32 #endif // BASE_ANDROID_FIFO_UTILS_H_ | |
| OLD | NEW |