version 1.132, 2011/09/16 15:39:26 |
version 1.132.2.2, 2013/01/23 00:06:37 |
Line 111 __RCSID("$NetBSD$"); |
|
Line 111 __RCSID("$NetBSD$"); |
|
|
|
#include <ctype.h> |
#include <ctype.h> |
#include <err.h> |
#include <err.h> |
|
#include <errno.h> |
#include <glob.h> |
#include <glob.h> |
#include <limits.h> |
#include <limits.h> |
#include <netdb.h> |
#include <netdb.h> |
|
|
reget(int argc, char *argv[]) |
reget(int argc, char *argv[]) |
{ |
{ |
|
|
(void)getit(argc, argv, 1, "r+"); |
(void)getit(argc, argv, 1, restart_point ? "r+" : "a"); |
} |
} |
|
|
void |
void |
get(int argc, char *argv[]) |
get(int argc, char *argv[]) |
{ |
{ |
|
|
(void)getit(argc, argv, 0, restart_point ? "r+" : "w" ); |
(void)getit(argc, argv, 0, restart_point ? "r+" : "w"); |
} |
} |
|
|
/* |
/* |
Line 612 getit(int argc, char *argv[], int restar |
|
Line 613 getit(int argc, char *argv[], int restar |
|
ret = stat(locfile, &stbuf); |
ret = stat(locfile, &stbuf); |
if (restartit == 1) { |
if (restartit == 1) { |
if (ret < 0) { |
if (ret < 0) { |
warn("Can't stat `%s'", locfile); |
if (errno != ENOENT) { |
goto freegetit; |
warn("Can't stat `%s'", locfile); |
|
goto freegetit; |
|
} |
|
restart_point = 0; |
} |
} |
restart_point = stbuf.st_size; |
else |
|
restart_point = stbuf.st_size; |
} else { |
} else { |
if (ret == 0) { |
if (ret == 0) { |
time_t mtime; |
time_t mtime; |
Line 2670 setoption(int argc, char *argv[]) |
|
Line 2675 setoption(int argc, char *argv[]) |
|
return; |
return; |
} |
} |
|
|
#define OPTIONINDENT ((int) sizeof("http_proxy")) |
#define OPTIONINDENT ((int) sizeof("https_proxy")) |
if (argc == 1) { |
if (argc == 1) { |
for (o = optiontab; o->name != NULL; o++) { |
for (o = optiontab; o->name != NULL; o++) { |
fprintf(ttyout, "%-*s\t%s\n", OPTIONINDENT, |
fprintf(ttyout, "%-*s\t%s\n", OPTIONINDENT, |