Lines Matching defs: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,
81 * It also assumes that the user's home directory path is the
84 * At this point, the cross-zone automounter only supports home
85 * directories starting with /home
92 char home[MAXPATHLEN]; /* real path to current $HOME */
114 /* get current home real path */
116 (void) strlcpy(home, pwd->pw_dir, MAXPATHLEN);
127 * Since the global zone home directories aren't public
175 if (mkdirs(home, file, flags) != 0) {
185 if (copyfile(min_home, home, file, flags) != 0) {
228 if (mkdirs(home, file, flags) != 0) {
238 if (linkfile(min_home, home, file, flags) != 0) {
260 * Entry home = base directory.
275 mkdirs(const char *home, const char *file, int flags)
281 if ((strlen(home) + strlen(file)) > (MAXPATHLEN - 2)) {
283 dprintf("setupfiles mkdirs path %s", home);
301 (void) strcpy(path, home);
323 * copyfile - Copy a file from the base home directory to the current.
325 * Entry min_home = from home directory.
326 * home = current (to) home directory.
343 copyfile(const char *min_home, const char *home, const char *target, int flags)
352 if (snprintf(dest, sizeof (dest), "%s/%s", home, target) >
357 dperror("setupfiles copy to home");
394 dperror("setupfiles copy from home");
417 /* execute "cp -p min_home home" */
435 * home directory.
437 * Entry min_home = from home directory.
438 * home = current (to) home directory.
454 linkfile(const char *min_home, const char *home, const char *target, int flags)
462 if (snprintf(dest, sizeof (dest), "%s/%s", home, target) >
467 dperror("setupfiles link to home");
498 dperror("setupfiles link from home");