Home
last modified time | relevance | path

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

12

/freebsd/bin/sh/
H A Dcd.c160 out1fmt("%s\n", curdir); in docd()
288 STPUTS(curdir, new); in findcwd()
320 prevdir = curdir; in updatepwd()
347 out1str(curdir); in pwdcmd()
367 if (curdir) in getpwd()
368 return curdir; in getpwd()
373 curdir = savestr(p); in getpwd()
377 return curdir; in getpwd()
418 if (curdir) in pwd_init()
419 ckfree(curdir); in pwd_init()
[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.t260 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/elftoolchain/libelftc/
H A Dmake-toolchain-version80 curdir=`pwd`
89 cd ${curdir} || usage "Cannot change back to ${curdir}."
/freebsd/contrib/bmake/
H A Dmain.c366 if (getcwd(curdir, MAXPATHLEN) == NULL) { in MainParseArgChdir()
372 stat(curdir, &sb) != -1 && in MainParseArgChdir()
375 strncpy(curdir, argvalue, MAXPATHLEN); in MainParseArgChdir()
1053 (void)strncpy(curdir, pwd, MAXPATHLEN); in HandlePWD()
1074 Dir_InitCur(curdir); in InitObjdir()
1076 (void)Main_SetObjdir(false, "%s", curdir); in InitObjdir()
1449 if (getcwd(curdir, MAXPATHLEN) == NULL) { in main_Init()
1460 if (stat(curdir, &sa) == -1) { in main_Init()
1462 progname, curdir, strerror(errno)); in main_Init()
1469 Global_Set(".CURDIR", curdir); in main_Init()
[all …]
H A Dmeta.c450 if (!metaCurdirOk && strcmp(curdir, dname) == 0) { in meta_needed()
1570 fname, lineno, p, curdir); in meta_oodate()
1593 if (strncmp(curdir, gn->path, (size_t)(cp - gn->path)) != 0) { in meta_oodate()
/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')
315 if self.curdir:
316 srctop = self.find_top(self.curdir, self.srctops)
318 self.reldir = self.curdir.replace(srctop,'')
461 if self.curdir:
462 self.seenit(self.curdir) # we ignore this
631 if path in [self.last_dir, cwd, self.cwd, self.curdir]:
644 if dir == self.cwd or dir == self.curdir:
/freebsd/contrib/bmake/mk/
H A Dmeta2deps.py254 self.curdir = conf.get('CURDIR')
315 if self.curdir:
316 srctop = self.find_top(self.curdir, self.srctops)
318 self.reldir = self.curdir.replace(srctop,'')
461 if self.curdir:
462 self.seenit(self.curdir) # we ignore this
631 if path in [self.last_dir, cwd, self.cwd, self.curdir]:
644 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/openssl/test/
H A Drun_tests.pl310 $harness->runtests(map { [ abs2rel($_, rel2abs(curdir())), basename($_) ] }
315 $harness->runtests(map { [ abs2rel($_, rel2abs(curdir())), basename($_) ] }
/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()
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()
2759 curdir.perm = mode; 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()
H A Dfsck.h512 void getpathname(char *namebuf, ino_t curdir, ino_t ino);
/freebsd/tests/sys/cddl/zfs/include/
H A Dlibtest.kshlib776 typeset curdir=$destdir/$dn
777 log_must $MKDIR -p $curdir
779 log_cmd $FILE_WRITE -o create -f $curdir/$TESTFILE.$fn \

12