Lines Matching refs:xs

184 	XString xs;
210 Xinit(xs, xp, strlen(ip = ipath) + 1, ATEMP);
232 while (xp > Xstring(xs, xp))
241 pos = Xsavepos(xs, xp);
243 XcheckN(xs, xp, 1 + len + 1);
244 Xput(xs, xp, '/');
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);
354 XString xs;
430 /* only a first guess; make_path will enlarge xs if necessary */
431 XinitN(xs, 1024, ATEMP);
433 XinitN(xs, PATH_MAX, ATEMP);
438 cdnode = make_path(current_wd, dir, &cdpath, &xs, &phys_path);
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);
546 XString xs;
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; ) {
1988 XString cs, xs = { NULL, NULL, 0, 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);