diff options
Diffstat (limited to 'misc.h')
-rw-r--r-- | misc.h | 22 |
1 files changed, 21 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: misc.h,v 1.61 2016/11/30 00:28:31 dtucker Exp $ */ | 1 | /* $OpenBSD: misc.h,v 1.63 2017/08/18 05:48:04 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -16,6 +16,7 @@ | |||
16 | #define _MISC_H | 16 | #define _MISC_H |
17 | 17 | ||
18 | #include <sys/time.h> | 18 | #include <sys/time.h> |
19 | #include <sys/types.h> | ||
19 | 20 | ||
20 | /* Data structure for representing a forwarding request. */ | 21 | /* Data structure for representing a forwarding request. */ |
21 | struct Forward { | 22 | struct Forward { |
@@ -132,6 +133,25 @@ int parse_ipqos(const char *); | |||
132 | const char *iptos2str(int); | 133 | const char *iptos2str(int); |
133 | void mktemp_proto(char *, size_t); | 134 | void mktemp_proto(char *, size_t); |
134 | 135 | ||
136 | void child_set_env(char ***envp, u_int *envsizep, const char *name, | ||
137 | const char *value); | ||
138 | |||
139 | int argv_split(const char *, int *, char ***); | ||
140 | char *argv_assemble(int, char **argv); | ||
141 | int exited_cleanly(pid_t, const char *, const char *, int); | ||
142 | |||
143 | #define SSH_SUBPROCESS_STDOUT_DISCARD (1) /* Discard stdout */ | ||
144 | #define SSH_SUBPROCESS_STDOUT_CAPTURE (1<<1) /* Redirect stdout */ | ||
145 | #define SSH_SUBPROCESS_STDERR_DISCARD (1<<2) /* Discard stderr */ | ||
146 | pid_t subprocess(const char *, struct passwd *, | ||
147 | const char *, int, char **, FILE **, u_int flags); | ||
148 | |||
149 | struct stat; | ||
150 | int safe_path(const char *, struct stat *, const char *, uid_t, | ||
151 | char *, size_t); | ||
152 | int safe_path_fd(int, const char *, struct passwd *, | ||
153 | char *err, size_t errlen); | ||
154 | |||
135 | /* readpass.c */ | 155 | /* readpass.c */ |
136 | 156 | ||
137 | #define RP_ECHO 0x0001 | 157 | #define RP_ECHO 0x0001 |