dir 91 include/ipc/fs.h char dir[PATH_MAX]; /* mount directory */ dir 260 usr/bin/ls/ls.c DIR *dir; dir 268 usr/bin/ls/ls.c dir = opendir(path); dir 269 usr/bin/ls/ls.c if (dir == NULL) dir 275 usr/bin/ls/ls.c entry = readdir(dir); dir 295 usr/bin/ls/ls.c closedir(dir); dir 39 usr/lib/libc/stdio/tempnam.c tempnam(dir, pfx) dir 40 usr/lib/libc/stdio/tempnam.c const char *dir, *pfx; dir 58 usr/lib/libc/stdio/tempnam.c if ((/* LINTED */f = (char *)dir) != NULL) { dir 39 usr/lib/posix/file/closedir.c closedir(DIR *dir) dir 44 usr/lib/posix/file/closedir.c m.data[0] = dir->dd_fd; dir 47 usr/lib/posix/file/closedir.c free(dir); dir 39 usr/lib/posix/file/mount.c mount(const char *dev, const char *dir, const char *fs, int flags, dir 45 usr/lib/posix/file/mount.c strlcpy(m.dir, (char *)dir, PATH_MAX); dir 44 usr/lib/posix/file/opendir.c struct _dirdesc *dir; dir 46 usr/lib/posix/file/opendir.c if ((dir = malloc(sizeof(struct _dirdesc))) == NULL) dir 53 usr/lib/posix/file/opendir.c dir->dd_fd = m.fd; dir 54 usr/lib/posix/file/opendir.c return dir; dir 40 usr/lib/posix/file/readdir.c readdir(DIR *dir) dir 43 usr/lib/posix/file/readdir.c struct dirent *entry = &dir->dd_ent; dir 46 usr/lib/posix/file/readdir.c m.fd = dir->dd_fd; dir 50 usr/lib/posix/file/readdir.c return &dir->dd_ent; dir 39 usr/lib/posix/file/rewinddir.c rewinddir(DIR *dir) dir 44 usr/lib/posix/file/rewinddir.c m.data[0] = dir->dd_fd; dir 40 usr/lib/posix/file/umount.c umount(const char *dir) dir 45 usr/lib/posix/file/umount.c strlcpy(m.path, (char *)dir, PATH_MAX); dir 284 usr/server/fs/arfs/arfs_vnops.c arfs_readdir(vnode_t vp, file_t fp, struct dirent *dir) dir 328 usr/server/fs/arfs/arfs_vnops.c strlcpy((char *)&dir->d_name, (char *)&hdr->ar_name, dir 329 usr/server/fs/arfs/arfs_vnops.c sizeof(dir->d_name)); dir 330 usr/server/fs/arfs/arfs_vnops.c dir->d_namlen = (uint16_t)strlen(dir->d_name); dir 331 usr/server/fs/arfs/arfs_vnops.c dir->d_fileno = (uint32_t)fp->f_offset; dir 332 usr/server/fs/arfs/arfs_vnops.c dir->d_type = DT_REG; dir 229 usr/server/fs/devfs/devfs_vnops.c devfs_readdir(vnode_t vp, file_t fp, struct dirent *dir) dir 245 usr/server/fs/devfs/devfs_vnops.c dir->d_type = 0; dir 247 usr/server/fs/devfs/devfs_vnops.c dir->d_type = DT_CHR; dir 249 usr/server/fs/devfs/devfs_vnops.c dir->d_type = DT_BLK; dir 250 usr/server/fs/devfs/devfs_vnops.c strlcpy((char *)&dir->d_name, info.name, sizeof(dir->d_name)); dir 251 usr/server/fs/devfs/devfs_vnops.c dir->d_fileno = (uint32_t)fp->f_offset; dir 252 usr/server/fs/devfs/devfs_vnops.c dir->d_namlen = (uint16_t)strlen(dir->d_name); dir 254 usr/server/fs/devfs/devfs_vnops.c DPRINTF(("devfs_readdir: %s\n", dir->d_name)); dir 339 usr/server/fs/fatfs/fatfs_vnops.c fatfs_readdir(vnode_t vp, file_t fp, struct dirent *dir) dir 353 usr/server/fs/fatfs/fatfs_vnops.c fat_restore_name((char *)&de->name, dir->d_name); dir 356 usr/server/fs/fatfs/fatfs_vnops.c dir->d_type = DT_DIR; dir 358 usr/server/fs/fatfs/fatfs_vnops.c dir->d_type = DT_BLK; dir 360 usr/server/fs/fatfs/fatfs_vnops.c dir->d_type = DT_REG; dir 362 usr/server/fs/fatfs/fatfs_vnops.c dir->d_fileno = fp->f_offset; dir 363 usr/server/fs/fatfs/fatfs_vnops.c dir->d_namlen = strlen(dir->d_name); dir 424 usr/server/fs/fifofs/fifo_vnops.c fifo_readdir(vnode_t vp, file_t fp, struct dirent *dir) dir 433 usr/server/fs/fifofs/fifo_vnops.c dir->d_type = DT_DIR; dir 434 usr/server/fs/fifofs/fifo_vnops.c strlcpy((char *)&dir->d_name, ".", sizeof(dir->d_name)); dir 436 usr/server/fs/fifofs/fifo_vnops.c dir->d_type = DT_DIR; dir 437 usr/server/fs/fifofs/fifo_vnops.c strlcpy((char *)&dir->d_name, "..", sizeof(dir->d_name)); dir 452 usr/server/fs/fifofs/fifo_vnops.c dir->d_type = DT_FIFO; dir 453 usr/server/fs/fifofs/fifo_vnops.c strlcpy((char *)&dir->d_name, np->fn_name, dir 454 usr/server/fs/fifofs/fifo_vnops.c sizeof(dir->d_name)); dir 456 usr/server/fs/fifofs/fifo_vnops.c dir->d_fileno = fp->f_offset; dir 457 usr/server/fs/fifofs/fifo_vnops.c dir->d_namlen = (uint16_t)strlen(dir->d_name); dir 452 usr/server/fs/ramfs/ramfs_vnops.c ramfs_readdir(vnode_t vp, file_t fp, struct dirent *dir) dir 460 usr/server/fs/ramfs/ramfs_vnops.c dir->d_type = DT_DIR; dir 461 usr/server/fs/ramfs/ramfs_vnops.c strlcpy((char *)&dir->d_name, ".", sizeof(dir->d_name)); dir 463 usr/server/fs/ramfs/ramfs_vnops.c dir->d_type = DT_DIR; dir 464 usr/server/fs/ramfs/ramfs_vnops.c strlcpy((char *)&dir->d_name, "..", sizeof(dir->d_name)); dir 481 usr/server/fs/ramfs/ramfs_vnops.c dir->d_type = DT_DIR; dir 483 usr/server/fs/ramfs/ramfs_vnops.c dir->d_type = DT_REG; dir 484 usr/server/fs/ramfs/ramfs_vnops.c strlcpy((char *)&dir->d_name, np->rn_name, dir 485 usr/server/fs/ramfs/ramfs_vnops.c sizeof(dir->d_name)); dir 487 usr/server/fs/ramfs/ramfs_vnops.c dir->d_fileno = (uint32_t)fp->f_offset; dir 488 usr/server/fs/ramfs/ramfs_vnops.c dir->d_namlen = (uint16_t)strlen(dir->d_name); dir 98 usr/server/fs/vfs/main.c error = sys_mount(msg->dev, msg->dir, msg->fs, msg->flags, dir 121 usr/server/fs/vfs/vfs.h int sys_mount(char *dev, char *dir, char *fsname, int flags, void *data); dir 154 usr/server/fs/vfs/vfs_lookup.c char *file, *dir; dir 168 usr/server/fs/vfs/vfs_lookup.c dir = root; dir 171 usr/server/fs/vfs/vfs_lookup.c dir = buf; dir 176 usr/server/fs/vfs/vfs_lookup.c if ((error = namei(dir, &vp)) != 0) dir 89 usr/server/fs/vfs/vfs_mount.c sys_mount(char *dev, char *dir, char *fsname, int flags, void *data) dir 99 usr/server/fs/vfs/vfs_mount.c dprintf("VFS: mounting %s at %s\n", fsname, dir); dir 102 usr/server/fs/vfs/vfs_mount.c if (!dir || *dir == '\0') dir 124 usr/server/fs/vfs/vfs_mount.c if (!strcmp(mp->m_path, dir) || dir 141 usr/server/fs/vfs/vfs_mount.c strlcpy(mp->m_path, dir, sizeof(mp->m_path)); dir 146 usr/server/fs/vfs/vfs_mount.c if (*dir == '/' && *(dir + 1) == '\0') { dir 150 usr/server/fs/vfs/vfs_mount.c if ((error = namei(dir, &vp_covered)) != 0) { dir 326 usr/server/fs/vfs/vfs_syscalls.c struct dirent dir; dir 333 usr/server/fs/vfs/vfs_syscalls.c error = sys_readdir(fp, &dir); dir 336 usr/server/fs/vfs/vfs_syscalls.c } while (!strcmp(dir.d_name, ".") || !strcmp(dir.d_name, "..")); dir 392 usr/server/fs/vfs/vfs_syscalls.c sys_readdir(file_t fp, struct dirent *dir) dir 405 usr/server/fs/vfs/vfs_syscalls.c error = VOP_READDIR(dvp, fp, dir); dir 407 usr/server/fs/vfs/vfs_syscalls.c error, dir->d_name));