version 1.135, 2020/10/18 11:21:59 |
version 1.136, 2020/10/18 11:32:02 |
|
|
continue; |
continue; |
} |
} |
if (set_nonblock(s) == -1) |
if (set_nonblock(s) == -1) |
fatal("%s: set_nonblock(%d)", __func__, s); |
fatal_f("set_nonblock(%d)", s); |
if (connect(s, ai->ai_addr, ai->ai_addrlen) == -1 && |
if (connect(s, ai->ai_addr, ai->ai_addrlen) == -1 && |
errno != EINPROGRESS) |
errno != EINPROGRESS) |
error("connect (`%s'): %s", host, strerror(errno)); |
error("connect (`%s'): %s", host, strerror(errno)); |
|
|
if (fdcon[s].c_status) |
if (fdcon[s].c_status) |
fatal("conalloc: attempt to reuse fdno %d", s); |
fatal("conalloc: attempt to reuse fdno %d", s); |
|
|
debug3("%s: oname %s kt %d", __func__, oname, keytype); |
debug3_f("oname %s kt %d", oname, keytype); |
fdcon[s].c_fd = s; |
fdcon[s].c_fd = s; |
fdcon[s].c_status = CS_CON; |
fdcon[s].c_status = CS_CON; |
fdcon[s].c_namebase = namebase; |
fdcon[s].c_namebase = namebase; |
|
|
if (argv[j] == NULL) |
if (argv[j] == NULL) |
fp = stdin; |
fp = stdin; |
else if ((fp = fopen(argv[j], "r")) == NULL) |
else if ((fp = fopen(argv[j], "r")) == NULL) |
fatal("%s: %s: %s", __progname, argv[j], |
fatal("%s: %s: %s", __progname, argv[j], strerror(errno)); |
strerror(errno)); |
|
|
|
while (getline(&line, &linesize, fp) != -1) { |
while (getline(&line, &linesize, fp) != -1) { |
/* Chomp off trailing whitespace and comments */ |
/* Chomp off trailing whitespace and comments */ |
|
|
} |
} |
|
|
if (ferror(fp)) |
if (ferror(fp)) |
fatal("%s: %s: %s", __progname, argv[j], |
fatal("%s: %s: %s", __progname, argv[j], strerror(errno)); |
strerror(errno)); |
|
|
|
fclose(fp); |
fclose(fp); |
} |
} |