Lines Matching refs:dirp
51 register DIR* dirp = 0;
59 !(dirp = freedirp ? freedirp :
68 if (dirp)
70 if (!freedirp) freedirp = dirp;
71 else free(dirp);
76 dirp->dd_fd = fd;
77 dirp->dd_loc = dirp->dd_size = 0; /* refill needed */
79 dirp->dd_buf = (void*)((char*)dirp + sizeof(DIR));
81 return(dirp);
85 closedir(register DIR* dirp)
87 if (dirp)
89 close(dirp->dd_fd);
90 if (!freedirp) freedirp = dirp;
91 else free(dirp);