Home
last modified time | relevance | path

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

12

/freebsd-12-stable/bin/sh/
Dcd.c77 static char *curdir = NULL; /* current working directory */ variable
167 if (print && iflag && curdir) { in docd()
168 out1fmt("%s\n", curdir); in docd()
291 if (dir == NULL || curdir == NULL) in findcwd()
296 STPUTS(curdir, new); in findcwd()
327 setvar("OLDPWD", curdir, VEXPORT); in updatepwd()
328 prevdir = curdir; in updatepwd()
329 curdir = dir ? savestr(dir) : NULL; in updatepwd()
355 out1str(curdir); in pwdcmd()
375 if (curdir) in getpwd()
[all …]
/freebsd-12-stable/contrib/tcsh/
Dtw.help.c87 Char *curdir; /* Current directory being looked at */ in do_help() local
97 curdir = xmalloc((Strlen(thpath) + 1) * sizeof (*curdir)); in do_help()
98 cleanup_push(curdir, xfree); in do_help()
109 nextslist(hpath, curdir); in do_help()
118 Strbuf_append(&full, curdir); in do_help()
/freebsd-12-stable/tools/build/
Dbeinstall.sh101 curdir="$dir"
104 [ -e "${BE_MNTPT}${curdir}" ] && break
105 topdir=$curdir
106 curdir=$(dirname ${curdir})
108 [ "$curdir" = "$dir" ] && continue
/freebsd-12-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-12-stable/contrib/bmake/
Dmain.c196 char curdir[MAXPATHLEN + 1]; /* Startup directory */ variable
488 if (getcwd(curdir, MAXPATHLEN) == NULL) { in MainParseArgs()
494 stat(curdir, &sb) != -1 && in MainParseArgs()
497 strncpy(curdir, argvalue, MAXPATHLEN); in MainParseArgs()
612 if (!Dir_FindHereOrAbove(curdir, argvalue+4, in MainParseArgs()
768 snprintf(buf2, MAXPATHLEN, "%s/%s", curdir, path); in Main_SetObjdir()
784 if (enterFlag && strcmp(objdir, curdir) != 0) in Main_SetObjdir()
1221 if (getcwd(curdir, MAXPATHLEN) == NULL) { in main()
1230 printf("%s: Entering directory `%s'\n", progname, curdir); in main()
1235 if (stat(curdir, &sa) == -1) { in main()
[all …]
Dmake.h437 extern char curdir[]; /* Startup directory */
Dmeta.c452 if (!metaCurdirOk && strcmp(curdir, dname) == 0) { in meta_needed()
1594 …"%s: %d: the current working directory has changed from '%s' to '%s'\n", fname, lineno, p, curdir); in meta_oodate()
1618 if (strncmp(curdir, gn->path, (cp - gn->path)) != 0) { in meta_oodate()
DChangeLog1385 o meta.c use curdir[] now exported by main.c
2075 o explicitly look for makefiles in objdir if not found in curdir so
2297 * job.c (JobPrintCommand): See if "curdir" exists before
2388 This routine prints out the .curdir where we stopped and will also
Dparse.c2404 Var_Set(".PARSEDIR", pd = curdir, VAR_GLOBAL); in ParseSetParseFile()
/freebsd-12-stable/contrib/elftoolchain/libelftc/
Dmake-toolchain-version80 curdir=`pwd`
89 cd ${curdir} || usage "Cannot change back to ${curdir}."
/freebsd-12-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-12-stable/contrib/bmake/mk/
Dmeta2deps.py233 self.curdir = getv(conf, 'CURDIR')
292 if self.curdir:
293 srctop = self.find_top(self.curdir, self.srctops)
295 self.reldir = self.curdir.replace(srctop,'')
437 if self.curdir:
438 self.seenit(self.curdir) # we ignore this
565 if path in [self.last_dir, cwd, self.cwd, self.curdir]:
578 if dir == self.cwd or dir == self.curdir:
/freebsd-12-stable/share/mk/
Dmeta2deps.py227 self.curdir = getv(conf, 'CURDIR')
286 if self.curdir:
287 srctop = self.find_top(self.curdir, self.srctops)
289 self.reldir = self.curdir.replace(srctop,'')
431 if self.curdir:
432 self.seenit(self.curdir) # we ignore this
555 if path in [self.last_dir, cwd, self.cwd, self.curdir]:
568 if dir == self.cwd or dir == self.curdir:
/freebsd-12-stable/tests/sys/net/
Dpcp.py34 curdir = os.path.dirname(os.path.realpath(__file__)) variable
35 netpfil_common = curdir + "/../netpfil/common"
Dstp.py35 curdir = os.path.dirname(os.path.realpath(__file__)) variable
36 netpfil_common = curdir + "/../netpfil/common"
/freebsd-12-stable/contrib/netbsd-tests/fs/tmpfs/
Dt_rmdir.sh153 atf_test_case curdir
202 atf_add_test_case curdir
/freebsd-12-stable/sbin/fsck_ffs/
Dfsutil.c850 getpathname(char *namebuf, ino_t curdir, ino_t ino) in getpathname() argument
857 if (curdir == ino && ino == UFS_ROOTINO) { in getpathname()
861 if (busy || !INO_IS_DVALID(curdir)) { in getpathname()
871 if (curdir != ino) { in getpathname()
872 idesc.id_parent = curdir; in getpathname()
Dfsck.h450 void getpathname(char *namebuf, ino_t curdir, ino_t ino);
/freebsd-12-stable/lib/libiconv_modules/mapper_std/
Dcitrus_mapper_std.c340 struct _citrus_mapper * __restrict cm, const char * __restrict curdir, in _citrus_mapper_std_mapper_init() argument
365 snprintf(path, sizeof(path), "%s/%.*s", curdir, (int)lenvar, in _citrus_mapper_std_mapper_init()
/freebsd-12-stable/crypto/openssh/
Dsftp-client.c2640 Attrib curdir; in crossload_dir_internal() local
2661 curdir = *dirattrib; /* dirattrib will be clobbered */ in crossload_dir_internal()
2662 curdir.flags &= ~SSH2_FILEXFER_ATTR_SIZE; in crossload_dir_internal()
2663 curdir.flags &= ~SSH2_FILEXFER_ATTR_UIDGID; in crossload_dir_internal()
2664 if ((curdir.flags & SSH2_FILEXFER_ATTR_PERMISSIONS) == 0) { in crossload_dir_internal()
2667 curdir.perm = S_IWUSR|S_IXUSR; in crossload_dir_internal()
2668 curdir.flags |= SSH2_FILEXFER_ATTR_PERMISSIONS; in crossload_dir_internal()
2671 mode = curdir.perm & 01777; in crossload_dir_internal()
2672 curdir.perm = mode | (S_IWUSR|S_IXUSR); in crossload_dir_internal()
2680 if (do_mkdir(to, to_path, &curdir, 0) != 0) { in crossload_dir_internal()
[all …]
/freebsd-12-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-12-stable/tests/sys/cddl/zfs/include/
Dlibtest.kshlib781 typeset curdir=$destdir/$dn
782 log_must $MKDIR -p $curdir
784 log_cmd $FILE_WRITE -o create -f $curdir/$TESTFILE.$fn \
/freebsd-12-stable/contrib/libucl/src/
Ducl_util.c1961 char realbuf[PATH_MAX], *curdir; local
1981 curdir = dirname (realbuf);
1982 ucl_parser_register_variable (parser, "CURDIR", curdir);
1986 curdir = getcwd (realbuf, sizeof (realbuf));
1988 ucl_parser_register_variable (parser, "CURDIR", curdir);
/freebsd-12-stable/crypto/heimdal/
Dltmain.sh4704 /* not found in PATH; assume curdir */
/freebsd-12-stable/contrib/ntp/sntp/libevent/
Dltmain.sh6088 /* not found in PATH; assume curdir */

12