1 /* $NetBSD: supextern.h,v 1.21 2009/10/16 12:41:37 christos Exp $ */
6 unsigned int atoo(char *);
9 int expand(char *, char **, int);
12 ssize_t
ffilecopy(FILE *, FILE *);
15 ssize_t
filecopy(int, int );
19 void logquit(int, const char *, ...)
20 __attribute__((__format__(__printf__
, 2, 3)));
21 void logerr(const char *, ...)
22 __attribute__((__format__(__printf__
, 1, 2))) ;
23 void loginfo(const char *, ...)
24 __attribute__((__format__(__printf__
, 1, 2)));
26 void logdeny(const char *, ...)
27 __attribute__((__format__(__printf__
, 1, 2)));
28 void logallow(const char *, ...)
29 __attribute__((__format__(__printf__
, 1, 2)));
35 void decode(char *, char *, int);
36 void encode(char *, char *, int);
39 char *nxtarg(char **, const char *);
42 void path(char *, char *, char *);
45 void quit(int, const char *, ...)
46 __attribute__((__format__(__printf__
, 2, 3)));
49 char *read_line(FILE *, size_t *, size_t *, const char[3], int);
53 int runv(char *, char **);
54 int runp(char *, ...);
55 int runvp(char *, char **);
56 int runio(char *const[], const char *, const char *, const char *);
57 int runiofd(char *const[], const int, const int, const int);
60 char *estrdup(const char *);
63 int getrelease(char *);
64 void makescanlists(void);
65 void getscanlists(void);
66 void cdprefix(char *);
69 int servicesetup(char *, int);
71 int serviceprep(void);
72 int servicekill(void);
74 int dobackoff(int *, int *);
75 int request(char *, char *, int *);
77 const char *remotehost(void);
80 int matchhost(char *);
81 int scmerr(int, const char *, ...)
82 __attribute__((__format__(__printf__
, 2, 3)));
89 int writestring(char *);
92 int writemint(int, int );
93 int writemstr(int, char *);
94 int prereadcount(int *);
100 int readstring(char **);
103 int readmint(int, int *);
104 int readmstr(int, char **);
105 void crosspatch(void);
108 char *skipto(const char *, const char *);
109 char *skipover(const char *, const char *);
113 TREE
*Tinsert(TREE
**, const char *, int);
114 TREE
*Tsearch(TREE
*, const char *);
115 TREE
*Tlookup(TREE
*, const char *);
116 int Trprocess(TREE
*, int (*)(TREE
*, void *), void *);
117 int Tprocess(TREE
*, int (*)(TREE
*, void *), void *);
118 void Tprint(TREE
*, char *);
121 int getonehost(TREE
*, void *);
122 TREE
*getcollhost(int *, int *, long *, int *);
124 int signon(TREE
*, int, int *);
127 void listfiles(void);
128 void recvfiles(void);
129 int prepare(char *, int, int *, struct stat
*);
130 int recvdir(TREE
*, int, struct stat
*);
131 int recvsym(TREE
*, int, struct stat
*);
132 int recvreg(TREE
*, int, struct stat
*);
133 int copyfile(char *, char *);
135 void done(int, const char *, ...)
136 __attribute__((__format__(__printf__
, 2, 3)));
137 void goaway(const char *, ...)
138 __attribute__((__format__(__printf__
, 1, 2)));
142 int establishdir(char *);
143 int makedir(char *, unsigned int, struct stat
*);
144 int estabd(char *, char *);
145 void ugconvert(char *, char *, int *, int *, int *);
146 void notify(const char *, ...)
147 __attribute__((__format__(__printf__
, 1, 2)));
149 char *fmttime(time_t);
155 int parsecoll(COLLECTION
*, char *, char *);
156 time_t getwhen(char *, char *);
157 int putwhen(char *, time_t);
161 int msgsignonack(void);
163 int msgsetupack(void);
165 int msgcryptok(void);
173 int msgrecv(int (*)(TREE
*, va_list), ...);
177 int msgcompress(void);
180 /* XXX already in system headers included already - but with different
181 argument declarations! */
183 int vprintf(const char *, va_list);
184 int vfprintf(FILE *, const char *, va_list);
185 int vsprintf(char *, const char *, va_list);
186 int vsnprintf(char *, size_t, const char *, va_list);