summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-01-23 10:09:43 +0000
committernicm <nicm@openbsd.org>2017-01-23 10:09:43 +0000
commitb6ec3d9f760fdd32867a62fe96cf8f207cf15eb8 (patch)
tree42161e73feb1dca4ce955c8f2678b01b22442cb5 /usr.bin/tmux/tmux.h
parentcheck EAGAIN in the correct place, (diff)
downloadwireguard-openbsd-b6ec3d9f760fdd32867a62fe96cf8f207cf15eb8.tar.xz
wireguard-openbsd-b6ec3d9f760fdd32867a62fe96cf8f207cf15eb8.zip
Open /dev/ptm before pledge() and save it to be used for PTMGET later
(this means inlining forkpty()). ok deraadt
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r--usr.bin/tmux/tmux.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index 143c8e41793..68dd635f522 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.701 2017/01/18 10:08:05 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.702 2017/01/23 10:09:43 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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 */