Lines Matching defs:ping
68 (void) fprintf(stderr, gettext(" -p ncall ping <host>\n"));
229 char *cp, *ping;
237 ping = NULL;
268 ping = optarg;
423 if (strlen(ping) >= sizeof (nodeinfo.nc_nodename)) {
426 progname, ping);
430 if (strcmp(nodes[0].nc_nodename, ping) == 0) {
435 /* strlen(ping) checked above */
436 (void) strcpy(nodeinfo.nc_nodename, ping);
440 /* model the ping messages on ping(1m) */
444 gettext("%s: unable to ping host '%s': %s\n"),
445 progname, ping, strerror(errno));
448 (void) printf(gettext("%s is alive\n"), ping);
450 (void) printf(gettext("no answer from %s\n"), ping);