home
gethdir(Char *home)
if (*home == '\0') {
(void)Strcpy(home, h);
if ((pw = getpwnam(short2str(home))) != NULL) {
(void)Strcpy(home, str2short(pw->pw_dir));
dtildepr(Char *home, Char *dir)
if (!eq(home, STRslash) && prefix(home, dir))
(void)fprintf(cshout, "~%s", vis_str(dir + Strlen(home)));
char *home = str_val(global("HOME"));
if (home == NULL)
home = null;
hname = alloc(len = strlen(home) + strlen(f) + 2, APERM);
shf_snprintf(hname, len, "%s/%s", home, f);
const char *home;
home = lookupvar("HOME");
if (home == NULL && (pw = getpwuid(getuid())) != NULL)
home = pw->pw_dir;
home = NULL;
home = pw->pw_dir;
VTRACE(DBG_EXPAND, (" ->\"%s\"", home ? home : "<<NULL>>"));
if (home == NULL) {
while ((c = *home++) != '\0') {
const char *home;
home = lookupvar("HOME");
if (home == NULL)
home = nullstr;
profile = ststrcat(NULL, home, "/.profile", STSTRC_END);
void home __P((void));
home();
home();
home();
n += freemen(home);
n += trapped(home, -cturn);
home = 25;
home = 0;
for (pos = bar; pos != home; pos += cturn) {
if (mm->g[mvnum] * cturn >= home) {
mm->g[mvnum] = home;
for (i = bar + cturn; i != home; i += cturn)
frp = freemen(home) + trapped(home, -cturn);
for (em = bar; em != home; em += cturn)
em = abs(home - em);
barmen = abs(board[home]);
n = barmen - abs(board[home]);
if (mm->g[i] * cturn > home) {
mm->g[i] = home;
if ((mm->p[i] += cturn) == home) {
extern int home; /* position of home for current player */
int home;
for (i = home - 6 * cturn; i != home; i += cturn)
return (abs(home - i));
if (mm->g[i] != home) {
if (abs(mm->g[i] - home) < 7 && abs(mm->p[i] - home) > 6) {
board[home] += cturn;
if (mm->g[i] != home && board[mm->g[i]] * cturn < -1)
if (mm->g[i] == home && *offptr < 0)
if (mm->g[i] != home) {
board[home] -= cturn;
if (abs(home - mm->g[i]) < 7 && abs(home - mm->p[i]) > 6) {
home = bar;
mm->g[mvl] = home;
home = 0;
char *home;
home = getenv("HOME");
if (home != NULL) {
tmpl = strlen(home);
memcpy(newname, home, tmpl);
void home(void);
home();
home();
home();
home();
home();
home();
home();
home();
home();
setuserpath(login_cap_t *lc, const char *home, envfunc_t senv, void *envp)
_DIAGASSERT(home != NULL);
hlen = strlen(home);
strcpy(q, home);
char *path, *home, *result;
home = homedir;
home = hpw->pw_dir;
home = $1;
len = strlen(home) + 1;
strlcpy(result, home, len);
const char *home = getenv("HOME");
if (home != NULL) {
snprintf(fname, sizeof(fname), "%s/.indent.pro", home);
char *home = getenv("HOME");
if(home == NULL || *home == '\0')
snprintf(fname, sizeof (fname), "%s/%s", home, MSGSRC);
rp->stat, rp->uid, rp->gid, rp->home, rp->cm);
if(rp->home)
free(rp->home);
strlcpy(home, yphome, sizeof(home));
cp = strchr(home, ':');
strlcpy(home, yphome, sizeof(home));
cp = strchr(home, ':');
static char home[256];
home[0] = '\0';
r.home = &home[0];
char *home = getenv("HOME");
if (home != NULL)
if (chdir(home) != 0)
char home[MaxFileNameLen];
(void)strlcpy(home, up->u_home, sizeof(home));
(void)snprintf(home, sizeof(home), "%s/%s", up->u_basedir,
if (lstat(home, &st) < 0 && !(up->u_flags & F_MKDIR)) {
"and -m was not specified", home);
home,
if (lstat(home, &st) == 0) {
"already exists", login_name, home);
if (asystem("%s -p %s", _PATH_MKDIR, home) != 0) {
"can't mkdir `%s'", login_name, home);
(void)copydotfiles(up->u_skeldir, up->u_uid, gid, home,
"shell=%s", login_name, up->u_uid, gid, home, up->u_shell);