| /freebsd-10-stable/bin/sh/ |
| D | cd.c | 77 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/ |
| D | main.c | 112 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/ |
| D | tw.help.c | 91 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/ |
| D | interactive.c | 102 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/ |
| D | main.c | 196 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 …]
|
| D | make.h | 436 extern char curdir[]; /* Startup directory */
|
| D | meta.c | 448 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()
|
| D | ChangeLog | 1012 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
|
| D | parse.c | 2395 Var_Set(".PARSEDIR", pd = curdir, VAR_GLOBAL, 0); in ParseSetParseFile()
|
| /freebsd-10-stable/contrib/ntp/libntp/ |
| D | msyslog.c | 464 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/ |
| D | pl.c | 146 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/ |
| D | meta2deps.py | 226 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/ |
| D | t_rmdir.sh | 153 atf_test_case curdir 202 atf_add_test_case curdir
|
| /freebsd-10-stable/sbin/fsck_ffs/ |
| D | fsutil.c | 852 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()
|
| D | fsck.h | 440 void getpathname(char *namebuf, ino_t curdir, ino_t ino);
|
| /freebsd-10-stable/lib/libiconv_modules/mapper_std/ |
| D | citrus_mapper_std.c | 338 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/ |
| D | ftpd.c | 120 *(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/ |
| D | ucl_util.c | 904 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/ |
| D | ltmain.sh | 4704 /* not found in PATH; assume curdir */
|
| /freebsd-10-stable/contrib/libyaml/config/ |
| D | ltmain.sh | 3743 /* not found in PATH; assume curdir */
|
| /freebsd-10-stable/contrib/file/ |
| D | ltmain.sh | 4711 /* not found in PATH; assume curdir */
|
| /freebsd-10-stable/contrib/sqlite3/ |
| D | ltmain.sh | 4710 /* not found in PATH; assume curdir */
|
| /freebsd-10-stable/contrib/openpam/ |
| D | ltmain.sh | 4743 /* not found in PATH; assume curdir */
|
| /freebsd-10-stable/contrib/unbound/ |
| D | ltmain.sh | 4710 /* not found in PATH; assume curdir */
|
| /freebsd-10-stable/contrib/openbsm/config/ |
| D | ltmain.sh | 4743 /* not found in PATH; assume curdir */
|