diff options
Diffstat (limited to 'misc.h')
-rw-r--r-- | misc.h | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: misc.h,v 1.5 2001/05/03 23:09:52 mouring Exp $ */ | 1 | /* $OpenBSD: misc.h,v 1.6 2001/05/08 19:45:24 mouring Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -28,11 +28,21 @@ struct passwd * pwcopy(struct passwd *pw); | |||
28 | * Return 0 if invalid. | 28 | * Return 0 if invalid. |
29 | */ | 29 | */ |
30 | int a2port(const char *s); | 30 | int a2port(const char *s); |
31 | 31 | ||
32 | /* code from scp.c/rcp.c */ | 32 | /* code from scp.c/rcp.c */ |
33 | char *cleanhostname(char *host); | 33 | char *cleanhostname(char *host); |
34 | char *colon(char *cp); | 34 | char *colon(char *cp); |
35 | 35 | ||
36 | /* function to assist building execv() arguments */ | ||
37 | typedef struct arglist arglist; | ||
38 | struct arglist { | ||
39 | char **list; | ||
40 | int num; | ||
41 | int nalloc; | ||
42 | }; | ||
43 | |||
44 | void addargs(arglist *args, char *fmt, ...) __attribute__((format(printf, 2, 3))); | ||
45 | |||
36 | /* wrapper for signal interface */ | 46 | /* wrapper for signal interface */ |
37 | typedef void (*mysig_t)(int); | 47 | typedef void (*mysig_t)(int); |
38 | mysig_t mysignal(int sig, mysig_t act); | 48 | mysig_t mysignal(int sig, mysig_t act); |