Lines Matching refs:home
49 static int copyfile(const char *min_home, const char *home, const char *target,
51 static int linkfile(const char *min_home, const char *home, const char *target,
92 char home[MAXPATHLEN]; /* real path to current $HOME */ in __setupfiles() local
116 (void) strlcpy(home, pwd->pw_dir, MAXPATHLEN); in __setupfiles()
175 if (mkdirs(home, file, flags) != 0) { in __setupfiles()
185 if (copyfile(min_home, home, file, flags) != 0) { in __setupfiles()
228 if (mkdirs(home, file, flags) != 0) { in __setupfiles()
238 if (linkfile(min_home, home, file, flags) != 0) { in __setupfiles()
275 mkdirs(const char *home, const char *file, int flags) in mkdirs() argument
281 if ((strlen(home) + strlen(file)) > (MAXPATHLEN - 2)) { in mkdirs()
283 dprintf("setupfiles mkdirs path %s", home); in mkdirs()
301 (void) strcpy(path, home); in mkdirs()
343 copyfile(const char *min_home, const char *home, const char *target, int flags) in copyfile() argument
352 if (snprintf(dest, sizeof (dest), "%s/%s", home, target) > in copyfile()
454 linkfile(const char *min_home, const char *home, const char *target, int flags) in linkfile() argument
462 if (snprintf(dest, sizeof (dest), "%s/%s", home, target) > in linkfile()