summaryrefslogtreecommitdiffhomepage
path: root/test/util/pty_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/util/pty_util.h')
-rw-r--r--test/util/pty_util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/util/pty_util.h b/test/util/pty_util.h
index 367b14f15..0722da379 100644
--- a/test/util/pty_util.h
+++ b/test/util/pty_util.h
@@ -24,6 +24,9 @@ namespace testing {
// Opens the slave end of the passed master as R/W and nonblocking.
PosixErrorOr<FileDescriptor> OpenSlave(const FileDescriptor& master);
+// Get the number of the slave end of the master.
+PosixErrorOr<int> SlaveID(const FileDescriptor& master);
+
} // namespace testing
} // namespace gvisor