~ubuntu-branches/debian/lenny/dropbear/lenny

« back to all changes in this revision

Viewing changes to scpmisc.h

  • Committer: Bazaar Package Importer
  • Author(s): Gerrit Pape
  • Date: 2006-04-16 16:16:40 UTC
  • mfrom: (1.3.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060416161640-ypmemhromnxg3tle
Tags: 0.48.1-1
* new upstream point release.
  * Compile fix for scp
* debian/diff/dbclient.1.diff: new: document -R option to dbclient
  accurately (thx Markus Schaber; closes: #351882).
* debian/dropbear.README.Debian: document a workaround for systems with
  possibly blocking /dev/random device (closes: #355414)..

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
        int     nalloc;
35
35
};
36
36
void     addargs(arglist *, char *, ...);
 
37
void     replacearg(arglist *, u_int, char *, ...);
 
38
void     freeargs(arglist *);
37
39
 
38
40
/* from xmalloc.h */
39
41
void    *xmalloc(size_t);
41
43
void     xfree(void *);
42
44
char    *xstrdup(const char *);
43
45
 
 
46
char *ssh_get_progname(char *);
 
47
void fatal(char* fmt,...);
 
48
void sanitise_stdfd(void);
 
49
 
 
50
/* Required for non-BSD platforms, from OpenSSH's defines.h */
 
51
#ifndef timersub
 
52
#define timersub(a, b, result)                  \
 
53
   do {                             \
 
54
      (result)->tv_sec = (a)->tv_sec - (b)->tv_sec;     \
 
55
      (result)->tv_usec = (a)->tv_usec - (b)->tv_usec;      \
 
56
      if ((result)->tv_usec < 0) {              \
 
57
     --(result)->tv_sec;                    \
 
58
     (result)->tv_usec += 1000000;              \
 
59
      }                             \
 
60
   } while (0)
 
61
#endif
 
62
 
 
63
#ifndef TIMEVAL_TO_TIMESPEC
 
64
#define TIMEVAL_TO_TIMESPEC(tv, ts) {                   \
 
65
    (ts)->tv_sec = (tv)->tv_sec;                    \
 
66
    (ts)->tv_nsec = (tv)->tv_usec * 1000;               \
 
67
}
 
68
#endif
44
69