bin/csh/csh.c
1223
gethdir(Char *home, int len)
bin/csh/csh.c
1231
if (*home == '\0') {
bin/csh/csh.c
1233
if (Strlcpy(home, h, len) >= len)
bin/csh/csh.c
1241
if ((pw = getpwnam(short2str(home))) != NULL) {
bin/csh/csh.c
1242
if (Strlcpy(home, str2short(pw->pw_dir), len) >= len)
bin/csh/dir.c
225
dtildepr(Char *home, Char *dir)
bin/csh/dir.c
228
if (!eq(home, STRslash) && prefix(home, dir))
bin/csh/dir.c
229
(void) fprintf(cshout, "~%s", vis_str(dir + Strlen(home)));
bin/ed/main.c
115
static char *home; /* home directory */
bin/ed/main.c
133
home = getenv("HOME");
bin/ed/main.c
1351
home != NULL && home[0] == '/') {
bin/ed/main.c
1352
if (strlcpy(hup, home, sizeof(hup)) < sizeof(hup) &&
distrib/special/more/more.c
1218
home();
distrib/special/more/more.c
1227
home();
distrib/special/more/more.c
295
home();
distrib/special/more/more.c
333
home();
distrib/special/more/more.c
582
home();
distrib/special/more/termcap.c
67
char *p, *cp, *dummy, **fname, *home;
distrib/special/more/termcap.c
94
else if ((home = getenv("HOME")) == NULL || *home == '\0' ||
distrib/special/more/termcap.c
95
snprintf(pathbuf, sizeof(pathbuf), "%s/%s", home,
games/atc/log.c
108
char *home;
games/atc/log.c
113
home = getenv("HOME");
games/atc/log.c
114
if (home == NULL || *home == '\0')
games/atc/log.c
116
ret = snprintf(scorefile, sizeof(scorefile), "%s/%s", home,
games/atc/log.c
119
errc(1, ENAMETOOLONG, "%s/%s", home, ".atc.scores");
games/backgammon/backgammon/extra.c
157
n += freemen(home);
games/backgammon/backgammon/extra.c
158
n += trapped(home, -cturn);
games/backgammon/backgammon/main.c
196
home = 25;
games/backgammon/backgammon/main.c
206
home = 0;
games/backgammon/backgammon/move.c
156
for (pos = bar; pos != home; pos += cturn) {
games/backgammon/backgammon/move.c
169
if (g[mvnum] * cturn >= home) {
games/backgammon/backgammon/move.c
172
g[mvnum] = home;
games/backgammon/common_source/allow.c
68
if ((p[i] += cturn) == home) {
games/backgammon/common_source/allow.c
92
if (g[i] * cturn > home) {
games/backgammon/common_source/allow.c
94
g[i] = home;
games/backgammon/common_source/back.h
109
extern int home; /* position of home for current player */
games/backgammon/common_source/init.c
82
int home;
games/backgammon/common_source/one.c
112
for (i = home - 6 * cturn; i != home; i += cturn)
games/backgammon/common_source/one.c
114
return(abs(home - i));
games/backgammon/common_source/one.c
131
if (g[i] != home) {
games/backgammon/common_source/one.c
133
if (abs(g[i] - home) < 7 && abs(p[i] - home) > 6) {
games/backgammon/common_source/one.c
143
board[home] += cturn;
games/backgammon/common_source/one.c
45
if (g[i] != home && board[g[i]] * cturn < -1)
games/backgammon/common_source/one.c
56
if (g[i] == home && *offptr < 0)
games/backgammon/common_source/one.c
60
if (g[i] != home) {
games/backgammon/common_source/one.c
62
board[home] -= cturn;
games/backgammon/common_source/one.c
72
if (abs(home - g[i]) < 7 && abs(home - p[i]) > 6) {
games/backgammon/common_source/subs.c
179
home = bar;
games/backgammon/common_source/table.c
222
g[mvl] = home;
games/backgammon/teachgammon/tutor.c
47
home = 0;
games/battlestar/command6.c
103
const char *home;
games/battlestar/command6.c
106
home = getenv("HOME");
games/battlestar/command6.c
107
if (home == NULL || *home == '\0')
games/battlestar/command6.c
109
ret = snprintf(scorefile, sizeof(scorefile), "%s/%s", home,
games/battlestar/command6.c
112
errc(1, ENAMETOOLONG, "%s/%s", home, ".battlestar.scores");
games/battlestar/save.c
155
char *home;
games/battlestar/save.c
158
home = getenv("HOME");
games/battlestar/save.c
159
if (strchr(filename, '/') != NULL || home == NULL) {
games/battlestar/save.c
165
if (asprintf(&newname, "%s/%s", home, filename) == -1) {
games/canfield/canfield/canfield.c
1628
const char *home;
games/canfield/canfield/canfield.c
1633
home = getenv("HOME");
games/canfield/canfield/canfield.c
1634
if (home == NULL || *home == '\0')
games/canfield/canfield/canfield.c
1637
ret = snprintf(scorepath, sizeof(scorepath), "%s/%s", home,
games/canfield/canfield/canfield.c
1640
errc(1, ENAMETOOLONG, "%s/%s", home, ".cfscores");
games/canfield/cfscores/cfscores.c
61
const char *home;
games/canfield/cfscores/cfscores.c
67
home = getenv("HOME");
games/canfield/cfscores/cfscores.c
68
if (home == NULL || *home == '\0')
games/canfield/cfscores/cfscores.c
71
ret = snprintf(scorepath, sizeof(scorepath), "%s/%s", home,
games/canfield/cfscores/cfscores.c
74
errc(1, ENAMETOOLONG, "%s/%s", home, ".cfscores");
games/hack/hack.h
619
void home(void);
games/hack/hack.pager.c
308
home();
games/hack/hack.pager.c
323
home();
games/hack/hack.pager.c
399
home(); perror (fnam); flags.toplin = 1;
games/hack/hack.pager.c
437
char *home;
games/hack/hack.pager.c
447
home = getenv("HOME");
games/hack/hack.pager.c
448
if (home == NULL || *home == '\0')
games/hack/hack.pager.c
449
home = "/";
games/hack/hack.pager.c
450
(void) chdir(home);
games/hack/hack.pri.c
107
home();
games/hack/hack.termcap.c
195
home();
games/hack/hack.topl.c
101
home();
games/hack/hack.topl.c
168
home();
games/hack/hack.topl.c
191
home();
games/hack/hack.tty.c
296
if(!Invisible) curs_on_u(); else home();
games/hunt/huntd/conf.c
271
char *home;
games/hunt/huntd/conf.c
283
if ((home = getenv("HOME")) == NULL)
games/hunt/huntd/conf.c
284
home = "";
games/hunt/huntd/conf.c
287
snprintf(nm, sizeof nm, fnms[fn], home);
games/robots/main.c
59
char *home;
games/robots/main.c
64
home = getenv("HOME");
games/robots/main.c
65
if (home == NULL || *home == '\0')
games/robots/main.c
68
ret = snprintf(Scorefile, sizeof(Scorefile), "%s/%s", home,
games/robots/main.c
71
errc(1, ENAMETOOLONG, "%s/%s", home, ".robots.scores");
games/snake/snake.c
141
const char *home;
games/snake/snake.c
143
home = getenv("HOME");
games/snake/snake.c
144
if (home == NULL || *home == '\0')
games/snake/snake.c
147
snprintf(logpath, sizeof(logpath), "%s/%s", home, ".snake.log");
games/snake/snake.c
950
const char *home;
games/snake/snake.c
964
home = getenv("HOME");
games/snake/snake.c
965
if (home == NULL || *home == '\0')
games/snake/snake.c
968
ret = snprintf(scorepath, sizeof(scorepath), "%s/%s", home,
games/snake/snake.c
971
errc(1, ENAMETOOLONG, "%s/%s", home, ".snake.scores");
games/tetris/tetris.c
157
char *home;
games/tetris/tetris.c
161
home = getenv("HOME");
games/tetris/tetris.c
162
if (home == NULL || *home == '\0')
games/tetris/tetris.c
165
ret = snprintf(scorepath, sizeof(scorepath), "%s/%s", home,
games/tetris/tetris.c
168
errc(1, ENAMETOOLONG, "%s/%s", home, ".tetris.scores");
lib/libcurses/tinfo/home_terminfo.c
57
char *home;
lib/libcurses/tinfo/home_terminfo.c
59
if ((home = getenv("HOME")) != 0) {
lib/libcurses/tinfo/home_terminfo.c
60
size_t want = (strlen(home) + sizeof(PRIVATE_INFO));
lib/libcurses/tinfo/home_terminfo.c
62
_nc_SPRINTF(MyBuffer, _nc_SLIMIT(want) PRIVATE_INFO, home);
lib/libcurses/tinfo/read_termcap.c
793
char *home;
lib/libcurses/tinfo/read_termcap.c
823
if ((home = getenv("HOME")) != 0 && *home != '\0'
lib/libcurses/tinfo/read_termcap.c
824
&& strchr(home, ' ') == 0
lib/libcurses/tinfo/read_termcap.c
825
&& strlen(home) < sizeof(temp) - 10) { /* setup path */
lib/libcurses/tinfo/read_termcap.c
827
"%s/", home); /* $HOME first */
lib/libcurses/tinfo/write_entry.c
240
char *home = _nc_home_terminfo();
lib/libcurses/tinfo/write_entry.c
242
if (home != NULL) {
lib/libcurses/tinfo/write_entry.c
243
destination = home;
lib/libsndio/aucat.c
208
char *home, *dir = NULL, *path = NULL, *tmp = NULL;
lib/libsndio/aucat.c
214
home = issetugid() ? NULL : getenv("HOME");
lib/libsndio/aucat.c
215
if (home == NULL)
lib/libsndio/aucat.c
217
if (asprintf(&dir, "%s/.sndio", home) == -1)
usr.bin/calendar/io.c
331
char *home = getenv("HOME");
usr.bin/calendar/io.c
332
if (home == NULL || *home == '\0')
usr.bin/calendar/io.c
334
if (!(chdir(home) == 0 &&
usr.bin/file/file.c
123
char *home;
usr.bin/file/file.c
176
home = getenv("HOME");
usr.bin/file/file.c
177
if (home == NULL || *home == '\0') {
usr.bin/file/file.c
180
home = pw->pw_dir;
usr.bin/file/file.c
182
home = NULL;
usr.bin/file/file.c
184
if (home != NULL) {
usr.bin/file/file.c
185
xasprintf(&magicpath, "%s/.magic", home);
usr.bin/ftp/cmds.c
777
argc++, argv[1] = home;
usr.bin/ftp/extern.h
135
extern char *home;
usr.bin/ftp/main.c
604
home = homedir;
usr.bin/ftp/small.c
88
char *home = "/";
usr.bin/ftp/small.h
21
extern char *home;
usr.bin/indent/args.c
165
char *home;
usr.bin/indent/args.c
168
home = getenv("HOME");
usr.bin/indent/args.c
169
if (home != NULL && *home != '\0') {
usr.bin/indent/args.c
170
if (snprintf(fname, sizeof fname, "%s/%s", home, prof) >= sizeof fname) {
usr.bin/indent/args.c
171
warnc(ENAMETOOLONG, "%s/%s", home, prof);
usr.bin/less/cmdbuf.c
1173
char *home;
usr.bin/less/cmdbuf.c
1188
home = lgetenv("HOME");
usr.bin/less/cmdbuf.c
1189
if (home == NULL || *home == '\0') {
usr.bin/less/cmdbuf.c
1192
return (easprintf("%s/%s", home, LESSHISTFILE));
usr.bin/less/forwback.c
148
home();
usr.bin/less/forwback.c
162
home();
usr.bin/less/forwback.c
267
home();
usr.bin/less/funcs.h
23
void home(void);
usr.bin/less/jump.c
273
home();
usr.bin/mg/fileio.c
335
char *home;
usr.bin/mg/fileio.c
338
if ((home = getenv("HOME")) == NULL || *home == '\0')
usr.bin/mg/fileio.c
344
ret = snprintf(path, len, _PATH_MG_STARTUP, home);
usr.bin/mg/fileio.c
348
ret = snprintf(path, len, _PATH_MG_TERM, home, suffix);
usr.bin/ssh/sshconnect.c
656
char *home, *ret = NULL;
usr.bin/ssh/sshconnect.c
661
if ((home = getenv("HOME")) == NULL || (l = strlen(home)) == 0)
usr.bin/ssh/sshconnect.c
663
if (strncmp(path, home, l) != 0)
usr.bin/ssh/sshconnect.c
670
if (home[l - 1] != '/' && path[l] != '/')
usr.bin/telnet/commands.c
1668
char *home = getenv("HOME");
usr.bin/telnet/commands.c
1670
if (home == NULL || *home == '\0')
usr.bin/telnet/commands.c
1673
home ? home : "");
usr.bin/tmux/cmd-parse.y
1589
const char *home = NULL;
usr.bin/tmux/cmd-parse.y
1610
home = envent->value;
usr.bin/tmux/cmd-parse.y
1612
home = pw->pw_dir;
usr.bin/tmux/cmd-parse.y
1615
home = pw->pw_dir;
usr.bin/tmux/cmd-parse.y
1617
if (home == NULL)
usr.bin/tmux/cmd-parse.y
1620
log_debug("%s: ~%s -> %s", __func__, name, home);
usr.bin/tmux/cmd-parse.y
1621
yylex_append(buf, len, home, strlen(home));
usr.bin/tmux/file.c
47
const char *home;
usr.bin/tmux/file.c
53
home = find_home();
usr.bin/tmux/file.c
54
if (home == NULL)
usr.bin/tmux/file.c
55
home = "";
usr.bin/tmux/file.c
56
xasprintf(&path, "%s%s", home, file + 1);
usr.bin/tmux/job.c
147
else if ((home = find_home()) != NULL && chdir(home) == 0)
usr.bin/tmux/job.c
148
environ_set(env, "PWD", 0, "%s", home);
usr.bin/tmux/job.c
83
const char *home, *shell;
usr.bin/tmux/server-client.c
2356
const char *data, *home;
usr.bin/tmux/server-client.c
2417
else if ((home = find_home()) != NULL)
usr.bin/tmux/server-client.c
2418
c->cwd = xstrdup(home);
usr.bin/tmux/server-client.c
2515
const char *home;
usr.bin/tmux/server-client.c
2525
if ((home = find_home()) != NULL)
usr.bin/tmux/server-client.c
2526
return (home);
usr.bin/tmux/spawn.c
217
const char *cmd, *tmp, *home = find_home();
usr.bin/tmux/spawn.c
377
else if (home != NULL && chdir(home) == 0)
usr.bin/tmux/spawn.c
378
actual_cwd = home;
usr.bin/tmux/spawn.c
405
(home == NULL || chdir(home) != 0))
usr.bin/tmux/status.c
67
const char *home, *history_file;
usr.bin/tmux/status.c
78
if ((home = find_home()) == NULL)
usr.bin/tmux/status.c
80
xasprintf(&path, "%s%s", home, history_file + 1);
usr.bin/tmux/tmux.c
113
expand_path(const char *path, const char *home)
usr.bin/tmux/tmux.c
120
if (home == NULL)
usr.bin/tmux/tmux.c
122
xasprintf(&expanded, "%s%s", home, path + 1);
usr.bin/tmux/tmux.c
148
const char *home = find_home();
usr.bin/tmux/tmux.c
158
expanded = expand_path(next, home);
usr.bin/tmux/tmux.c
328
static const char *home;
usr.bin/tmux/tmux.c
330
if (home != NULL)
usr.bin/tmux/tmux.c
331
return (home);
usr.bin/tmux/tmux.c
333
home = getenv("HOME");
usr.bin/tmux/tmux.c
334
if (home == NULL || *home == '\0') {
usr.bin/tmux/tmux.c
337
home = pw->pw_dir;
usr.bin/tmux/tmux.c
339
home = NULL;
usr.bin/tmux/tmux.c
342
return (home);
usr.sbin/smtpd/mail.maildir.c
131
char *home;
usr.sbin/smtpd/mail.maildir.c
138
if ((home = getenv("HOME")) == NULL)
usr.sbin/smtpd/mail.maildir.c
140
ret = snprintf(rootpath, sizeof rootpath, "%s/Maildir", home);
usr.sbin/smtpd/mail.maildir.c
142
errc(1, ENAMETOOLONG, "%s/Maildir", home);
usr.sbin/user/user.c
1046
char home[MaxFileNameLen];
usr.sbin/user/user.c
1169
if (strlcpy(home, up->u_home, sizeof(home)) >= sizeof(home)) {
usr.sbin/user/user.c
1177
if (snprintf(home, sizeof(home), "%s/%s", up->u_basedir,
usr.sbin/user/user.c
1178
login_name) >= sizeof(home)) {
usr.sbin/user/user.c
1193
if (lstat(home, &st) == -1 && !(up->u_flags & F_MKDIR) &&
usr.sbin/user/user.c
1194
strcmp(home, _PATH_NONEXISTENT) != 0) {
usr.sbin/user/user.c
1196
" not specified", home);
usr.sbin/user/user.c
1209
home,
usr.sbin/user/user.c
1260
if (lstat(home, &st) == 0) {
usr.sbin/user/user.c
1264
home);
usr.sbin/user/user.c
1268
{ "mkdir", "-p", home, NULL };
usr.sbin/user/user.c
1270
{ "chown", "-RP", idstr, home, NULL };
usr.sbin/user/user.c
1272
{ "chmod", "-R", "u+w", home, NULL };
usr.sbin/user/user.c
1279
"can't mkdir `%s'", home);
usr.sbin/user/user.c
1281
(void) copydotfiles(up->u_skeldir, home);
usr.sbin/user/user.c
1307
login_name, up->u_uid, gid, home, up->u_shell);