OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 SERVICES_NATIVE_SUPPORT_MAKE_PTY_PAIR_H_ |
| 6 #define SERVICES_NATIVE_SUPPORT_MAKE_PTY_PAIR_H_ |
| 7 |
| 8 #include <memory> |
| 9 #include <vector> |
| 10 |
| 11 #include "base/files/scoped_file.h" |
| 12 |
| 13 namespace native_support { |
| 14 |
| 15 // Makes a pseudoterminal master-slave pair of FDs. Returns true on success and |
| 16 // false on failure in which case it sets |*errno_value| appropriately (and |
| 17 // touches neither |master_fd| nor |slave_fd|). |
| 18 bool MakePtyPair(base::ScopedFD* master_fd, |
| 19 base::ScopedFD* slave_fd, |
| 20 int* errno_value); |
| 21 |
| 22 } // namespace native_support |
| 23 |
| 24 #endif // SERVICES_NATIVE_SUPPORT_MAKE_PTY_PAIR_H_ |
OLD | NEW |