comparison scpmisc.h @ 4:fe6bca95afa7

Makefile.in contains updated files required
author Matt Johnston <matt@ucc.asn.au>
date Tue, 01 Jun 2004 02:46:09 +0000
parents
children b72f98803e46
comparison
equal deleted inserted replaced
-1:000000000000 4:fe6bca95afa7
1 /* $OpenBSD: misc.h,v 1.12 2002/03/19 10:49:35 markus Exp $ */
2
3 /*
4 * Author: Tatu Ylonen <[email protected]>
5 * Copyright (c) 1995 Tatu Ylonen <[email protected]>, Espoo, Finland
6 * All rights reserved
7 *
8 * As far as I am concerned, the code I have written for this software
9 * can be used freely for any purpose. Any derived versions of this
10 * software must be clearly marked as such, and if the derived work is
11 * incompatible with the protocol description in the RFC file, it must be
12 * called by a name other than "ssh" or "Secure Shell".
13 */
14
15 /* actually from atomicio, but is only used in scp code */
16 #define vwrite (ssize_t (*)(int, void *, size_t))write
17
18 char *chop(char *);
19 char *strdelim(char **);
20 void set_nonblock(int);
21 void unset_nonblock(int);
22 void set_nodelay(int);
23 int a2port(const char *);
24 char *cleanhostname(char *);
25 char *colon(char *);
26 long convtime(const char *);
27
28 struct passwd *pwcopy(struct passwd *);
29
30 typedef struct arglist arglist;
31 struct arglist {
32 char **list;
33 int num;
34 int nalloc;
35 };
36 void addargs(arglist *, char *, ...);
37
38 /* from xmalloc.h */
39 void *xmalloc(size_t);
40 void *xrealloc(void *, size_t);
41 void xfree(void *);
42 char *xstrdup(const char *);
43
44