Home
last modified time | relevance | path

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

12

/freebsd/bin/sh/
H A Dcd.c71 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.t298 catdir(curdir(), 'rehash')])));
302 catdir(curdir(), 'rehash')])));
305 catdir(curdir(), 'rehash')])));
308 catdir(curdir(), 'rehash')])));
312 catdir(curdir(), 'rehash')])));
316 catdir(curdir(), 'rehash')])));
543 mkdir(catdir(curdir(), 'rehash'))
545 catdir(curdir(), 'rehash'))
547 catdir(curdir(), 'rehash'))
548 && run(app(['openssl', 'rehash', catdir(curdir(), 'rehash')]))
/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/contrib/bmake/
H A Dmain.c144 char curdir[MAXPATHLEN + 1]; /* Startup directory */ variable
368 if (getcwd(curdir, MAXPATHLEN) == NULL) { in MainParseArgChdir()
375 stat(curdir, &sb) != -1 && in MainParseArgChdir()
378 snprintf(curdir, MAXPATHLEN, "%s", argvalue); in MainParseArgChdir()
391 progname, argvalue, curdir); in MainParseArgJobsInternal()
451 char *found_path = Dir_FindHereOrAbove(curdir, argvalue + 4); in MainParseArgSysInc()
738 if (snprintf(buf2, MAXPATHLEN, "%s/%s", curdir, path) <= MAXPATHLEN) in Main_SetObjdir()
763 if (opts.enterFlag && strcmp(objdir, curdir) != 0) in Main_SetObjdir()
1044 snprintf(curdir, MAXPATHLEN, "%s", pwd); in HandlePWD()
1065 Dir_InitCur(curdir); in InitObjdir()
[all …]
H A Dtarg.c552 pass, curdir); in Targ_PrintGraph()
573 pass, curdir); in Targ_PrintGraph()
/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/elftoolchain/libelftc/
H A Dmake-toolchain-version80 curdir=`pwd`
89 cd ${curdir} || usage "Cannot change back to ${curdir}."
/freebsd/release/scripts/
H A Dmake-oci-image.sh5 curdir=$1; shift
20 . ${curdir}/tools/oci-image-${image}.conf
25 local srcdir=$(realpath ${curdir}/..)
48 for i in ${curdir}/../share/keys/pkg/trusted/pkg.*; do
/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/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
666 if path in [self.last_dir, cwd, self.cwd, self.curdir]:
679 if dir == self.cwd or dir == self.curdir:
/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
666 if path in [self.last_dir, cwd, self.cwd, self.curdir]:
679 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/contrib/netbsd-tests/fs/tmpfs/
H A Dt_rmdir.sh153 atf_test_case curdir
202 atf_add_test_case curdir
/freebsd/crypto/krb5/src/windows/kfwlogon/
H A Dkfwcommon.c1224 char * curdir = NULL; in KFW_cleanup_orphaned_caches() local
1243 curdir = (char *)malloc(count); in KFW_cleanup_orphaned_caches()
1244 if (!curdir) in KFW_cleanup_orphaned_caches()
1246 count2 = GetCurrentDirectory(count, curdir); in KFW_cleanup_orphaned_caches()
1272 SetCurrentDirectory(curdir); in KFW_cleanup_orphaned_caches()
1279 if (curdir) in KFW_cleanup_orphaned_caches()
1280 free(curdir); in KFW_cleanup_orphaned_caches()
/freebsd/crypto/openssl/test/
H A Drun_tests.pl337 $harness->runtests(map { [ abs2rel($_, rel2abs(curdir())), basename($_) ] }
342 $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.c2700 Attrib *a, curdir, ldirattrib, newdir, lsym; in crossload_dir_internal() local
2723 curdir = *dirattrib; /* dirattrib will be clobbered */ in crossload_dir_internal()
2724 curdir.flags &= ~SSH2_FILEXFER_ATTR_SIZE; in crossload_dir_internal()
2725 curdir.flags &= ~SSH2_FILEXFER_ATTR_UIDGID; in crossload_dir_internal()
2726 if ((curdir.flags & SSH2_FILEXFER_ATTR_PERMISSIONS) == 0) { in crossload_dir_internal()
2729 curdir.perm = S_IWUSR|S_IXUSR; in crossload_dir_internal()
2730 curdir.flags |= SSH2_FILEXFER_ATTR_PERMISSIONS; in crossload_dir_internal()
2733 mode = curdir.perm & 01777; in crossload_dir_internal()
2734 curdir.perm = mode | (S_IWUSR|S_IXUSR); in crossload_dir_internal()
2742 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