Lines Matching defs:dir
99 mount_nfs(char *fsname, char *dir, char *error)
130 printf("mount_nfs request: mount %s\tdir %s\n", fsname, dir);
152 printf("\t\tdir == %s\n", dir);
369 if (mount(fsname, dir, flags, fstype, &args, sizeof (args)) < 0) {
373 fsname, dir, strerror(errno));
383 if (stat(dir, &st) < 0) {
384 errprintf(error, "couldn't stat %s\n", dir);
398 mnt.mnt_mountp = dir;
412 umount_nfs(char *fsname, char *dir)
423 printf("umount: fsname %s dir %s\n", fsname, dir);
429 while (umount(dir) == -1) {
431 perror(dir);
441 printf("umount_nfs: unmounting %s\n", dir);
579 char *dir, *subdir;
589 dir = strchr(fullname, ':');
590 if (dir == NULL) {
594 *dir++ = '\0';
620 dirlen = strlen(dir);
634 strncmp(dir, ex->ex_dir, len) == 0 &&
635 (dir[len] == '/' || dir[len] == '\0'))
644 dir, fullname);
648 if (dir[bestlen] == '\0')
649 subdir = &dir[bestlen];
651 dir[bestlen] = '\0';
652 subdir = &dir[bestlen+1];
654 *--dir = ':';