Lines Matching refs:spec

137 static enum tryret nfs_tryproto(struct addrinfo *ai, char *hostp, char *spec,
147 char *host, *mntname, *p, *spec, *tmp; in main() local
444 spec = *argv++; in main()
472 if (!getnfsargs(&spec, &host, &iov, &iovlen)) in main()
490 } else if (mountmode != V4 && !add_mtab(host, spec)) { in main()
492 warnx("can't update %s for %s:%s", PATH_MOUNTTAB, host, spec); in main()
587 char *hostp, *delimp, *errstr, *spec; in getnfsargs() local
592 spec = *specp; in getnfsargs()
593 if (*spec == '[' && (delimp = strchr(spec + 1, ']')) != NULL && in getnfsargs()
595 hostp = spec + 1; in getnfsargs()
596 spec = delimp + 2; in getnfsargs()
598 } else if ((delimp = strrchr(spec, ':')) != NULL) { in getnfsargs()
599 hostp = spec; in getnfsargs()
600 spec = delimp + 1; in getnfsargs()
601 } else if ((delimp = strrchr(spec, '@')) != NULL) { in getnfsargs()
615 for (speclen = strlen(spec); in getnfsargs()
616 speclen > 1 && spec[speclen - 1] == '/'; in getnfsargs()
618 spec[speclen - 1] = '\0'; in getnfsargs()
619 if (strlen(hostp) + strlen(spec) + 1 > MNAMELEN) { in getnfsargs()
620 warnx("%s:%s: %s", hostp, spec, strerror(ENAMETOOLONG)); in getnfsargs()
633 memmove(nam + len + offset, spec, speclen); in getnfsargs()
651 hostp, spec); in getnfsargs()
702 ret = nfs_tryproto(ai, hostp, spec, &errstr, iov, in getnfsargs()
727 hostp, spec); in getnfsargs()
743 *specp = spec; in getnfsargs()
761 nfs_tryproto(struct addrinfo *ai, char *hostp, char *spec, char **errstr, in nfs_tryproto() argument
844 netid, hostp, spec, in nfs_tryproto()
856 hostp, spec, clnt_spcreateerror("nfsd: RPCPROG_NFS")); in nfs_tryproto()
871 spec); in nfs_tryproto()
888 hostp, spec, clnt_sperror(clp, "NFSPROC_NULL")); in nfs_tryproto()
915 build_iovec(iov, iovlen, "dirpath", spec, (size_t)-1); in nfs_tryproto()
962 hostp, spec, clnt_spcreateerror("RPCMNT: clnt_create")); in nfs_tryproto()
969 clntstat = clnt_call(clp, MOUNTPROC_MNT, (xdrproc_t)xdr_dir, spec, in nfs_tryproto()
981 hostp, spec, clnt_sperror(clp, "RPCPROG_MNT")); in nfs_tryproto()
990 hostp, spec, strerror(nfhret.stat)); in nfs_tryproto()