Lines Matching refs:home_dir
618 const char *home_dir = getenv ("SYS$LOGIN"); local
620 const char *home_dir = getenv ("HOME");
623 if (home_dir == NULL || home_dir[0] == '\0')
624 home_dir = "SYS:";
627 if (home_dir == NULL || home_dir[0] == '\0')
628 home_dir = "c:/users/default"; /* poor default */
632 if (home_dir == NULL || home_dir[0] == '\0')
633 home_dir = "SYS$DISK:[]";
635 if (home_dir == NULL || home_dir[0] == '\0')
683 home_dir = p->pw_dir;
686 if (home_dir == NULL || home_dir[0] == '\0')
691 home_dir = "~"; /* No luck. */
698 dirname = home_dir;
702 size_t home_len = strlen (home_dir);
705 mempcpy (mempcpy (newp, home_dir, home_len),
708 memcpy (newp, home_dir, home_len);
719 const char *home_dir; local
767 home_dir = p->pw_dir;
769 home_dir = NULL;
772 if (home_dir != NULL)
775 size_t home_len = strlen (home_dir);
779 *((char *) mempcpy (mempcpy (newp, home_dir, home_len),
782 memcpy (newp, home_dir, home_len);