| /freebsd-12-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/ |
| D | tst.basename.d | 39 dir[i++] = "/foo/bar/baz"; 40 dir[i++] = "/foo/bar///baz/"; 41 dir[i++] = "/foo/bar/baz/"; 42 dir[i++] = "/foo/bar/baz//"; 43 dir[i++] = "/foo/bar/baz/."; 44 dir[i++] = "/foo/bar/baz/./"; 45 dir[i++] = "/foo/bar/baz/.//"; 46 dir[i++] = "foo/bar/baz/"; 47 dir[i++] = "/"; 48 dir[i++] = "./"; [all …]
|
| /freebsd-12-stable/share/mk/ |
| D | bsd.dirs.mk | 12 . for dir in ${DIRS:O:u} 13 . if defined(${dir}) && !empty(${dir}) 15 ${dir}_MODE?= 0755 16 ${dir}_OWN?= root 17 ${dir}_GRP?= wheel 18 . if defined(${dir}_FLAGS) && !empty(${dir}_FLAGS) 19 ${dir}_FLAG= -f ${${dir}_FLAGS} 23 . if !defined(${dir}TAGS) || ! ${${dir}TAGS:Mpackage=*} 24 ${dir}TAGS+= package=${${dir}PACKAGE:Uruntime} 26 ${dir}TAG_ARGS= -T ${${dir}TAGS:[*]:S/ /,/g} [all …]
|
| D | meta2deps.sh | 282 *) dir=${path%/*} 291 dir=${path%/*} 300 *,$dir,*) continue;; 306 case "/$dir/" in 308 rdir=$dir 309 dir=`cd $dir 2> /dev/null && /bin/pwd` 310 seen="$rdir,$dir" 312 *) seen=$dir;; 314 case "$dir" in 321 *,$dir,*) continue;; [all …]
|
| /freebsd-12-stable/contrib/ntp/libntp/lib/isc/unix/ |
| D | dir.c | 41 #define VALID_DIR(dir) ISC_MAGIC_VALID(dir, ISC_DIR_MAGIC) argument 44 isc_dir_init(isc_dir_t *dir) { in isc_dir_init() argument 45 REQUIRE(dir != NULL); in isc_dir_init() 47 dir->entry.name[0] = '\0'; in isc_dir_init() 48 dir->entry.length = 0; in isc_dir_init() 50 dir->handle = NULL; in isc_dir_init() 52 dir->magic = ISC_DIR_MAGIC; in isc_dir_init() 60 isc_dir_open(isc_dir_t *dir, const char *dirname) { in isc_dir_open() argument 65 REQUIRE(VALID_DIR(dir)); in isc_dir_open() 73 if (octets + 2 > sizeof(dir->dirname)) in isc_dir_open() [all …]
|
| /freebsd-12-stable/contrib/gcc/ |
| D | dominance.c | 150 init_dom_info (struct dom_info *di, enum cdi_direction dir) in init_dom_info() argument 171 di->fake_exit_edge = dir ? BITMAP_ALLOC (NULL) : NULL; in init_dom_info() 589 compute_dom_fast_query (enum cdi_direction dir) in compute_dom_fast_query() argument 594 gcc_assert (dom_info_available_p (dir)); in compute_dom_fast_query() 596 if (dom_computed[dir] == DOM_OK) in compute_dom_fast_query() 601 if (!bb->dom[dir]->father) in compute_dom_fast_query() 602 assign_dfs_numbers (bb->dom[dir], &num); in compute_dom_fast_query() 605 dom_computed[dir] = DOM_OK; in compute_dom_fast_query() 612 calculate_dominance_info (enum cdi_direction dir) in calculate_dominance_info() argument 617 if (dom_computed[dir] == DOM_OK) in calculate_dominance_info() [all …]
|
| D | mklibgcc.in | 213 dir=`echo ${ml} | sed -e 's/;.*$//' -e 's/=/$(EQ)/g'` 216 libgcc_a=$dir/libgcc.a 217 libgcov_a=$dir/libgcov.a 224 libunwind_a=$dir/libunwind.a 227 libgcc_eh_a=$dir/libgcc_eh.a 228 libgcc_s_so=$dir/libgcc_s${SHLIB_EXT} 230 libunwind_so=$dir/libunwind${SHLIB_EXT} 258 if [ $dir != . ]; then 259 echo "dirs += ${dir} libgcc/${dir}" 268 out="libgcc/${dir}/${name}${objext}" [all …]
|
| /freebsd-12-stable/usr.sbin/newsyslog/tests/ |
| D | legacy_test.sh | 215 local dir ext name_postfix newsyslog_args 218 dir="$2" 220 if [ -n "$dir" ]; then 221 newsyslog_args=" -a ${dir}" 233 cknt ${dir}${LOGFNAME}.0${ext} 239 ckfe ${dir}${LOGFNAME}.0${ext} 240 cknt ${dir}${LOGFNAME}.1${ext} 246 ckfe ${dir}${LOGFNAME}.0${ext} 247 ckfe ${dir}${LOGFNAME}.1${ext} 248 cknt ${dir}${LOGFNAME}.2${ext} [all …]
|
| /freebsd-12-stable/contrib/netbsd-tests/usr.sbin/mtree/ |
| D | d_merge.in | 3 . type=dir 5 # directory "a" with only one entry, changing from dir to link 6 ./a type=dir 7 ./a/change-dir-to-link type=dir mode=0755 8 ./a/change-dir-to-link type=link mode=0755 10 # directory "b" with only one entry, changing from link to dir 11 ./b type=dir 12 ./b/change-link-to-dir type=link mode=0755 13 ./b/change-link-to-dir type=dir mode=0755 15 # directory "c" with multiple entries, one changing from dir to link [all …]
|
| D | d_merge_C_M.out | 1 . type=dir 2 ./a type=dir 3 ./a/change-dir-to-link type=link mode=0755 4 ./b type=dir 5 ./b/change-link-to-dir type=dir mode=0755 6 ./c type=dir 9 ./c/change-dir-to-link type=link mode=0755 10 ./d type=dir 13 ./d/change-link-to-dir type=dir mode=0755
|
| D | d_merge_C_M_S.out | 1 . type=dir 2 ./a type=dir 3 ./a/change-dir-to-link type=link mode=0755 4 ./b type=dir 5 ./b/change-link-to-dir type=dir mode=0755 6 ./c type=dir 8 ./c/change-dir-to-link type=link mode=0755 10 ./d type=dir 13 ./d/change-link-to-dir type=dir mode=0755
|
| /freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| D | sanitizer_common_interceptors_format.inc | 173 // returned in dir. This function returns the pointer to the first 177 ScanfDirective *dir) { 178 internal_memset(dir, 0, sizeof(*dir)); 179 dir->argIdx = -1; 186 dir->begin = p; 197 p = maybe_parse_param_index(p, &dir->argIdx); 201 dir->suppressed = true; 206 p = parse_number(p, &dir->fieldWidth); 208 if (dir->fieldWidth <= 0) // Width if at all must be non-zero 213 dir->allocate = true; [all …]
|
| /freebsd-12-stable/contrib/subversion/subversion/libsvn_ra_serf/ |
| D | commit.c | 353 checkout_dir(dir_context_t *dir, in checkout_dir() argument 356 dir_context_t *c_dir = dir; in checkout_dir() 360 if (dir->working_url) in checkout_dir() 376 dir->relpath); in checkout_dir() 380 dir->working_url = svn_path_url_add_component2( in checkout_dir() 382 relpath, dir->pool); in checkout_dir() 392 if (!dir->parent_dir && !dir->commit_ctx->baseline_url) in checkout_dir() 394 checkout_url = dir->commit_ctx->vcc_url; in checkout_dir() 395 working = &dir->commit_ctx->baseline_url; in checkout_dir() 399 checkout_url = dir->url; in checkout_dir() [all …]
|
| /freebsd-12-stable/contrib/netbsd-tests/lib/libc/net/ |
| D | t_hostent.sh | 44 dir="$(atf_get_srcdir)" 45 res="-r ${dir}/resolv.conf" 55 eval $HIJACK_DNS ${dir}/h_dns_server $1 72 atf_check -o inline:"$ans4" -x "$HIJACK_DNS ${dir}/h_hostent ${res} -t auto -4 $n4" 87 atf_check -o inline:"$ans6" -x "$HIJACK_DNS ${dir}/h_hostent ${res} -t auto -6 $n6" 102 atf_check -o inline:"$ans4" -x "$HIJACK_DNS ${dir}/h_hostent ${res} -t auto -a $a4" 117 atf_check -o inline:"$ans6" -x "$HIJACK_DNS ${dir}/h_hostent ${res} -t auto -a $a6" 131 atf_check -o inline:"$loc4" -x "${dir}/h_hostent -f ${dir}/hosts -t file -4 $l4" 141 atf_check -o inline:"$loc6" -x "${dir}/h_hostent -f ${dir}/hosts -t file -6 $l6" 151 atf_check -o inline:"$loc4" -x "${dir}/h_hostent -f ${dir}/hosts -t file -4 -a $al4" [all …]
|
| /freebsd-12-stable/sys/fs/devfs/ |
| D | devfs_dir.c | 47 char *dir; member 68 if (devfs_pathpath(dle->dir, path) != 0) { in devfs_dir_find() 79 devfs_dir_findent_locked(const char *dir) in devfs_dir_findent_locked() argument 86 if (strcmp(dir, dle->dir) == 0) in devfs_dir_findent_locked() 94 devfs_dir_ref(const char *dir) in devfs_dir_ref() argument 98 if (*dir == '\0') in devfs_dir_ref() 102 dle_new->dir = strdup(dir, M_DEVFS4); in devfs_dir_ref() 106 dle = devfs_dir_findent_locked(dir); in devfs_dir_ref() 110 free(dle_new->dir, M_DEVFS4); in devfs_dir_ref() 130 devfs_dir_unref(const char *dir) in devfs_dir_unref() argument [all …]
|
| /freebsd-12-stable/contrib/gcclibs/libcpp/ |
| D | files.c | 83 cpp_dir *dir; member 148 cpp_dir *dir; member 175 static void read_name_map (cpp_dir *dir); 177 static char *append_file_to_dir (const char *fname, cpp_dir *dir); 320 if (file->dir->construct) in find_file_in_dir() 321 path = file->dir->construct (file->name, file->dir); in find_file_in_dir() 323 path = append_file_to_dir (file->name, file->dir); in find_file_in_dir() 380 && file->dir == NULL) in search_path_exhausted() 382 if ((file->path = func (pfile, header, &file->dir)) != NULL) in search_path_exhausted() 446 file->dir = file->dir->next; in _cpp_find_file() [all …]
|
| /freebsd-12-stable/contrib/bmake/mk/ |
| D | meta2deps.sh | 281 *) dir=${path%/*} 290 dir=${path%/*} 299 *,$dir,*) continue;; 305 case "/$dir/" in 307 rdir=$dir 308 dir=`cd $dir 2> /dev/null && /bin/pwd` 309 seen="$rdir,$dir" 311 *) seen=$dir;; 313 case "$dir" in 320 *,$dir,*) continue;; [all …]
|
| /freebsd-12-stable/contrib/netbsd-tests/lib/libc/gen/ |
| D | t_glob.c | 60 int dir; member 79 const struct gl_file *dir; member 110 gl_opendir(const char *dir) in gl_opendir() argument 114 trim(buf, sizeof(buf), dir); in gl_opendir() 128 static struct dirent dir; in gl_readdir() local 131 const struct gl_file *f = &dd->dir[dd->pos++]; in gl_readdir() 132 strcpy(dir.d_name, f->name); in gl_readdir() 133 dir.d_namlen = strlen(f->name); in gl_readdir() 134 dir.d_ino = dd->pos; in gl_readdir() 135 dir.d_type = f->dir ? DT_DIR : DT_REG; in gl_readdir() [all …]
|
| /freebsd-12-stable/lib/libc/gen/ |
| D | getcwd.c | 61 DIR *dir = NULL; in getcwd() local 120 if (dir != NULL ? _fstat(_dirfd(dir), &s) : lstat(".", &s)) in getcwd() 136 if (dir) in getcwd() 137 (void) closedir(dir); in getcwd() 142 fd = _openat(dir != NULL ? _dirfd(dir) : AT_FDCWD, in getcwd() 146 if (dir) in getcwd() 147 (void) closedir(dir); in getcwd() 148 if (!(dir = fdopendir(fd)) || _fstat(_dirfd(dir), &s)) { in getcwd() 161 if (!(dp = readdir(dir))) in getcwd() 168 if (!(dp = readdir(dir))) in getcwd() [all …]
|
| /freebsd-12-stable/tests/sys/cddl/zfs/tests/cli_root/zpool_create/ |
| D | zpool_create.kshlib | 65 typeset dir=`$DIRNAME $file` 67 if [[ -d $dir ]]; then 68 ismounted $dir ufs && log_must $UMOUNT -f $dir 70 log_must $MKDIR -p $dir 74 log_must $MOUNT $disk $dir 86 for dir in $dirs; do 87 if [[ -d $dir ]]; then 88 if ismounted $dir ufs; then 89 log_must $UMOUNT -f $dir 91 log_must $RM -rf $dir
|
| /freebsd-12-stable/sbin/fsck_msdosfs/ |
| D | dir.c | 164 fullpath(struct dosDirEntry *dir) in fullpath() argument 174 np = dir->lname[0] ? dir->lname : dir->name; in fullpath() 182 dir = dir->parent; in fullpath() 183 if (!dir) in fullpath() 388 checksize(struct fat_descriptor *fat, u_char *p, struct dosDirEntry *dir) in checksize() argument 400 if (dir->head == CLUST_FREE) { in checksize() 403 if (!fat_is_valid_cl(fat, dir->head)) in checksize() 405 ret = checkchain(fat, dir->head, &chainsize); in checksize() 424 if (physicalSize < dir->size) { in checksize() 426 fullpath(dir), dir->size, (uintmax_t)physicalSize); in checksize() [all …]
|
| /freebsd-12-stable/tools/boot/ |
| D | lua-img.sh | 12 dir=$1 15 [ -n "$dir" ] || dir=/tmp/loadertest 19 rm -rf ${dir} 20 mkdir -p ${dir} 21 mtree -deUW -f etc/mtree/BSD.root.dist -p ${dir} 22 mtree -deUW -f etc/mtree/BSD.usr.dist -p ${dir}/usr 24 make all install DESTDIR=${dir} NO_ROOT=t MK_LOADER_LUA=yes MK_FORTH=no MK_INSTALL_AS_USER=yes 25 mkdir -p ${dir}/boot/kernel 26 cp /boot/kernel/kernel ${dir}/boot/kernel
|
| /freebsd-12-stable/usr.sbin/etcupdate/ |
| D | etcupdate.sh | 187 local destdir dir file make 203 dir=`dirname /$file` 204 mkdir -p $1/$dir || return 1 539 local args dir 541 dir=`dirname $3` 546 if [ -d ${2}$dir ]; then 552 if exists ${2}$dir; then 558 if compare $OLDTREE/$dir $DESTDIR/$dir; then 563 args=`file_type ${2}$dir` 564 warn "Directory mismatch: ${2}$dir ($args)" [all …]
|
| /freebsd-12-stable/sys/fs/procfs/ |
| D | procfs.c | 165 struct pfs_node *dir; in procfs_init() local 173 dir = pfs_create_dir(root, "pid", in procfs_init() 175 pfs_create_file(dir, "cmdline", procfs_doproccmdline, in procfs_init() 177 pfs_create_file(dir, "dbregs", procfs_doprocdbregs, in procfs_init() 179 pfs_create_file(dir, "etype", procfs_doproctype, in procfs_init() 181 pfs_create_file(dir, "fpregs", procfs_doprocfpregs, in procfs_init() 183 pfs_create_file(dir, "map", procfs_doprocmap, in procfs_init() 185 node = pfs_create_file(dir, "mem", procfs_doprocmem, in procfs_init() 189 pfs_create_file(dir, "note", procfs_doprocnote, in procfs_init() 191 pfs_create_file(dir, "notepg", procfs_doprocnote, in procfs_init() [all …]
|
| /freebsd-12-stable/tests/sys/fs/fusefs/ |
| D | readdir.cc | 74 DIR *dir; in TEST_F() local 95 dir = opendir(FULLPATH); in TEST_F() 96 ASSERT_NE(nullptr, dir) << strerror(errno); in TEST_F() 99 de = readdir(dir); in TEST_F() 107 de = readdir(dir); in TEST_F() 114 ASSERT_EQ(nullptr, readdir(dir)); in TEST_F() 117 leakdir(dir); in TEST_F() 125 DIR *dir; in TEST_F() local 140 dir = opendir(FULLPATH); in TEST_F() 141 ASSERT_NE(nullptr, dir) << strerror(errno); in TEST_F() [all …]
|
| /freebsd-12-stable/tools/regression/tmpfs/ |
| D | t_link | 80 mkdir dir || die 81 touch dir/a || die 82 echo 'ln dir/a dir/b' | kqueue_monitor 2 dir dir/a || die 84 kqueue_check dir/a NOTE_LINK || die 86 kqueue_check dir NOTE_WRITE || die 88 echo 'rm dir/a' | kqueue_monitor 2 dir dir/b || die 92 kqueue_check dir/b NOTE_DELETE || die 94 kqueue_check dir NOTE_WRITE || die 95 rm dir/b || die 96 rmdir dir || die
|