version 1.18, 2015/08/20 22:32:42 |
version 1.19, 2015/11/17 15:01:28 |
|
|
#include <string.h> |
#include <string.h> |
#include <unistd.h> |
#include <unistd.h> |
#include <vis.h> |
#include <vis.h> |
|
#include <err.h> |
|
|
/* Constant defs */ |
/* Constant defs */ |
#define ALL 1 |
#define ALL 1 |
|
|
char *host; |
char *host; |
int ch, clnt_sock; |
int ch, clnt_sock; |
|
|
|
if (pledge("stdio rpath inet dns", NULL) == -1) |
|
err(1, "pledge"); |
|
|
while ((ch = getopt(argc, argv, "ade3")) != -1) |
while ((ch = getopt(argc, argv, "ade3")) != -1) |
switch (ch) { |
switch (ch) { |
case 'a': |
case 'a': |
|
|
} |
} |
timeout.tv_sec = 30; |
timeout.tv_sec = 30; |
timeout.tv_usec = 0; |
timeout.tv_usec = 0; |
|
|
|
if (pledge("stdio rpath", NULL) == -1) |
|
err(1, "pledge"); |
|
|
if (rpcs & DODUMP) { |
if (rpcs & DODUMP) { |
estat = clnt_call(client, RPCMNT_DUMP, xdr_void, (char *)0, |
estat = clnt_call(client, RPCMNT_DUMP, xdr_void, (char *)0, |