Searched refs:curdir (Results 1 - 25 of 25) sorted by relevance

/freebsd-11-stable/bin/sh/
H A Dcd.c77 static char *curdir = NULL; /* current working directory */ variable
167 if (print && iflag && curdir)
168 out1fmt("%s\n", curdir);
186 * something we can't stat, clear curdir to force a getcwd()
282 if (dir == NULL || curdir == NULL)
287 STPUTS(curdir, new);
306 * Update curdir (the name of the current directory) in response to a
318 setvar("OLDPWD", curdir, VEXPORT);
319 prevdir = curdir;
320 curdir
[all...]
/freebsd-11-stable/contrib/tcsh/
H A Dtw.help.c87 Char *curdir; /* Current directory being looked at */ local
97 curdir = xmalloc((Strlen(thpath) + 1) * sizeof (*curdir));
98 cleanup_push(curdir, xfree);
109 nextslist(hpath, curdir);
118 Strbuf_append(&full, curdir);
/freebsd-11-stable/contrib/elftoolchain/libelftc/
H A Dmake-toolchain-version80 curdir=`pwd`
89 cd ${curdir} || usage "Cannot change back to ${curdir}."
/freebsd-11-stable/sbin/restore/
H A Dinteractive.c100 char curdir[MAXPATHLEN]; local
112 canon("/", curdir, sizeof(curdir));
124 getcmd(curdir, cmd, name, sizeof(name), &arglist);
152 (void) strcpy(curdir, name);
212 printlist(name, curdir);
220 if (curdir[1] == '\0')
223 fprintf(stderr, "%s\n", &curdir[1]);
294 * there are no arguments on the command line, then "curdir"
299 * "curdir" i
303 getcmd(char *curdir, char *cmd, char *name, size_t size, struct arglist *ap) argument
[all...]
/freebsd-11-stable/contrib/ntp/libntp/
H A Dmsyslog.c464 char curdir[512]; local
498 NULL != getcwd(curdir, sizeof(curdir))) {
499 cd_octets = strlen(curdir);
502 DIR_SEP == curdir[cd_octets - 1])
510 (int)cd_octets, curdir, DIR_SEP,
/freebsd-11-stable/contrib/bmake/
H A Dmain.c196 char curdir[MAXPATHLEN + 1]; /* Startup directory */ variable
488 if (getcwd(curdir, MAXPATHLEN) == NULL) {
494 stat(curdir, &sb) != -1 &&
497 strncpy(curdir, argvalue, MAXPATHLEN);
612 if (!Dir_FindHereOrAbove(curdir, argvalue+4,
768 snprintf(buf2, MAXPATHLEN, "%s/%s", curdir, path);
784 if (enterFlag && strcmp(objdir, curdir) != 0)
1221 if (getcwd(curdir, MAXPATHLEN) == NULL) {
1230 printf("%s: Entering directory `%s'\n", progname, curdir);
1235 if (stat(curdir,
[all...]
H A Dmake.h437 extern char curdir[]; /* Startup directory */
H A Dmeta.c455 if (!metaCurdirOk && strcmp(curdir, dname) == 0) {
1535 fprintf(debug_file, "%s: %d: the current working directory has changed from '%s' to '%s'\n", fname, lineno, p, curdir);
1559 if (strncmp(curdir, gn->path, (cp - gn->path)) != 0) {
H A Dparse.c2396 Var_Set(".PARSEDIR", pd = curdir, VAR_GLOBAL, 0);
/freebsd-11-stable/share/mk/
H A Dmeta2deps.py201 self.curdir = getv(conf, 'CURDIR')
259 if self.curdir:
260 srctop = self.find_top(self.curdir, self.srctops)
262 self.reldir = self.curdir.replace(srctop,'')
401 if self.curdir:
402 self.seenit(self.curdir) # we ignore this
509 if path in [self.last_dir, cwd, self.cwd, self.curdir]:
522 if dir == self.cwd or dir == self.curdir:
/freebsd-11-stable/contrib/bmake/mk/
H A Dmeta2deps.py226 self.curdir = getv(conf, 'CURDIR')
285 if self.curdir:
286 srctop = self.find_top(self.curdir, self.srctops)
288 self.reldir = self.curdir.replace(srctop,'')
430 if self.curdir:
431 self.seenit(self.curdir) # we ignore this
554 if path in [self.last_dir, cwd, self.cwd, self.curdir]:
567 if dir == self.cwd or dir == self.curdir:
/freebsd-11-stable/contrib/netbsd-tests/fs/tmpfs/
H A Dt_rmdir.sh153 atf_test_case curdir
202 atf_add_test_case curdir
/freebsd-11-stable/lib/libiconv_modules/mapper_std/
H A Dcitrus_mapper_std.c338 struct _citrus_mapper * __restrict cm, const char * __restrict curdir,
363 snprintf(path, sizeof(path), "%s/%.*s", curdir, (int)lenvar,
337 _citrus_mapper_std_mapper_init(struct _citrus_mapper_area *__restrict ma __unused, struct _citrus_mapper * __restrict cm, const char * __restrict curdir, const void * __restrict var, size_t lenvar, struct _citrus_mapper_traits * __restrict mt, size_t lenmt) argument
/freebsd-11-stable/sbin/fsck_ffs/
H A Dfsutil.c850 getpathname(char *namebuf, ino_t curdir, ino_t ino) argument
857 if (curdir == ino && ino == ROOTINO) {
861 if (busy || !INO_IS_DVALID(curdir)) {
871 if (curdir != ino) {
872 idesc.id_parent = curdir;
H A Dfsck.h446 void getpathname(char *namebuf, ino_t curdir, ino_t ino);
/freebsd-11-stable/crypto/heimdal/appl/ftp/ftpd/
H A Dftpd.c120 *(file) == '/' ? "" : curdir(), file);
124 *(file1) == '/' ? "" : curdir(), file1, \
125 *(file2) == '/' ? "" : curdir(), file2);
130 *(file) == '/' ? "" : curdir(), file); \
133 cmd, (*(file) == '/') ? "" : curdir(), file, (long)cnt); \
152 curdir(void) function
/freebsd-11-stable/contrib/libucl/src/
H A Ducl_util.c1771 char realbuf[PATH_MAX], *curdir; local
1785 curdir = dirname (realbuf);
1786 ucl_parser_register_variable (parser, "CURDIR", curdir);
1790 curdir = getcwd (realbuf, sizeof (realbuf));
1792 ucl_parser_register_variable (parser, "CURDIR", curdir);
/freebsd-11-stable/contrib/ldns/
H A Dltmain.sh4710 /* not found in PATH; assume curdir */
/freebsd-11-stable/contrib/openbsm/config/
H A Dltmain.sh4743 /* not found in PATH; assume curdir */
/freebsd-11-stable/crypto/heimdal/
H A Dltmain.sh4704 /* not found in PATH; assume curdir */
/freebsd-11-stable/contrib/ntp/sntp/libevent/build-aux/
H A Dltmain.sh6088 /* not found in PATH; assume curdir */
/freebsd-11-stable/contrib/openpam/
H A Dltmain.sh6088 /* not found in PATH; assume curdir */
/freebsd-11-stable/contrib/file/
H A Dltmain.sh6091 /* not found in PATH; assume curdir */
/freebsd-11-stable/contrib/unbound/
H A Dltmain.sh6088 /* not found in PATH; assume curdir */
/freebsd-11-stable/contrib/sqlite3/
H A Dltmain.sh6088 /* not found in PATH; assume curdir */

Completed in 374 milliseconds