Home
last modified time | relevance | path

Searched refs:dirp (Results 1 – 3 of 3) sorted by relevance

/DragonOS-0.1.3/user/libs/libc/src/
Ddirent.c27 struct DIR *dirp = (struct DIR *)malloc(sizeof(struct DIR)); in opendir() local
29 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() argument
52 int retval = close(dirp->fd); in closedir()
53 free(dirp); in closedir()
/DragonOS-0.1.3/user/libs/libc/src/include/
Ddirent.h61 int closedir(struct DIR *dirp);
/DragonOS-0.1.3/docs/userland/libc/apis/api-list/
Ddirent.md37 ``int closedir(DIR *dirp)``