Lines Matching refs:currfd
444 struct nfs_iodesc *currfd;
506 currfd = malloc(sizeof(*newfd));
507 if (currfd == NULL) {
513 bcopy(&nfs_root_node, currfd, sizeof(*currfd));
533 if (currfd->fa.fa_type != htonl(NFDIR)) {
540 newfd->iodesc = currfd->iodesc;
560 error = nfs_lookupfh(currfd, ncp, newfd);
593 bcopy(&nfs_root_node, currfd, sizeof(*currfd));
601 free(currfd);
602 currfd = newfd;
612 currfd->iodesc = desc;
614 error = nfs_lookupfh(&nfs_root_node, upath, currfd);
617 currfd->off = 0;
618 f->f_fsdata = (void *)currfd;
627 free(currfd);
1086 struct nfs_iodesc *currfd;
1151 currfd = malloc(sizeof(*newfd));
1152 if (currfd == NULL) {
1157 bcopy(&nfs_root_node, currfd, sizeof(*currfd));
1177 if (currfd->fa.fa_type != htonl(NFDIR)) {
1188 newfd->iodesc = currfd->iodesc;
1208 error = nfs_lookupfh(currfd, ncp, newfd);
1241 bcopy(&nfs_root_node, currfd, sizeof(*currfd));
1249 free(currfd);
1250 currfd = newfd;
1260 currfd->iodesc = desc;
1262 error = nfs_lookupfh(&nfs_root_node, upath, currfd);
1265 currfd->off = 0;
1266 currfd->cookie = 0;
1267 f->f_fsdata = (void *)currfd;
1276 free(currfd);