Searched refs:homedir (Results 1 - 25 of 28) sorted by relevance

12

/openbsd-current/usr.bin/mail/
H A Dtemp.c80 homedir = NULL;
82 homedir = savestr(cp);
84 printf("user = %s, homedir = %s\n", myname,
85 homedir ? homedir : "NONE");
H A Dglob.h56 extern char *homedir; /* Path name of home directory */
H A Dfio.c447 if (name[0] == '~' && homedir && (name[1] == '/' || name[1] == '\0')) {
448 (void)snprintf(xname, sizeof(xname), "%s%s", homedir, name + 1);
489 (void)snprintf(name, namelen, "%s/%s", homedir ? homedir : ".",
H A Dmain.c54 char *homedir; /* Path name of home directory */ variable
H A Dcmd3.c158 if (homedir == NULL)
160 cp = homedir;
/openbsd-current/gnu/usr.bin/cvs/src/
H A Dcvsrc.c35 char *homedir; local
67 homedir = get_homedir ();
73 if (!homedir)
76 homeinit = (char *) xmalloc (strlen (homedir) + strlen (cvsrc) + 10);
77 strcpy (homeinit, homedir);
H A Dlogin.c45 char *homedir; local
54 homedir = get_homedir ();
55 if (! homedir)
69 (char *) xmalloc (strlen (homedir) + strlen (CVS_PASSWORD_FILE) + 3);
70 strcpy (passfile, homedir);
H A Dwrapper.c91 char *homedir; local
120 homedir = get_homedir ();
126 if (homedir != NULL)
130 file = xmalloc (strlen (homedir) + sizeof (CVSDOTWRAPPER) + 10);
131 (void) sprintf (file, "%s/%s", homedir, CVSDOTWRAPPER);
H A Dhistory.c769 /* Try harder to find a "homedir" */
771 char *homedir; local
778 homedir = xgetwd ();
779 if (homedir == NULL)
786 i = strlen (homedir);
787 if (!strncmp (CurDir, homedir, i))
792 free (homedir);
/openbsd-current/gnu/llvm/lldb/source/API/
H A DSBHostOS.cpp90 FileSpec homedir; local
91 FileSystem::Instance().GetHomeDirectory(homedir);
92 FileSystem::Instance().Resolve(homedir);
95 sb_fspec.SetFileSpec(homedir);
/openbsd-current/usr.bin/ssh/
H A Dsshconnect.h45 char *homedir; member in struct:ssh_conn_info
64 "d", conn_info->homedir, \
H A Dsftp-server.c1539 /* Special-case for "~" and "~/" to respect homedir flag */
1876 char *cp, *homedir = NULL, uidstr[32], buf[4*4096]; local
1927 homedir = percent_expand(cp, "d", user_pw->pw_dir,
1979 if (homedir != NULL) {
1980 if (chdir(homedir) != 0) {
1981 error("chdir to \"%s\" failed: %s", homedir,
/openbsd-current/gnu/lib/libreadline/
H A Dutil.c161 char *homedir, *temp; local
169 homedir = tilde_expand ("~");
170 _rl_replace_text (homedir, start, end);
197 homedir = tilde_expand (temp);
200 _rl_replace_text (homedir, start, end);
/openbsd-current/gnu/usr.bin/binutils/gdb/
H A Dmain.c145 char *homedir, *homeinit; local
601 homedir = getenv ("HOME");
602 if (homedir)
604 homeinit = (char *) alloca (strlen (homedir) +
606 strcpy (homeinit, homedir);
616 need them if homedir is set. Make sure that they are
625 homedir was set. */
694 if (!homedir
H A Dwin32-nat.c2468 char *homedir; local
2472 homedir = getenv ("HOME");
2473 if (homedir)
2476 char *oldini = (char *) alloca (strlen (homedir) +
2478 strcpy (oldini, homedir);
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/compile/
H A D920928-4.c58 sec_rgy_pname_t homedir; member in struct:__anon6870
/openbsd-current/gnu/usr.bin/texinfo/info/
H A Dinfokey.c184 char *homedir;
186 homedir = getenv ("HOME");
188 if (!homedir)
189 homedir = ".";
192 input_filename = mkpath (homedir, INFOKEY_SRCFILE);
194 output_filename = mkpath (homedir, INFOKEY_FILE);
183 char *homedir; local
H A Dinfomap.c1458 char *homedir; local
1469 else if ((homedir = getenv("HOME")) != NULL)
1471 filename = xmalloc(strlen(homedir) + 2 + strlen(INFOKEY_FILE));
1472 strcpy(filename, homedir);
/openbsd-current/usr.bin/rdist/
H A Dclient.h126 extern char *homedir; /* User's $HOME */
H A Dcommon.c61 char *homedir = NULL; /* User's $HOME */ variable
131 homedir = xstrdup(pw->pw_dir);
589 pw_dir = homedir;
/openbsd-current/usr.bin/ftp/
H A Dmain.c320 char *cp, homedir[PATH_MAX]; local
603 (void)strlcpy(homedir, pw->pw_dir, sizeof homedir);
604 home = homedir;
/openbsd-current/usr.sbin/smtpd/
H A Dutil.c561 char homedir[PATH_MAX]; local
568 if (realpath(userdir, homedir) == NULL)
569 homedir[0] = '\0';
589 /* We can stop checking after reaching homedir level. */
590 if (strcmp(homedir, buf) == 0)
/openbsd-current/usr.sbin/adduser/
H A Dadduser.perl1117 local($homedir) = "$home/$name";
1119 if (-e "$homedir") {
1120 warn "HOME Directory ``$homedir'' already exists\a\n";
1125 if (!mkdir("$homedir", 0755)) {
1126 warn "mkdir $homedir: $!\n"; return 0;
1128 system 'chown', "$name:$group", $homedir;
1132 # copy files from $dotdir to $homedir
1134 print "Copy files from $dotdir to $homedir\n" if $verbose;
1135 system("cp", "-R", $dotdir, $homedir);
1136 system("chmod", "-R", "u+wrX,go-w", $homedir);
[all...]
/openbsd-current/bin/ksh/
H A Deval.c61 static char *homedir(char *);
1229 dp = homedir(cp);
1244 homedir(char *name) function
/openbsd-current/usr.sbin/user/
H A Duser.c1448 const char *homedir; local
1499 homedir = pwp->pw_dir;
1729 const char *mv_argv[] = { "mv", homedir, pwp->pw_dir, NULL };
1736 "can't move `%s' to `%s'", homedir, pwp->pw_dir);

Completed in 226 milliseconds

12