Home
last modified time | relevance | path

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

12

/freebsd-10-stable/bin/sh/
Dcd.c77 static char *curdir = NULL; /* current working directory */ variable
115 dest = prevdir ? prevdir : curdir; in cdcmd()
170 if (print && iflag && curdir) in docd()
171 out1fmt("%s\n", curdir); in docd()
283 if (dir == NULL || curdir == NULL) in findcwd()
288 STPUTS(curdir, new); in findcwd()
318 prevdir = curdir; in updatepwd()
319 curdir = dir ? savestr(dir) : NULL; in updatepwd()
320 setvar("PWD", curdir, VEXPORT); in updatepwd()
346 out1str(curdir); in pwdcmd()
[all …]
/freebsd-10-stable/usr.bin/make/
Dmain.c112 static char *curdir; /* startup directory */ variable
272 if (curdir != objdir && *fname != '/') { in ReadMakefile()
273 snprintf(path, MAXPATHLEN, "%s/%s", curdir, fname); in ReadMakefile()
405 if (getcwd(curdir, MAXPATHLEN) == NULL) in MainParseArgs()
507 if (!Dir_FindHereOrAbove(curdir, optarg + 4, in MainParseArgs()
731 if (curdir != objdir) { in Remake_Makefiles()
732 if (chdir(curdir) < 0) in Remake_Makefiles()
733 Fatal("Failed to change directory to %s.", curdir); in Remake_Makefiles()
852 if (curdir != objdir) { in Remake_Makefiles()
902 curdir = cdpath; in main()
[all …]
/freebsd-10-stable/contrib/tcsh/
Dtw.help.c91 Char *curdir; /* Current directory being looked at */ in do_help() local
101 curdir = xmalloc((Strlen(thpath) + 1) * sizeof (*curdir)); in do_help()
102 cleanup_push(curdir, xfree); in do_help()
113 nextslist(hpath, curdir); in do_help()
122 Strbuf_append(&full, curdir); in do_help()
/freebsd-10-stable/sbin/restore/
Dinteractive.c102 char curdir[MAXPATHLEN]; in runcmdshell() local
114 canon("/", curdir, sizeof(curdir)); in runcmdshell()
126 getcmd(curdir, cmd, name, sizeof(name), &arglist); in runcmdshell()
154 (void) strcpy(curdir, name); in runcmdshell()
214 printlist(name, curdir); in runcmdshell()
222 if (curdir[1] == '\0') in runcmdshell()
225 fprintf(stderr, "%s\n", &curdir[1]); in runcmdshell()
305 getcmd(char *curdir, char *cmd, char *name, size_t size, struct arglist *ap) in getcmd() argument
342 (void) strncpy(name, curdir, size); in getcmd()
366 snprintf(output, sizeof(output), "%s/%s", curdir, rawname); in getcmd()
/freebsd-10-stable/contrib/bmake/
Dmain.c196 char curdir[MAXPATHLEN + 1]; /* Startup directory */ variable
486 if (getcwd(curdir, MAXPATHLEN) == NULL) { in MainParseArgs()
492 stat(curdir, &sb) != -1 && in MainParseArgs()
495 strncpy(curdir, argvalue, MAXPATHLEN); in MainParseArgs()
610 if (!Dir_FindHereOrAbove(curdir, argvalue+4, in MainParseArgs()
766 snprintf(buf2, MAXPATHLEN, "%s/%s", curdir, path); in Main_SetObjdir()
782 if (enterFlag && strcmp(objdir, curdir) != 0) in Main_SetObjdir()
1218 if (getcwd(curdir, MAXPATHLEN) == NULL) { in main()
1227 printf("%s: Entering directory `%s'\n", progname, curdir); in main()
1232 if (stat(curdir, &sa) == -1) { in main()
[all …]
Dmake.h436 extern char curdir[]; /* Startup directory */
Dmeta.c448 if (!metaCurdirOk && strcmp(curdir, dname) == 0) { in meta_needed()
1526 …"%s: %d: the current working directory has changed from '%s' to '%s'\n", fname, lineno, p, curdir); in meta_oodate()
1550 if (strncmp(curdir, gn->path, (cp - gn->path)) != 0) { in meta_oodate()
DChangeLog1012 o meta.c use curdir[] now exported by main.c
1702 o explicitly look for makefiles in objdir if not found in curdir so
1924 * job.c (JobPrintCommand): See if "curdir" exists before
2015 This routine prints out the .curdir where we stopped and will also
Dparse.c2395 Var_Set(".PARSEDIR", pd = curdir, VAR_GLOBAL, 0); in ParseSetParseFile()
/freebsd-10-stable/contrib/ntp/libntp/
Dmsyslog.c464 char curdir[512]; in change_logfile() local
498 NULL != getcwd(curdir, sizeof(curdir))) { in change_logfile()
499 cd_octets = strlen(curdir); in change_logfile()
502 DIR_SEP == curdir[cd_octets - 1]) in change_logfile()
510 (int)cd_octets, curdir, DIR_SEP, in change_logfile()
/freebsd-10-stable/usr.sbin/pkg_install/create/
Dpl.c146 dev_t curdir; in copy_plist() local
165 curdir = stb.st_dev; in copy_plist()
167 curdir = (dev_t) -1; /* in copy_plist()
191 if (lstat(fn, &stb) == 0 && stb.st_dev == curdir && in copy_plist()
245 if (lstat(fn, &stb) == 0 && stb.st_dev == curdir && in copy_plist()
/freebsd-10-stable/contrib/bmake/mk/
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-10-stable/contrib/netbsd-tests/fs/tmpfs/
Dt_rmdir.sh153 atf_test_case curdir
202 atf_add_test_case curdir
/freebsd-10-stable/sbin/fsck_ffs/
Dfsutil.c852 getpathname(char *namebuf, ino_t curdir, ino_t ino) in getpathname() argument
859 if (curdir == ino && ino == ROOTINO) { in getpathname()
863 if (busy || !INO_IS_DVALID(curdir)) { in getpathname()
873 if (curdir != ino) { in getpathname()
874 idesc.id_parent = curdir; in getpathname()
Dfsck.h440 void getpathname(char *namebuf, ino_t curdir, ino_t ino);
/freebsd-10-stable/lib/libiconv_modules/mapper_std/
Dcitrus_mapper_std.c338 struct _citrus_mapper * __restrict cm, const char * __restrict curdir, in _citrus_mapper_std_mapper_init() argument
363 snprintf(path, sizeof(path), "%s/%.*s", curdir, (int)lenvar, in _citrus_mapper_std_mapper_init()
/freebsd-10-stable/crypto/heimdal/appl/ftp/ftpd/
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) in curdir() function
/freebsd-10-stable/contrib/libucl/src/
Ducl_util.c904 char realbuf[PATH_MAX], *curdir; local
918 curdir = dirname (realbuf);
919 ucl_parser_register_variable (parser, "CURDIR", curdir);
923 curdir = getcwd (realbuf, sizeof (realbuf));
925 ucl_parser_register_variable (parser, "CURDIR", curdir);
/freebsd-10-stable/crypto/heimdal/
Dltmain.sh4704 /* not found in PATH; assume curdir */
/freebsd-10-stable/contrib/libyaml/config/
Dltmain.sh3743 /* not found in PATH; assume curdir */
/freebsd-10-stable/contrib/file/
Dltmain.sh4711 /* not found in PATH; assume curdir */
/freebsd-10-stable/contrib/sqlite3/
Dltmain.sh4710 /* not found in PATH; assume curdir */
/freebsd-10-stable/contrib/openpam/
Dltmain.sh4743 /* not found in PATH; assume curdir */
/freebsd-10-stable/contrib/unbound/
Dltmain.sh4710 /* not found in PATH; assume curdir */
/freebsd-10-stable/contrib/openbsm/config/
Dltmain.sh4743 /* not found in PATH; assume curdir */

12