Lines Matching defs:dir
116 int tmpfs_closedir(struct Vnode *node, struct fs_dirent_s *dir);
117 int tmpfs_rewinddir(struct Vnode *vp, struct fs_dirent_s *dir);
128 int tmpfs_opendir(struct Vnode *vp, struct fs_dirent_s *dir);
129 int tmpfs_readdir(struct Vnode *vp, struct fs_dirent_s *dir);
1418 int tmpfs_opendir(struct Vnode *vp, struct fs_dirent_s *dir)
1425 DEBUGASSERT(vp != NULL && dir != NULL);
1467 dir->u.fs_dir = (fs_dir_s)tmp;
1482 int tmpfs_closedir(struct Vnode *vp, struct fs_dirent_s *dir)
1487 DEBUGASSERT(vp != NULL && dir != NULL);
1489 /* Get the directory structure from the dir argument */
1491 tmp = (struct fs_tmpfsdir_s *)dir->u.fs_dir;
1536 int tmpfs_readdir(struct Vnode *vp, struct fs_dirent_s *dir)
1545 DEBUGASSERT(vp != NULL && dir != NULL);
1547 /* Get the directory structure from the dir argument and lock it */
1549 tmp = (struct fs_tmpfsdir_s *)dir->u.fs_dir;
1606 dir->fd_dir[0].d_type = DT_DIR;
1612 dir->fd_dir[0].d_type = DT_REG;
1617 (void)strncpy_s(dir->fd_dir[0].d_name, NAME_MAX + 1, tde->tde_name, NAME_MAX);
1619 dir->fd_position++;
1620 dir->fd_dir[0].d_off = dir->fd_position;
1621 dir->fd_dir[0].d_reclen = (uint16_t)sizeof(struct dirent);
1634 int tmpfs_rewinddir(struct Vnode *vp, struct fs_dirent_s *dir)
1637 PRINT_DEBUG("vp: %p dir: %p\n", vp, dir);
1638 DEBUGASSERT(vp != NULL && dir != NULL);
1639 tmp = (struct fs_tmpfsdir_s *)dir->u.fs_dir;