Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Side by Side Diff: services/native_support/make_pty_pair.h

Issue 1321253010: Add a "native_support" service. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: fix android? Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/native_support/main.cc ('k') | services/native_support/make_pty_pair.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « services/native_support/main.cc ('k') | services/native_support/make_pty_pair.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698