Lines Matching full: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
591 spec = *specp; in getnfsargs()
592 if (*spec == '[' && (delimp = strchr(spec + 1, ']')) != NULL && in getnfsargs()
594 hostp = spec + 1; in getnfsargs()
595 spec = delimp + 2; in getnfsargs()
597 } else if ((delimp = strrchr(spec, ':')) != NULL) { in getnfsargs()
598 hostp = spec; in getnfsargs()
599 spec = delimp + 1; in getnfsargs()
600 } else if ((delimp = strrchr(spec, '@')) != NULL) { in getnfsargs()
614 for (speclen = strlen(spec); in getnfsargs()
615 speclen > 1 && spec[speclen - 1] == '/'; in getnfsargs()
617 spec[speclen - 1] = '\0'; in getnfsargs()
618 if (strlen(hostp) + strlen(spec) + 1 > MNAMELEN) { in getnfsargs()
619 warnx("%s:%s: %s", hostp, spec, strerror(ENAMETOOLONG)); in getnfsargs()
632 memmove(nam + len + offset, spec, speclen); in getnfsargs()
673 hostp, spec); in getnfsargs()
693 ret = nfs_tryproto(ai, hostp, spec, &errstr, iov, in getnfsargs()
718 hostp, spec); in getnfsargs()
734 *specp = spec; in getnfsargs()
752 nfs_tryproto(struct addrinfo *ai, char *hostp, char *spec, char **errstr, in nfs_tryproto() argument
835 netid, hostp, spec, in nfs_tryproto()
847 hostp, spec, clnt_spcreateerror("nfsd: RPCPROG_NFS")); in nfs_tryproto()
862 spec); in nfs_tryproto()
879 hostp, spec, clnt_sperror(clp, "NFSPROC_NULL")); in nfs_tryproto()
906 build_iovec(iov, iovlen, "dirpath", spec, (size_t)-1); in nfs_tryproto()
953 hostp, spec, clnt_spcreateerror("RPCMNT: clnt_create")); in nfs_tryproto()
960 clntstat = clnt_call(clp, MOUNTPROC_MNT, (xdrproc_t)xdr_dir, spec, in nfs_tryproto()
972 hostp, spec, clnt_sperror(clp, "RPCPROG_MNT")); in nfs_tryproto()
981 hostp, spec, strerror(nfhret.stat)); in nfs_tryproto()