aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2017-01-23 10:09:43 +0000
committernicm <nicm>2017-01-23 10:09:43 +0000
commit98e7fbb2acee0238381feea5d583fc439aae08e2 (patch)
tree8962da4c7e86b1dbb64438e14a7de69a0d58ed73 /tmux.h
parent4ede35c48c089abe3fca0d94dbeac44b2ac442a1 (diff)
downloadrtmux-98e7fbb2acee0238381feea5d583fc439aae08e2.tar.gz
rtmux-98e7fbb2acee0238381feea5d583fc439aae08e2.tar.bz2
rtmux-98e7fbb2acee0238381feea5d583fc439aae08e2.zip
Open /dev/ptm before pledge() and save it to be used for PTMGET later
(this means inlining forkpty()). ok deraadt
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index eb1660dd..2a26f10f 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1501,6 +1501,7 @@ extern struct options *global_w_options;
extern struct environ *global_environ;
extern struct timeval start_time;
extern const char *socket_path;
+extern int ptm_fd;
int areshell(const char *);
void setblocking(int, int);
const char *find_home(void);
@@ -2329,4 +2330,8 @@ void style_apply_update(struct grid_cell *, struct options *,
int style_equal(const struct grid_cell *,
const struct grid_cell *);
+/* pty.c */
+int pty_open(int *);
+pid_t pty_fork(int, int *, char *, size_t, struct winsize *);
+
#endif /* TMUX_H */