Home | History | Annotate | Download | only in src

Lines Matching refs:xp

183 	char *xp, *ip, *tp, *ipath, *ldest = NULL;
210 Xinit(xs, xp, strlen(ip = ipath) + 1, ATEMP);
232 while (xp > Xstring(xs, xp))
233 if (*--xp == '/')
241 pos = Xsavepos(xs, xp);
243 XcheckN(xs, xp, 1 + len + 1);
244 Xput(xs, xp, '/');
247 memcpy(xp, tp, len);
248 xp += len;
249 *xp = '\0';
252 if (lstat(Xstring(xs, xp), &sb)) {
281 llen = readlink(Xstring(xs, xp), ldest, pathlen);
291 xp = (ldest[0] == '/') ? Xstring(xs, xp) :
292 Xrestpos(xs, xp, pos);
304 if (Xlength(xs, xp) == 0)
309 Xput(xs, xp, '/');
310 Xput(xs, xp, '\0');
317 if (stat(Xstring(xs, xp), &sb)) {
331 return (Xclose(xs, xp));
338 Xfree(xs, xp);
440 rv = chdir(tryp = Xstring(xs, xp) + phys_path);
442 simplify_path(Xstring(xs, xp));
443 rv = chdir(tryp = Xstring(xs, xp));
470 if (Xstring(xs, xp)[0] != '/') {
472 } else if (!physical || !(pwd = allocd = do_realpath(Xstring(xs, xp))))
473 pwd = Xstring(xs, xp);
484 pwd = Xstring(xs, xp);
547 char *xp;
647 Xinit(xs, xp, 128, ATEMP);
652 Xcheck(xs, xp);
669 Xput(xs, xp, '\\');
678 Xput(xs, xp, ts[c]);
682 Xput(xs, xp, c);
685 Xput(xs, xp, ' ');
688 Xput(xs, xp, '\n');
691 Xput(xs, xp, '\0');
692 histsave(&source->line, Xstring(xs, xp), true, false);
693 Xfree(xs, xp);
695 int len = Xlength(xs, xp);
707 for (s = Xstring(xs, xp); len > 0; ) {
1990 char *ccp, *xp = NULL, *wpalloc = NULL;
2054 Xinit(xs, xp, 128, ATEMP);
2082 Xcheck(xs, xp);
2083 Xput(xs, xp, c);
2140 Xput(xs, xp, '\0');
2141 histsave(&source->line, Xstring(xs, xp), true, false);
2142 Xfree(xs, xp);