Lines Matching defs:home_dir
619 const char *home_dir = getenv ("SYS$LOGIN");
621 const char *home_dir = getenv ("HOME");
624 if (home_dir == NULL || home_dir[0] == '\0')
625 home_dir = "SYS:";
628 if (home_dir == NULL || home_dir[0] == '\0')
629 home_dir = "c:/users/default"; /* poor default */
633 if (home_dir == NULL || home_dir[0] == '\0')
634 home_dir = "SYS$DISK:[]";
636 if (home_dir == NULL || home_dir[0] == '\0')
684 home_dir = p->pw_dir;
687 if (home_dir == NULL || home_dir[0] == '\0')
692 home_dir = "~"; /* No luck. */
699 dirname = home_dir;
703 size_t home_len = strlen (home_dir);
706 mempcpy (mempcpy (newp, home_dir, home_len),
709 memcpy (newp, home_dir, home_len);
720 const char *home_dir;
768 home_dir = p->pw_dir;
770 home_dir = NULL;
773 if (home_dir != NULL)
776 size_t home_len = strlen (home_dir);
780 *((char *) mempcpy (mempcpy (newp, home_dir, home_len),
783 memcpy (newp, home_dir, home_len);