/ast/src/lib/libcoshell/ |
H A D | colib.h | 53 dev_t pwd_dev; /* previous pwd dev */ \ 54 ino_t pwd_ino; /* previous pwd inode number */ \ 116 char* pwd; /* pwd */ member in struct:Costate_s
|
/ast/src/cmd/coshell/ |
H A D | shell.c | 213 char* pwd; local 225 if (tokscan(msg, &end, "%s %d %d %s %s %s %s %s %s", NiL, &id, &flags, &pwd, &out, &err, &att, &env, &act) != 9) 348 else if (*out != '/' && *out != '&') sfprintf(state.string, "%s/", pwd); 351 else if (*err != '/' && *err != '&') sfprintf(state.string, "%s/", pwd);
|
/ast/src/lib/libast/uwin/ |
H A D | rcmd.c | 43 #include <pwd.h> 354 struct passwd *pwd; local 358 if ((pwd = getpwnam(luser)) == NULL) 360 (void)strcpy(pbuf, pwd->pw_dir); 362 (void)seteuid(pwd->pw_uid); 368 if (sbuf.st_uid && sbuf.st_uid != pwd->pw_uid) {
|
/ast/src/lib/libmam/ |
H A D | mam.h | 107 char* pwd; /* pwd */ member in struct:proc
|
/ast/src/cmd/tw/ |
H A D | tw.c | 940 char pwd[PATH_MAX]; local 972 else if (!p && !(p = getcwd(pwd, sizeof(pwd)))) 973 error(ERROR_SYSTEM|3, "cannot determine pwd path");
|
/ast/src/cmd/html/ |
H A D | htmlrefs.c | 135 #include <pwd.h> 904 struct passwd* pwd; local 1014 if (!(pwd = getpwnam(state->user.data))) 1016 s = pwd->pw_dir;
|
/ast/src/cmd/ksh93/sh/ |
H A D | subshell.c | 84 char *pwd; /* present working directory */ member in struct:subshell 85 const char *shpwd; /* saved pointer to sh.pwd */ 87 int pwdfd; /* file descritor for pwd */ 522 if(!shp->pwd) 537 sp->shpwd = shp->pwd; 541 if(xp->pwdfd>0 && strcmp(xp->pwd,shp->pwd)==0) 568 sp->pwd = (shp->pwd?strdup(shp->pwd) [all...] |
H A D | path.c | 240 if(shp->pwd) 241 return((char*)shp->pwd); 285 shp->pwd = (char*)(PWDNOD->nvalue.cp); 566 char *path,*pwd; local 569 pwd = path_pwd(shp,1); 570 dirlen = strlen(pwd)+1; 575 memcpy((void*)path,(void*)pwd,dirlen); 978 register const char *pwd; local 980 /* can't relpath when shp->pwd not set */ 981 if(!(pwd [all...] |
/ast/src/cmd/mailx/ |
H A D | cmd3.c | 381 state.var.oldpwd = state.var.pwd; 382 state.var.pwd = tp; 383 if (!getcwd(state.var.pwd, PATHSIZE)) 384 strncopy(state.var.pwd, cp, PATHSIZE); 386 printf("%s\n", state.var.pwd); 394 pwd(void) function 396 printf("%s\n", state.var.pwd);
|
H A D | mailx.h | 714 char pwd[2][PATHSIZE]; /* pwd and oldpwd paths */ member in struct:__anon136::__anon141 841 char* pwd; member in struct:__anon136::__anon147 1003 extern int pwd(void);
|
/ast/src/cmd/nmake/ |
H A D | rule.c | 1657 if ((unique(r) || !r->time) && !streq(r->name, internal.dot->name) && !streq(r->name, internal.pwd)) 1704 char* pwd; local 1763 sfprintf(internal.tmp, "%s/", internal.pwd); 1770 pwd = 0; 1771 if (strncmp(internal.pwd, t, n) || (c = internal.pwd[n]) && c != '/') 1774 * ksh pwd and ast getcwd() are logical 1782 sfputr(internal.nam, internal.pwd, -1); 1789 sfprintf(internal.nam, "%s%s", t, internal.pwd + (s - u)); 1790 pwd [all...] |
H A D | make.h | 651 char* pwd; /* PWD value */ member in struct:Internal_s 655 int pwdlen; /* strlen(internal.pwd) */ 673 char* pwd; /* pwd name */ member in struct:External_s
|
/ast/src/cmd/3d/ |
H A D | init.c | 952 bprintf(&b, e, " pwd %s\n", state.pwd); 1285 if (state.pwd) 1287 if (buf) n = sfsprintf(buf, 0, "%s /#%s ", state.pwd, fs->special); 1294 * set state.pwd from s 1303 struct stat pwd; local 1305 if (*s != '/' || *state.pwd == '/') 1315 strncpy(state.pwd, s, state.pwdsize); 1316 state.pwd[state.pwdsize] = 0; 1317 state.pwdsize = pathcanon(state.pwd, sizeo [all...] |
H A D | 3d.h | 478 char* pwd; member in struct:__anon7
|
/ast/src/cmd/at/ |
H A D | atd.c | 46 #include <pwd.h> 161 char* pwd; /* jobs dir path */ member in struct:__anon39 195 register struct passwd* pwd; local 204 if (pwd = name ? getpwnam(name) : getpwuid(uid)) 206 if (name) uid = pwd->pw_uid; 207 else name = pwd->pw_name; 208 home = pwd->pw_dir; 393 sfprintf(state->tmp, "%s/%s/%s", state->pwd, state->pwd, AT_QUEUE_FILE); 421 sfprintf(state->tmp, "%s/%s/%s", state->pwd, fil [all...] |
/ast/src/cmd/INIT/ |
H A D | mamake.c | 224 char* pwd; /* current directory */ member in struct:__anon22 660 state.pwd = s; 661 if (!state.pwd) 665 state.pwd = duplicate(buf); 666 search(state.vars, "PWD", state.pwd); 684 if (stat(state.pwd, &ts)) 685 report(3, "cannot stat", state.pwd, (unsigned long)0); 690 p = state.pwd + strlen(state.pwd); 691 while (p > state.pwd) [all...] |