/openbsd/bin/csh/ |
H A D | dir.c | 78 tcp = short2str(hp); in dinit() 330 if (chdir(short2str(cp)) == -1) in dochngd() 343 if (chdir(tmp = short2str(dp->di_name)) == -1) in dochngd() 415 if (chdir(short2str(dp)) >= 0) { in dfollow() 421 if (chdir(short2str(cp)) >= 0) in dfollow() 438 if (chdir(short2str(buf)) >= 0) { in dfollow() 479 if (chdir(tmp = short2str(dp->di_name)) == -1) in dopushd() 569 if (chdir(tmp = short2str(p->di_name)) == -1) in dopopd() 673 (cc = readlink(short2str(cp), tlink, in dcanon() 757 (cc = readlink(short2str(cp), tlink, in dcanon() [all …]
|
H A D | exec.c | 139 slash = any(short2str(expath), '/'); in doexec() 267 f = short2str(sf); in texec() 317 f = short2str(sf); in texec() 439 dirp = opendir(short2str(*pv)); in dohash() 490 bool slash = any(short2str(name), '/'); in iscommand() 563 strname = short2str(path); in executable() 566 strname = short2str(name); in executable() 677 bool slash = any(short2str(sp->word), '/'); in tellmewhat()
|
H A D | exp.c | 407 if (isa(**vp, ANYOP) && stat(short2str(**vp), &stb)) in exp6() 417 i = !access(short2str(ep), R_OK); in exp6() 421 i = !access(short2str(ep), W_OK); in exp6() 425 i = !access(short2str(ep), X_OK); in exp6() 429 if (cp[1] == 'l' ? lstat(short2str(ep), &stb) : in exp6() 430 stat(short2str(ep), &stb)) { in exp6()
|
H A D | dol.c | 507 dolp = (vp || getenv(short2str(name))) ? STR1 : STR0; in Dgetdol() 511 np = str2short(getenv(short2str(name))); in Dgetdol() 859 (void) write(STDIN_FILENO, short2str(obuf), in heredoc() 874 (void) write(STDIN_FILENO, short2str(obuf), BUFSIZ); in heredoc() 916 if (any(short2str(mbp), '`')) { in heredoc() 938 (void) write(STDIN_FILENO, short2str(obuf), BUFSIZ); in heredoc() 945 (void) write(STDIN_FILENO, short2str(obuf), BUFSIZ); in heredoc()
|
H A D | str.c | 80 *dst++ = xstrdup(short2str(*src)); in short2blk() 116 short2str(Char *src) in short2str() function 402 (void) strnvis(sdst, short2str(cp), dstsize, VIS_NOSLASH); in vis_str()
|
H A D | proc.c | 113 if (pid == atoi(short2str(value(STRchild)))) in pchild() 148 >= atoi(short2str(value(STRtime)))) in pchild() 947 signum = strtonum(short2str(v[1]), 0, NSIG-1, &errstr); in dokill() 965 signum = strtonum(short2str(v[0] + 1), 0, NSIG-1, &errstr); in dokill() 972 name = short2str(&v[0][0]); in dokill() 974 name = short2str(&v[0][1]); in dokill() 1067 char *pidnam = short2str(cp); in pkill() 1157 int idx = strtonum(short2str(cp + 1), 1, INT_MAX, &errstr); in pfind()
|
H A D | file.c | 446 if (lstat(short2str(path), &statb) == 0) { in filetype() 452 if (stat(short2str(path), &statb) == 0 && /* follow it out */ in filetype() 531 pw = getpwnam(short2str(person)); in tilde() 621 dir_fd = opendir(*tilded_dir ? short2str(tilded_dir) : "."); in tsearch()
|
H A D | csh.c | 683 char *ptr = short2str(ep); in srccat() 848 if ((fd = open(short2str(hfile), O_WRONLY | O_CREAT | O_TRUNC, in rechist() 1163 (void) strlcpy(sbuf, short2str(f), sizeof sbuf); in dosource() 1200 if (stat(short2str(*vp), &stb) == -1) in mailchk() 1241 if ((pw = getpwnam(short2str(home))) != NULL) { in gethdir()
|
H A D | func.c | 70 label.bname = short2str(cp); in isbfunc() 76 backgnd.bname = short2str(cp); in isbfunc() 79 foregnd.bname = short2str(cp); in isbfunc() 216 (void) execl(_PATH_LOGIN, "login", short2str(v[1]), (char *)NULL); in dologin() 1091 f = atof(short2str(cp)); in getval() 1104 return ((rlim_t) (f * 60.0 + atof(short2str(cp + 1)))); in getval()
|
H A D | sem.c | 533 strlcpy(tmp, short2str(cp), sizeof tmp); in doio() 556 strlcpy(tmp, short2str(cp), sizeof tmp); in doio()
|
H A D | time.c | 131 cp = short2str(vp->vec[1]); in prusage()
|
H A D | extern.h | 303 char *short2str(Char *);
|
H A D | glob.c | 888 (void) strlcpy(buf, short2str(*(Char **)a), sizeof buf); in sortscmp() 889 return ((int) strcoll(buf, short2str(*(Char **)b))); in sortscmp()
|
H A D | set.c | 712 (void) fprintf(cshout, "%s\t", short2str(p->v_name)); in plist()
|
H A D | lex.c | 960 if (!any(short2str(cp), '/')) in domod()
|