summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/misc.h b/misc.h
index a307df3a0..b30fe4884 100644
--- a/misc.h
+++ b/misc.h
@@ -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 */
30int a2port(const char *s); 30int a2port(const char *s);
31 31
32/* code from scp.c/rcp.c */ 32/* code from scp.c/rcp.c */
33char *cleanhostname(char *host); 33char *cleanhostname(char *host);
34char *colon(char *cp); 34char *colon(char *cp);
35 35
36/* function to assist building execv() arguments */
37typedef struct arglist arglist;
38struct arglist {
39 char **list;
40 int num;
41 int nalloc;
42};
43
44void addargs(arglist *args, char *fmt, ...) __attribute__((format(printf, 2, 3)));
45
36/* wrapper for signal interface */ 46/* wrapper for signal interface */
37typedef void (*mysig_t)(int); 47typedef void (*mysig_t)(int);
38mysig_t mysignal(int sig, mysig_t act); 48mysig_t mysignal(int sig, mysig_t act);