summaryrefslogtreecommitdiff
path: root/src/basic/terminal-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-01 20:12:25 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-01 20:40:24 +0200
commita07c35c3e65c16264cb25206c2d564afdbae8a28 (patch)
tree74542a753a9d2fd696446ee42a4d337d6767f6e4 /src/basic/terminal-util.h
parent395745ba533ac91fe118f43ec83f13a752c0b473 (diff)
machined: introduce a ptsname_namespace() call and make use of it
The call is like ptsname() but does not assume the pty path was accessible in the local namespace. It uses the same internal ioctl though.
Diffstat (limited to 'src/basic/terminal-util.h')
-rw-r--r--src/basic/terminal-util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/terminal-util.h b/src/basic/terminal-util.h
index 188714f228..b9a3809a6c 100644
--- a/src/basic/terminal-util.h
+++ b/src/basic/terminal-util.h
@@ -107,3 +107,5 @@ int get_ctty(pid_t, dev_t *_devnr, char **r);
int getttyname_malloc(int fd, char **r);
int getttyname_harder(int fd, char **r);
+
+int ptsname_namespace(int pty, char **ret);