85 static void verify_clnt_init(
void)
88 msg_panic(
"verify_clnt_init: multiple initialization");
124 if (
msg_verbose || count > 1 || (errno && errno != EPIPE && errno != ENOENT))
125 msg_warn(
"problem talking to service %s: %m",
133 return (request_status);
165 if (
msg_verbose || (errno != EPIPE && errno != ENOENT))
166 msg_warn(
"problem talking to service %s: %m",
174 return (request_status);
192 #define STR(x) vstring_str(x)
199 static void query(
char *query,
VSTRING *buf)
218 static void update(
char *query)
249 int main(
int argc,
char **argv)
256 signal(SIGPIPE, SIG_IGN);
265 while ((ch =
GETOPT(argc, argv,
"v")) > 0) {
274 if (argc - optind > 1)
281 if (strcmp(command,
"query") == 0)
283 else if (strcmp(command,
"update") == 0)
286 msg_warn(
"unrecognized command: %s", command);
#define vstring_fgets_nonl(s, p)
VSTREAM * clnt_stream_access(CLNT_STREAM *clnt_stream)
NORETURN msg_panic(const char *fmt,...)
#define ATTR_FLAG_MISSING
int main(int argc, char **argv)
#define RECV_ATTR_INT(name, val)
char * var_verify_service
char * mystrtok(char **src, const char *sep)
void mail_conf_read(void)
int verify_clnt_query(const char *addr, int *addr_status, VSTRING *why)
CLNT_STREAM * clnt_stream_create(const char *class, const char *service, int timeout, int ttl)
VSTREAM * vstream_printf(const char *fmt,...)
void msg_warn(const char *fmt,...)
VSTRING * vstring_alloc(ssize_t len)
#define SEND_ATTR_INT(name, val)
NORETURN msg_fatal(const char *fmt,...)
int vstream_fflush(VSTREAM *stream)
#define GETOPT(argc, argv, str)
#define MAIL_ATTR_ADDR_STATUS
VSTRING * vstring_free(VSTRING *vp)
void msg_vstream_init(const char *name, VSTREAM *vp)
int verify_clnt_update(const char *addr, int addr_status, const char *why)
void clnt_stream_recover(CLNT_STREAM *clnt_stream)
#define SEND_ATTR_STR(name, val)
#define MAIL_CLASS_PRIVATE
#define RECV_ATTR_STR(name, val)
void msg_info(const char *fmt,...)