Home
last modified time | relevance | path

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

12

/freebsd/bin/sh/
H A Dcd.c69 static char *curdir = NULL; /* current working directory */ variable
159 if (print && iflag && curdir) { in docd()
160 out1fmt("%s\n", curdir); in docd()
283 if (dir == NULL || curdir == NULL) in findcwd()
288 STPUTS(curdir, new); in findcwd()
319 setvar("OLDPWD", curdir, VEXPORT); in updatepwd()
320 prevdir = curdir; in updatepwd()
321 curdir = dir ? savestr(dir) : NULL; in updatepwd()
347 out1str(curdir); in pwdcmd()
367 if (curdir) in getpwd()
[all …]
/freebsd/crypto/openssl/test/recipes/
H A D40-test_rehash.t30 ok(run(app(["openssl", "rehash", curdir()])),
36 ok(run(app(["openssl", "rehash", curdir()])),
41 ok(run(app(["openssl", "rehash", curdir()])),
47 chmod 0500, curdir();
53 isnt(run(app(["openssl", "rehash", curdir()])), 1,
56 chmod 0700, curdir(); # make it writable again, so cleanup works
76 catfile(curdir(),
H A D60-test_x509_store.t43 copy(srctop_file("test", "certs", "$_.pem"), curdir());
45 ok(run(app([qw(openssl rehash), curdir()])), "Rehashing");
48 ok(verify("ee-cert", "sslserver", curdir(), ["ca-cert"], "-show_chain"),
52 ok(!verify("ca-root2", "any", curdir(), [], "-show_chain"));
H A D90-test_store.t283 catdir(curdir(), 'rehash')])));
287 catdir(curdir(), 'rehash')])));
290 catdir(curdir(), 'rehash')])));
293 catdir(curdir(), 'rehash')])));
297 catdir(curdir(), 'rehash')])));
301 catdir(curdir(), 'rehash')])));
528 mkdir(catdir(curdir(), 'rehash'))
530 catdir(curdir(), 'rehash'))
532 catdir(curdir(), 'rehash'))
533 && run(app(['openssl', 'rehash', catdir(curdir(), 'rehash')]))
H A D03-test_fipsinstall.t267 local $ENV{OPENSSL_CONF_INCLUDE} = abs2rel(curdir());
/freebsd/contrib/tcsh/
H A 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/tools/build/
H A Dbeinstall.sh103 curdir="$dir"
106 [ -e "${BE_MNTPT}${curdir}" ] && break
107 topdir=$curdir
108 curdir=$(dirname ${curdir})
110 [ "$curdir" = "$dir" ] && continue
/freebsd/sbin/restore/
H A Dinteractive.c93 char curdir[MAXPATHLEN]; in runcmdshell() local
105 canon("/", curdir, sizeof(curdir)); in runcmdshell()
117 getcmd(curdir, cmd, name, sizeof(name), &arglist); in runcmdshell()
145 (void) strcpy(curdir, name); in runcmdshell()
205 printlist(name, curdir); in runcmdshell()
213 if (curdir[1] == '\0') in runcmdshell()
216 fprintf(stderr, "%s\n", &curdir[1]); in runcmdshell()
296 getcmd(char *curdir, char *cmd, char *name, size_t size, struct arglist *ap) in getcmd() argument
333 (void) strncpy(name, curdir, size); in getcmd()
357 snprintf(output, sizeof(output), "%s/%s", curdir, rawname); in getcmd()
/freebsd/contrib/bmake/
H A Dmain.c140 char curdir[MAXPATHLEN + 1]; /* Startup directory */
363 if (getcwd(curdir, MAXPATHLEN) == NULL) { in MainParseArgChdir()
369 stat(curdir, &sb) != -1 && in MainParseArgChdir()
372 snprintf(curdir, MAXPATHLEN, "%s", argvalue); in MainParseArgChdir()
443 char *found_path = Dir_FindHereOrAbove(curdir, argvalue + 4); in MainParseArgSysInc()
730 if (snprintf(buf2, MAXPATHLEN, "%s/%s", curdir, path) <= MAXPATHLEN) in Main_SetObjdir()
755 if (opts.enterFlag && strcmp(objdir, curdir) != 0) in Main_SetObjdir()
1024 * since the value of curdir can vary depending on how we got
1052 snprintf(curdir, MAXPATHLEN, "%s", pwd); in HandlePWD()
1073 Dir_InitCur(curdir); in InitObjdir()
143 char curdir[MAXPATHLEN + 1]; /* Startup directory */ global() variable
[all...]
H A Dmeta.c453 if (!metaCurdirOk && strcmp(curdir, dname) == 0) { in meta_needed()
1573 fname, lineno, p, curdir); in meta_oodate()
1596 if (strncmp(curdir, gn->path, (size_t)(cp - gn->path)) != 0) { in meta_oodate()
/freebsd/contrib/elftoolchain/libelftc/
H A Dmake-toolchain-version80 curdir=`pwd`
89 cd ${curdir} || usage "Cannot change back to ${curdir}."
/freebsd/contrib/ntp/libntp/
H A 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/tests/sys/net/
H A Dpcp.py34 curdir = os.path.dirname(os.path.realpath(__file__)) variable
35 netpfil_common = curdir + "/../netpfil/common"
H A Dstp.py35 curdir = os.path.dirname(os.path.realpath(__file__)) variable
36 netpfil_common = curdir + "/../netpfil/common"
/freebsd/contrib/bmake/mk/
H A Dmeta2deps.py254 self.curdir = conf.get('CURDIR')
316 if self.curdir:
317 srctop = self.find_top(self.curdir, self.srctops)
319 self.reldir = self.curdir.replace(srctop,'')
462 if self.curdir:
463 self.seenit(self.curdir) # we ignore this
637 if path in [self.last_dir, cwd, self.cwd, self.curdir]:
650 if dir == self.cwd or dir == self.curdir:
/freebsd/share/mk/
H A Dmeta2deps.py254 self.curdir = conf.get('CURDIR')
316 if self.curdir:
317 srctop = self.find_top(self.curdir, self.srctops)
319 self.reldir = self.curdir.replace(srctop,'')
462 if self.curdir:
463 self.seenit(self.curdir) # we ignore this
637 if path in [self.last_dir, cwd, self.cwd, self.curdir]:
650 if dir == self.cwd or dir == self.curdir:
/freebsd/tests/sys/netinet/
H A Digmp.py36 curdir = os.path.dirname(os.path.realpath(__file__)) variable
37 netpfil_common = curdir + "/../netpfil/common"
/freebsd/release/scripts/
H A Dmake-oci-image.sh5 curdir=$1; shift
20 . ${curdir}/tools/oci-image-${image}.conf
/freebsd/contrib/netbsd-tests/fs/tmpfs/
H A Dt_rmdir.sh153 atf_test_case curdir
202 atf_add_test_case curdir
/freebsd/crypto/openssl/test/
H A Drun_tests.pl310 $harness->runtests(map { [ abs2rel($_, rel2abs(curdir())), basename($_) ] }
315 $harness->runtests(map { [ abs2rel($_, rel2abs(curdir())), basename($_) ] }
/freebsd/release/tools/
H A Doci-image-static.conf10 local srcdir=${curdir}/..
/freebsd/lib/libiconv_modules/mapper_std/
H A Dcitrus_mapper_std.c339 struct _citrus_mapper * __restrict cm, const char * __restrict curdir, in _citrus_mapper_std_mapper_init() argument
364 snprintf(path, sizeof(path), "%s/%.*s", curdir, (int)lenvar, in _citrus_mapper_std_mapper_init()
/freebsd/crypto/openssh/
H A Dsftp-client.c2709 Attrib *a, curdir, ldirattrib, newdir, lsym; in crossload_dir_internal() local
2732 curdir = *dirattrib; /* dirattrib will be clobbered */ in crossload_dir_internal()
2733 curdir.flags &= ~SSH2_FILEXFER_ATTR_SIZE; in crossload_dir_internal()
2734 curdir.flags &= ~SSH2_FILEXFER_ATTR_UIDGID; in crossload_dir_internal()
2735 if ((curdir.flags & SSH2_FILEXFER_ATTR_PERMISSIONS) == 0) { in crossload_dir_internal()
2738 curdir.perm = S_IWUSR|S_IXUSR; in crossload_dir_internal()
2739 curdir.flags |= SSH2_FILEXFER_ATTR_PERMISSIONS; in crossload_dir_internal()
2742 mode = curdir.perm & 01777; in crossload_dir_internal()
2743 curdir.perm = mode | (S_IWUSR|S_IXUSR); in crossload_dir_internal()
2751 if (sftp_mkdir(to, to_path, &curdir, 0) != 0) { in crossload_dir_internal()
[all …]
/freebsd/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) in curdir() function
/freebsd/sbin/fsck_ffs/
H A Dfsutil.c1264 getpathname(char *namebuf, ino_t curdir, ino_t ino) in getpathname() argument
1272 if (curdir == ino && ino == UFS_ROOTINO) { in getpathname()
1276 if (busy || !INO_IS_DVALID(curdir)) { in getpathname()
1286 if (curdir != ino) { in getpathname()
1287 idesc.id_parent = curdir; in getpathname()

12