Home | History | Annotate | Download | only in src

Lines Matching defs:xp

113 Xcheck_grow(XString *xsp, const char *xp, size_t more)
123 return (xsp->beg + (xp - old_beg));
647 has_globbing(const char *xp, const char *xpe)
649 const unsigned char *p = (const unsigned char *) xp;
1343 char *xp, *ip, *tp, *ipath, *ldest = NULL;
1372 Xinit(xs, xp, strlen(ip = ipath) + 1, ATEMP);
1397 while (xp > Xstring(xs, xp))
1398 if (*--xp == '/')
1406 pos = Xsavepos(xs, xp);
1408 XcheckN(xs, xp, 1 + len + 1);
1409 Xput(xs, xp, '/');
1412 memcpy(xp, tp, len);
1413 xp += len;
1414 *xp = '\0';
1417 if (mksh_lstat(Xstring(xs, xp), &sb)) {
1454 llen = readlink(Xstring(xs, xp), ldest, pathlen);
1470 xp = Xrestpos(xs, xp, pos);
1475 xp = Xstring(xs, xp);
1478 /* assert: xp == xs.beg => start of path */
1483 Xput(xs, xp, '/');
1494 if (Xlength(xs, xp) == 0)
1499 Xput(xs, xp, '/');
1500 Xput(xs, xp, '\0');
1507 if (stat(Xstring(xs, xp), &sb)) {
1521 return (Xclose(xs, xp));
1529 Xfree(xs, xp);
1563 char *xp = Xstring(*xsp, xp);
1596 XcheckN(*xsp, xp, len);
1597 memcpy(xp, cwd, len);
1598 xp += len;
1600 Xput(*xsp, xp, '/');
1602 *phys_pathp = Xlength(*xsp, xp);
1604 XcheckN(*xsp, xp, plen);
1605 memcpy(xp, plist, plen);
1606 xp += plen;
1608 Xput(*xsp, xp, '/');
1614 XcheckN(*xsp, xp, len);
1615 memcpy(xp, file, len);
1845 rv = chdir(tryp = Xstring(xs, xp) + phys_path);
1847 simplify_path(Xstring(xs, xp));
1848 rv = chdir(tryp = Xstring(xs, xp));
1858 Xfree(xs, xp);
1879 if (Xstring(xs, xp)[0] != '/') {
1883 } else if ((pwd = allocd = do_realpath(Xstring(xs, xp))) == NULL) {
1887 pwd = Xstring(xs, xp);
1899 pwd = Xstring(xs, xp);
1908 Xfree(xs, xp);