Lines Matching defs:cwd
123 "usage: %s [-C cwd] [-L linkprefix] [-m mode] [-o owner] [-g group]\n"
192 char *linkprefix, *owner, *group, *cp, *cwd, *todir, *toname, *name, *base, *linkname, *bp, buf[BUFSIZ];
199 cwd = linkname = linkprefix = owner = group = 0;
205 cwd = optarg;
256 if (!cwd) {
258 cwd = getcwd(0, PATH_MAX);
260 cwd = malloc(PATH_MAX + 1);
261 cwd = getcwd(cwd, PATH_MAX);
272 xchdir(cwd);
303 /* -L implies -l and prefixes names with a $cwd arg. */
313 lplen = relatepaths(todir, cwd, linkname);
318 xchdir(cwd);
411 free(cwd);