version 1.23, 2001/06/05 05:05:39 |
version 1.24, 2001/06/23 15:12:20 |
|
|
void (*errfun) (const char *,...); |
void (*errfun) (const char *,...); |
} Linebuf; |
} Linebuf; |
|
|
Linebuf * |
static Linebuf * |
Linebuf_alloc(const char *filename, void (*errfun) (const char *,...)) |
Linebuf_alloc(const char *filename, void (*errfun) (const char *,...)) |
{ |
{ |
Linebuf *lb; |
Linebuf *lb; |
|
|
return (lb); |
return (lb); |
} |
} |
|
|
void |
static void |
Linebuf_free(Linebuf * lb) |
Linebuf_free(Linebuf * lb) |
{ |
{ |
fclose(lb->stream); |
fclose(lb->stream); |
|
|
xfree(lb); |
xfree(lb); |
} |
} |
|
|
void |
#if 0 |
|
static void |
Linebuf_restart(Linebuf * lb) |
Linebuf_restart(Linebuf * lb) |
{ |
{ |
clearerr(lb->stream); |
clearerr(lb->stream); |
|
|
lb->lineno = 0; |
lb->lineno = 0; |
} |
} |
|
|
int |
static int |
Linebuf_lineno(Linebuf * lb) |
Linebuf_lineno(Linebuf * lb) |
{ |
{ |
return (lb->lineno); |
return (lb->lineno); |
} |
} |
|
#endif |
|
|
char * |
static char * |
Linebuf_getline(Linebuf * lb) |
Linebuf_getline(Linebuf * lb) |
{ |
{ |
int n = 0; |
int n = 0; |
|
|
} |
} |
} |
} |
|
|
int |
static int |
fdlim_get(int hard) |
fdlim_get(int hard) |
{ |
{ |
struct rlimit rlfd; |
struct rlimit rlfd; |
|
|
return hard ? rlfd.rlim_max : rlfd.rlim_cur; |
return hard ? rlfd.rlim_max : rlfd.rlim_cur; |
} |
} |
|
|
int |
static int |
fdlim_set(int lim) |
fdlim_set(int lim) |
{ |
{ |
struct rlimit rlfd; |
struct rlimit rlfd; |
|
|
* separators. This is the same as the 4.4BSD strsep, but different from the |
* separators. This is the same as the 4.4BSD strsep, but different from the |
* one in the GNU libc. |
* one in the GNU libc. |
*/ |
*/ |
char * |
static char * |
xstrsep(char **str, const char *delim) |
xstrsep(char **str, const char *delim) |
{ |
{ |
char *s, *e; |
char *s, *e; |
|
|
* Get the next non-null token (like GNU strsep). Strsep() will return a |
* Get the next non-null token (like GNU strsep). Strsep() will return a |
* null token for two adjacent separators, so we may have to loop. |
* null token for two adjacent separators, so we may have to loop. |
*/ |
*/ |
char * |
static char * |
strnnsep(char **stringp, char *delim) |
strnnsep(char **stringp, char *delim) |
{ |
{ |
char *tok; |
char *tok; |
|
|
return (tok); |
return (tok); |
} |
} |
|
|
void |
static void |
keyprint(char *host, char *output_name, char *kd, int len) |
keyprint(char *host, char *output_name, char *kd, int len) |
{ |
{ |
static Key *rsa; |
static Key *rsa; |
|
|
fputs("\n", stdout); |
fputs("\n", stdout); |
} |
} |
|
|
int |
static int |
tcpconnect(char *host) |
tcpconnect(char *host) |
{ |
{ |
struct addrinfo hints, *ai, *aitop; |
struct addrinfo hints, *ai, *aitop; |
|
|
return s; |
return s; |
} |
} |
|
|
int |
static int |
conalloc(char *iname, char *oname) |
conalloc(char *iname, char *oname) |
{ |
{ |
int s; |
int s; |
|
|
return (s); |
return (s); |
} |
} |
|
|
void |
static void |
confree(int s) |
confree(int s) |
{ |
{ |
if (s >= maxfd || fdcon[s].c_status == CS_UNUSED) |
if (s >= maxfd || fdcon[s].c_status == CS_UNUSED) |
|
|
ncon--; |
ncon--; |
} |
} |
|
|
void |
static void |
contouch(int s) |
contouch(int s) |
{ |
{ |
TAILQ_REMOVE(&tq, &fdcon[s], c_link); |
TAILQ_REMOVE(&tq, &fdcon[s], c_link); |
|
|
TAILQ_INSERT_TAIL(&tq, &fdcon[s], c_link); |
TAILQ_INSERT_TAIL(&tq, &fdcon[s], c_link); |
} |
} |
|
|
int |
static int |
conrecycle(int s) |
conrecycle(int s) |
{ |
{ |
int ret; |
int ret; |
|
|
return (ret); |
return (ret); |
} |
} |
|
|
void |
static void |
congreet(int s) |
congreet(int s) |
{ |
{ |
char buf[80], *cp; |
char buf[80], *cp; |
|
|
contouch(s); |
contouch(s); |
} |
} |
|
|
void |
static void |
conread(int s) |
conread(int s) |
{ |
{ |
int n; |
int n; |
|
|
contouch(s); |
contouch(s); |
} |
} |
|
|
void |
static void |
conloop(void) |
conloop(void) |
{ |
{ |
fd_set *r, *e; |
fd_set *r, *e; |
|
|
} |
} |
} |
} |
|
|
char * |
static char * |
nexthost(int argc, char **argv) |
nexthost(int argc, char **argv) |
{ |
{ |
static Linebuf *lb; |
static Linebuf *lb; |
|
|
} |
} |
} |
} |
|
|
void |
static void |
usage(void) |
usage(void) |
{ |
{ |
fatal("usage: %s [-t timeout] { [--] host | -f file } ...", __progname); |
fatal("usage: %s [-t timeout] { [--] host | -f file } ...", __progname); |