• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching refs:xp

114 Xcheck_grow(XString *xsp, const char *xp, size_t more)  in Xcheck_grow()  argument
124 return (xsp->beg + (xp - old_beg)); in Xcheck_grow()
699 has_globbing(const char *xp, const char *xpe) in has_globbing() argument
701 const unsigned char *p = (const unsigned char *) xp; in has_globbing()
1389 char *xp, *ip, *tp, *ipath, *ldest = NULL; in do_realpath() local
1417 Xinit(xs, xp, strlen(ip = ipath) + 1, ATEMP); in do_realpath()
1442 while (xp > Xstring(xs, xp)) in do_realpath()
1443 if (*--xp == '/') in do_realpath()
1451 pos = Xsavepos(xs, xp); in do_realpath()
1453 XcheckN(xs, xp, 1 + len + 1); in do_realpath()
1454 Xput(xs, xp, '/'); in do_realpath()
1457 memcpy(xp, tp, len); in do_realpath()
1458 xp += len; in do_realpath()
1459 *xp = '\0'; in do_realpath()
1462 if (mksh_lstat(Xstring(xs, xp), &sb)) { in do_realpath()
1499 llen = readlink(Xstring(xs, xp), ldest, pathlen); in do_realpath()
1515 xp = Xrestpos(xs, xp, pos); in do_realpath()
1520 xp = Xstring(xs, xp); in do_realpath()
1528 Xput(xs, xp, '/'); in do_realpath()
1539 if (Xlength(xs, xp) == 0) in do_realpath()
1544 Xput(xs, xp, '/'); in do_realpath()
1545 Xput(xs, xp, '\0'); in do_realpath()
1552 if (stat(Xstring(xs, xp), &sb)) { in do_realpath()
1566 return (Xclose(xs, xp)); in do_realpath()
1574 Xfree(xs, xp); in do_realpath()
1608 char *xp = Xstring(*xsp, xp); in make_path() local
1641 XcheckN(*xsp, xp, len); in make_path()
1642 memcpy(xp, cwd, len); in make_path()
1643 xp += len; in make_path()
1645 Xput(*xsp, xp, '/'); in make_path()
1647 *phys_pathp = Xlength(*xsp, xp); in make_path()
1649 XcheckN(*xsp, xp, plen); in make_path()
1650 memcpy(xp, plist, plen); in make_path()
1651 xp += plen; in make_path()
1653 Xput(*xsp, xp, '/'); in make_path()
1659 XcheckN(*xsp, xp, len); in make_path()
1660 memcpy(xp, file, len); in make_path()
1890 rv = chdir(tryp = Xstring(xs, xp) + phys_path); in c_cd()
1892 simplify_path(Xstring(xs, xp)); in c_cd()
1893 rv = chdir(tryp = Xstring(xs, xp)); in c_cd()
1903 Xfree(xs, xp); in c_cd()
1924 if (Xstring(xs, xp)[0] != '/') { in c_cd()
1928 } else if ((pwd = allocd = do_realpath(Xstring(xs, xp))) == NULL) { in c_cd()
1932 pwd = Xstring(xs, xp); in c_cd()
1944 pwd = Xstring(xs, xp); in c_cd()
1953 Xfree(xs, xp); in c_cd()