Lines Matching defs:xs
1400 XString xs;
1427 Xinit(xs, xp, strlen(ip = ipath) + 1, ATEMP);
1452 while (xp > Xstring(xs, xp))
1461 pos = Xsavepos(xs, xp);
1463 XcheckN(xs, xp, 1 + len + 1);
1464 Xput(xs, xp, '/');
1472 if (mksh_lstat(Xstring(xs, xp), &sb)) {
1509 llen = readlink(Xstring(xs, xp), ldest, pathlen);
1525 xp = Xrestpos(xs, xp, pos);
1530 xp = Xstring(xs, xp);
1533 /* assert: xp == xs.beg => start of path */
1538 Xput(xs, xp, '/');
1549 if (Xlength(xs, xp) == 0)
1554 Xput(xs, xp, '/');
1555 Xput(xs, xp, '\0');
1562 if (stat(Xstring(xs, xp), &sb)) {
1575 return (Xclose(xs, xp));
1582 Xfree(xs, xp);
1802 XString xs;
1888 /* only a first guess; make_path will enlarge xs if necessary */
1889 XinitN(xs, 1024, ATEMP);
1891 XinitN(xs, PATH_MAX, ATEMP);
1896 cdnode = make_path(current_wd, dir, &cdpath, &xs, &phys_path);
1898 rv = chdir(tryp = Xstring(xs, xp) + phys_path);
1900 simplify_path(Xstring(xs, xp));
1901 rv = chdir(tryp = Xstring(xs, xp));
1911 Xfree(xs, xp);
1932 if (!mksh_abspath(Xstring(xs, xp))) {
1936 } else if ((pwd = allocd = do_realpath(Xstring(xs, xp))) == NULL) {
1940 pwd = Xstring(xs, xp);
1952 pwd = Xstring(xs, xp);
1961 Xfree(xs, xp);