Searched refs:dirp (Results 1 – 3 of 3) sorted by relevance
27 struct DIR *dirp = (struct DIR *)malloc(sizeof(struct DIR)); in opendir() local29 memset(dirp, 0, sizeof(struct DIR)); in opendir()30 dirp->fd = fd; in opendir()31 dirp->buf_len = DIR_BUF_SIZE; in opendir()32 dirp->buf_pos = 0; in opendir()34 return dirp; in opendir()50 int closedir(struct DIR *dirp) in closedir() argument52 int retval = close(dirp->fd); in closedir()53 free(dirp); in closedir()
58 int closedir(struct DIR *dirp);
37 ``int closedir(DIR *dirp)``