]> andersk Git - openssh.git/blobdiff - misc.h
- markus@cvs.openbsd.org 2001/06/26 17:27:25
[openssh.git] / misc.h
diff --git a/misc.h b/misc.h
index 829208d29afb44f17e133e760be264a1765fb6e8..5f0b0aa4f9ca343b0fc5c923c782c746b596b36f 100644 (file)
--- a/misc.h
+++ b/misc.h
@@ -1,4 +1,4 @@
-/*     $OpenBSD: misc.h,v 1.9 2001/06/26 06:32:56 itojun Exp $ */
+/*     $OpenBSD: misc.h,v 1.10 2001/06/26 17:27:24 markus Exp $        */
 
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * 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 *);
 
-/* return next token in configuration line */
-char   *strdelim(char **);
+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);
-void   unset_nonblock(int);
-
-struct passwd * pwcopy(struct passwd *);
-
-/*
- * Convert ASCII string to TCP/IP port number.
- * Port must be >0 and <=65535.
- * Return 0 if invalid.
- */
-int a2port(const char *);
-
-/* code from scp.c/rcp.c */
-char *cleanhostname(char *);
-char *colon(char *);
-
-/*
- * Convert a time string into seconds; format is
- * a sequence of:
- *     time[qualifier]
- *
- * Valid time qualifiers are:
- *     <none>  seconds
- *     s|S     seconds
- *     m|M     minutes
- *     h|H     hours
- *     d|D     days
- *     w|W     weeks
- *
- * Examples:
- *     90m     90 minutes
- *     1h30m   90 minutes
- *     2d      2 days
- *     1w      1 week
- *
- * Return -1 if time string is invalid.
- */
-
-long convtime(const char *);
-
-/* function to assist building execv() arguments */
 typedef struct arglist arglist;
 struct arglist {
         char    **list;
@@ -66,7 +28,7 @@ struct arglist {
         int     nalloc;
 };
 
-void addargs(arglist *, char *, ...) __attribute__((format(printf, 2, 3)));
+void   addargs(arglist *, char *, ...) __attribute__((format(printf, 2, 3)));
 
 /* wrapper for signal interface */
 typedef void (*mysig_t)(int);
This page took 0.038219 seconds and 4 git commands to generate.