X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/blobdiff_plain/89aa792b82340b7c0b0914a1fc282c97f3c2f694..6367063f5f9df10d9c7d11977daf6694cad956e7:/misc.h diff --git a/misc.h b/misc.h index 01a736c0..fc564527 100644 --- a/misc.h +++ b/misc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.h,v 1.7 2001/05/11 14:59:56 markus Exp $ */ +/* $OpenBSD: misc.h,v 1.10 2001/06/26 17:27:24 markus Exp $ */ /* * Author: Tatu Ylonen @@ -11,38 +11,25 @@ * incompatible with the protocol description in the RFC file, it must be * called by a name other than "ssh" or "Secure Shell". */ -/* remove newline at end of string */ -char *chop(char *s); -/* return next token in configuration line */ -char *strdelim(char **s); +char *chop(char *); +char *strdelim(char **); +void set_nonblock(int); +void unset_nonblock(int); +int a2port(const char *); +char *cleanhostname(char *); +char *colon(char *); +long convtime(const char *); -/* set/unset filedescriptor to non-blocking */ -void set_nonblock(int fd); -void unset_nonblock(int fd); +struct passwd *pwcopy(struct passwd *); -struct passwd * pwcopy(struct passwd *pw); - -/* - * Convert ASCII string to TCP/IP port number. - * Port must be >0 and <=65535. - * Return 0 if invalid. - */ -int a2port(const char *s); - -/* code from scp.c/rcp.c */ -char *cleanhostname(char *host); -char *colon(char *cp); - -/* function to assist building execv() arguments */ typedef struct arglist arglist; struct arglist { char **list; int num; int nalloc; }; - -void addargs(arglist *args, char *fmt, ...) __attribute__((format(printf, 2, 3))); +void addargs(arglist *, char *, ...) __attribute__((format(printf, 2, 3))); /* wrapper for signal interface */ typedef void (*mysig_t)(int);