• Home
  • Raw
  • Download

Lines Matching refs:xp

110 Xcheck_grow(XString *xsp, const char *xp, size_t more)  in Xcheck_grow()  argument
120 return (xsp->beg + (xp - old_beg)); in Xcheck_grow()
705 has_globbing(const char *xp, const char *xpe) in has_globbing() argument
707 const unsigned char *p = (const unsigned char *) xp; in has_globbing()
1399 char *xp, *ip, *tp, *ipath, *ldest = NULL; in do_realpath() local
1427 Xinit(xs, xp, strlen(ip = ipath) + 1, ATEMP); in do_realpath()
1452 while (xp > Xstring(xs, xp)) in do_realpath()
1453 if (*--xp == '/') in do_realpath()
1461 pos = Xsavepos(xs, xp); in do_realpath()
1463 XcheckN(xs, xp, 1 + len + 1); in do_realpath()
1464 Xput(xs, xp, '/'); in do_realpath()
1467 memcpy(xp, tp, len); in do_realpath()
1468 xp += len; in do_realpath()
1469 *xp = '\0'; in do_realpath()
1472 if (mksh_lstat(Xstring(xs, xp), &sb)) { in do_realpath()
1509 llen = readlink(Xstring(xs, xp), ldest, pathlen); in do_realpath()
1525 xp = Xrestpos(xs, xp, pos); in do_realpath()
1530 xp = Xstring(xs, xp); in do_realpath()
1538 Xput(xs, xp, '/'); in do_realpath()
1549 if (Xlength(xs, xp) == 0) in do_realpath()
1554 Xput(xs, xp, '/'); in do_realpath()
1555 Xput(xs, xp, '\0'); in do_realpath()
1562 if (stat(Xstring(xs, xp), &sb)) { in do_realpath()
1575 return (Xclose(xs, xp)); in do_realpath()
1582 Xfree(xs, xp); in do_realpath()
1616 char *xp = Xstring(*xsp, xp); in make_path() local
1649 XcheckN(*xsp, xp, len); in make_path()
1650 memcpy(xp, cwd, len); in make_path()
1651 xp += len; in make_path()
1653 Xput(*xsp, xp, '/'); in make_path()
1655 *phys_pathp = Xlength(*xsp, xp); in make_path()
1657 XcheckN(*xsp, xp, plen); in make_path()
1658 memcpy(xp, plist, plen); in make_path()
1659 xp += plen; in make_path()
1661 Xput(*xsp, xp, '/'); in make_path()
1667 XcheckN(*xsp, xp, len); in make_path()
1668 memcpy(xp, file, len); in make_path()
1898 rv = chdir(tryp = Xstring(xs, xp) + phys_path); in c_cd()
1900 simplify_path(Xstring(xs, xp)); in c_cd()
1901 rv = chdir(tryp = Xstring(xs, xp)); in c_cd()
1911 Xfree(xs, xp); in c_cd()
1932 if (!mksh_abspath(Xstring(xs, xp))) { in c_cd()
1936 } else if ((pwd = allocd = do_realpath(Xstring(xs, xp))) == NULL) { in c_cd()
1940 pwd = Xstring(xs, xp); in c_cd()
1952 pwd = Xstring(xs, xp); in c_cd()
1961 Xfree(xs, xp); in c_cd()