Home
last modified time | relevance | path

Searched refs:hostp (Results 1 – 13 of 13) sorted by relevance

/freebsd-9-stable/usr.sbin/rpc.umntall/
Dmounttab.c55 add_mtab(char *hostp, char *dirp) in add_mtab() argument
63 (long)time(NULL), hostp, dirp); in add_mtab()
76 char *hostp, *dirp, *cp; in read_mtab() local
103 hostp = strsep(&cp, " \t\n"); in read_mtab()
104 if (hostp == NULL || *hostp == '\0') { in read_mtab()
105 badline("host", hostp); in read_mtab()
125 memmove(mtabp->mtab_host, hostp, MNTNAMLEN); in read_mtab()
186 clean_mtab(char *hostp, char *dirp, int verbose) in clean_mtab() argument
192 host = strdup(hostp); in clean_mtab()
/freebsd-9-stable/contrib/ipfilter/lib/
Dgethost.c13 int gethost(name, hostp) in gethost() argument
15 u_32_t *hostp;
22 *hostp = htonl(0xfedcba98);
33 *hostp = addr;
40 *hostp = (u_32_t)htonl(n->n_net & 0xffffffff);
/freebsd-9-stable/sbin/mount_nfs/
Dmount_nfs.c143 static enum tryret nfs_tryproto(struct addrinfo *ai, char *hostp, char *spec,
730 char *hostp, *delimp, *errstr; in getnfsargs() local
736 hostp = spec + 1; in getnfsargs()
740 hostp = spec; in getnfsargs()
744 hostp = delimp + 1; in getnfsargs()
760 if (strlen(hostp) + strlen(spec) + 1 > MNAMELEN) { in getnfsargs()
761 warnx("%s:%s: %s", hostp, spec, strerror(ENAMETOOLONG)); in getnfsargs()
765 if (*hostp != '\0') { in getnfsargs()
766 len = strlen(hostp); in getnfsargs()
770 memmove(nam + offset, hostp, len); in getnfsargs()
[all …]
/freebsd-9-stable/sbin/umount/
Dumount.c319 char *hostp, *delimp; in umountfs() local
323 hostp = NULL; in umountfs()
334 hostp = nfsdirname + 1; in umountfs()
337 hostp = nfsdirname; in umountfs()
340 if (hostp != NULL) { in umountfs()
342 getaddrinfo(hostp, NULL, &hints, &ai); in umountfs()
397 clp = clnt_create(hostp, MOUNTPROG, MOUNTVERS, "udp"); in umountfs()
399 warnx("%s: %s", hostp, in umountfs()
410 warnx("%s: %s", hostp, in umountfs()
419 clean_mtab(hostp, nfsdirname, vflag); in umountfs()
[all …]
/freebsd-9-stable/contrib/telnet/telnet/
Dcommands.c2178 char *cmd, *hostp = 0, *portp = 0, *user = 0; in tn() local
2222 if (hostp == 0) { in tn()
2223 hostp = *argv++; in tn()
2237 if (hostp == 0) in tn()
2258 if (hostp[0] == '/') { in tn()
2261 if (strlen(hostp) >= sizeof(su.sun_path)) { in tn()
2263 hostp); in tn()
2266 hostname = hostp; in tn()
2269 strncpy(su.sun_path, hostp, sizeof su.sun_path); in tn()
2270 printf("Trying %s...\n", hostp); in tn()
[all …]
/freebsd-9-stable/crypto/heimdal/appl/telnet/telnet/
Dcommands.c2077 char *cmd, *hostp = 0, *portp = 0; in tn() local
2113 if (hostp == 0) { in tn()
2114 hostp = *argv++; in tn()
2127 if (hostp == 0) in tn()
2130 strlcpy (_hostname, hostp, sizeof(_hostname)); in tn()
2131 hostp = _hostname; in tn()
2132 if (hostp[0] == '@' || hostp[0] == '!') { in tn()
2135 for (p = hostp + 1; *p; p++) { in tn()
2140 fprintf(stderr, "%s: bad source route specification\n", hostp); in tn()
2145 hostname = hostp; in tn()
[all …]
/freebsd-9-stable/crypto/openssh/
Dssh.c324 resolve_canonicalize(char **hostp, int port) in resolve_canonicalize() argument
343 for (cp = *hostp; *cp != '\0'; cp++) { in resolve_canonicalize()
349 __func__, *hostp, options.canonicalize_max_dots); in resolve_canonicalize()
355 xasprintf(&fullhost, "%s.%s.", *hostp, in resolve_canonicalize()
358 *hostp, fullhost); in resolve_canonicalize()
369 *hostp, fullhost); in resolve_canonicalize()
371 free(*hostp); in resolve_canonicalize()
372 *hostp = fullhost; in resolve_canonicalize()
376 fatal("%s: Could not resolve host \"%s\"", __progname, *hostp); in resolve_canonicalize()
377 debug2("%s: host %s not found in any suffix", __func__, *hostp); in resolve_canonicalize()
Dsshconnect.c838 char hostline[1000], *hostp, *fp, *ra; in check_host_key() local
1021 hostp = hostline; in check_host_key()
1037 hostp = host; in check_host_key()
1045 "list of known hosts.", hostp, type); in check_host_key()
/freebsd-9-stable/libexec/revnetgroup/
Dparse_netgroup.c124 __getnetgrent(char **hostp, char **userp, char **domp) in __getnetgrent() argument
127 *hostp = nextgrp->ng_str[NG_HOST]; in __getnetgrent()
/freebsd-9-stable/usr.sbin/faithd/
Dftp.c889 char *afp, *hostp, *portp; in ftp_copycommand() local
926 hostp = p; in ftp_copycommand()
953 error = getaddrinfo(hostp, portp, &hints, &res); in ftp_copycommand()
965 "501 EPRT: %s resolved to multiple addresses\r\n", hostp); in ftp_copycommand()
/freebsd-9-stable/lib/libc/gen/
Dgetnetgrent.c218 getnetgrent(char **hostp, char **userp, char **domp) argument
225 *hostp = nextgrp->ng_str[NG_HOST];
/freebsd-9-stable/contrib/sendmail/src/
Dparseaddr.c1966 char **hostp; local
2016 hostp = ++tv;
2020 hostp = NULL;
2032 if (tv == hostp)
2033 hostp = NULL;
2034 else if (hostp != NULL)
2035 cataddr(hostp, tv - 1, hbuf, sizeof(hbuf), '\0', false);
2047 if (hostp != NULL)
2122 if (hostp == NULL)
/freebsd-9-stable/usr.sbin/mountd/
Dmountd.c180 void del_mlist(char *hostp, char *dirp);
2948 del_mlist(char *hostp, char *dirp) in del_mlist() argument
2958 if (!strcmp(mlp->ml_host, hostp) && in del_mlist()
2984 add_mlist(char *hostp, char *dirp) in add_mlist() argument
2992 if (!strcmp(mlp->ml_host, hostp) && !strcmp(mlp->ml_dirp, dirp)) in add_mlist()
3000 strncpy(mlp->ml_host, hostp, MNTNAMLEN); in add_mlist()