summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2017-01-23 10:09:44 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2017-01-23 10:09:44 +0000
commitced88da0dc83010e18f769ef688c6a47066f388c (patch)
tree641ae7b6f3a38e3108f664a31129223eb2cb9b04 /usr.bin/tmux/tmux.h
parent265625d34efc350951296863b5c8e155153434f6 (diff)
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 */