| /freebsd-14.2/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/ |
| H A D | tst.basename.d | 47 dir[i++] = "/"; 54 dir[i++] = "."; 74 dir[i], basename(dir[i])); 76 dir[i], basename(dir[i])); 80 dir[i], dirname(dir[i])); 82 dir[i], dirname(dir[i])); 91 dir[i] = ""; 93 dir[i], basename(dir[i]), basename(dir[i])); 95 dir[i], basename(dir[i])); 99 dir[i], dirname(dir[i])); [all …]
|
| /freebsd-14.2/share/mk/ |
| H A D | bsd.dirs.mk | 12 . if defined(${dir}) && !empty(${dir}) 15 ${dir}_OWN?= root 17 . if defined(${dir}_FLAGS) && !empty(${dir}_FLAGS) 18 ${dir}_FLAG= -f ${${dir}_FLAGS} 22 . if !defined(${dir}TAGS) || ! ${${dir}TAGS:Mpackage=*} 23 ${dir}TAGS+= package=${${dir}PACKAGE:Uutilities} 25 ${dir}TAG_ARGS= -T ${${dir}TAGS:[*]:S/ /,/g} 31 _uniquedirs_${${dir}}= ${dir} 32 _alldirs_${dir}= ${dir} 35 ${INSTALL} ${${dir}TAG_ARGS} -d -m ${${dir}_MODE} -o ${${dir}_OWN} \ [all …]
|
| /freebsd-14.2/tools/test/stress2/misc/ |
| H A D | nlink5.sh | 47 char dir[100]; 51 snprintf(dir, sizeof(dir), "%d", i); 58 snprintf(dir, sizeof(dir), "%d", i); 60 err(1, "mkdir(%s)", dir); 66 snprintf(dir, sizeof(dir), "%d", i); 67 if (rmdir(dir) == -1) 68 err(1, "rmdir(%s)", dir); 69 snprintf(dir, sizeof(dir), "%s", "x"); 80 snprintf(dir, sizeof(dir), "%s", "a"); 83 snprintf(dir, sizeof(dir), "%s", "c"); [all …]
|
| H A D | beneath4.sh | 35 dir=/tmp/beneath4.dir 36 rm -rf $dir 37 mkdir -p $dir 39 cd $dir 57 char *cwd, *dir, *obj, *s; 67 dir = argv[1]; 79 err(1, "open(%s)", dir); 99 ln /tmp/beneath4.dir/a/f /tmp/beneath4.dir/a/c 100 ln -s /tmp/beneath4.dir/a/a /tmp/beneath4.dir/a/d 101 ln -s /tmp/beneath4.dir/a/b /tmp/beneath4.dir/a/e [all …]
|
| H A D | nlink.sh | 46 char dir[100]; 50 snprintf(dir, sizeof(dir), "%d", i); 52 err(1, "mkdir(%s)", dir); 57 snprintf(dir, sizeof(dir), "%d", i); 59 err(1, "mkdir(%s)", dir); 65 snprintf(dir, sizeof(dir), "%d", i); 66 if (rmdir(dir) == -1) 67 err(1, "rmdir(%s)", dir); 68 snprintf(dir, sizeof(dir), "%s", "a"); 69 if (mkdir(dir, 0700) == -1) [all …]
|
| /freebsd-14.2/contrib/ntp/libntp/lib/isc/unix/ |
| H A D | dir.c | 41 #define VALID_DIR(dir) ISC_MAGIC_VALID(dir, ISC_DIR_MAGIC) argument 45 REQUIRE(dir != NULL); in isc_dir_init() 48 dir->entry.length = 0; in isc_dir_init() 50 dir->handle = NULL; in isc_dir_init() 65 REQUIRE(VALID_DIR(dir)); in isc_dir_open() 81 p = dir->dirname + strlen(dir->dirname); in isc_dir_open() 92 if (dir->handle == NULL) in isc_dir_open() 110 REQUIRE(VALID_DIR(dir) && dir->handle != NULL); in isc_dir_read() 142 REQUIRE(VALID_DIR(dir) && dir->handle != NULL); in isc_dir_close() 153 REQUIRE(VALID_DIR(dir) && dir->handle != NULL); in isc_dir_reset() [all …]
|
| /freebsd-14.2/usr.sbin/makefs/zfs/ |
| H A D | dsl.c | 114 for (pdir = dir->parent, mountpoint = estrdup(dir->name);; in dsl_dir_get_mountpoint() 160 nvl = dir->propsnv; in dsl_dir_set_prop() 204 zfs_dsl_dir_t *dir; in dsl_metadir_alloc() local 210 return (dir); in dsl_metadir_alloc() 276 dir->headds = dsl_dataset_alloc(zfs, dir); in dsl_init() 359 dir = ecalloc(1, sizeof(*dir)); in dsl_dir_alloc() 389 return (dir); in dsl_dir_alloc() 419 zap_add_uint64(parent->childzap, dir->name, dir->dirid); in dsl_dir_alloc() 423 return (dir); in dsl_dir_alloc() 597 return (dsl_dir_has_dataset(dir) && dir->headds->os != NULL); in dsl_dir_dataset_has_objset() [all …]
|
| /freebsd-14.2/usr.sbin/newsyslog/tests/ |
| H A D | legacy_test.sh | 216 dir="$2" 218 if [ -n "$dir" ]; then 219 newsyslog_args=" -a ${dir}" 294 dir="$3" 296 if [ -n "$dir" ]; then 297 newsyslog_args=" -a ${dir}" 363 dir="$2" 365 if [ -n "$dir" ]; then 424 dir="$2" 426 if [ -n "$dir" ]; then [all …]
|
| /freebsd-14.2/contrib/bmake/unit-tests/ |
| H A D | dir-expand-path.mk | 5 _!= rm -rf dir-expand-path.dir.* 6 _!= mkdir dir-expand-path.dir.1 7 _!= mkdir dir-expand-path.dir.2 8 _!= touch dir-expand-path.dir.1/file1.src 9 _!= touch dir-expand-path.dir.1/file2.src 10 _!= touch dir-expand-path.dir.2/file3.src 12 .PATH: dir-expand-path.dir.1 13 .PATH: dir-expand-path.dir.2 19 @rm -rf dir-expand-path.dir.*
|
| /freebsd-14.2/contrib/bmake/ |
| H A D | dir.c | 290 CachedDir *dir = bmake_malloc(sizeof *dir); in CachedDir_New() local 301 return dir; in CachedDir_New() 311 dir, dir->refCount, dir->name); in CachedDir_Ref() 314 return dir; in CachedDir_Ref() 324 dir, dir->refCount, dir->name); in CachedDir_Unref() 338 free(dir); in CachedDir_Unref() 348 *var = dir; in CachedDir_Assign() 373 dir->refCount, dir->name); in OpenDirs_Done() 990 dir->hits++; in DirLookup() 1561 return dir; in CacheNewDir() [all …]
|
| /freebsd-14.2/contrib/netbsd-tests/usr.sbin/mtree/ |
| H A D | d_merge.in | 3 . type=dir 6 ./a type=dir 7 ./a/change-dir-to-link type=dir mode=0755 8 ./a/change-dir-to-link type=link mode=0755 11 ./b type=dir 12 ./b/change-link-to-dir type=link mode=0755 13 ./b/change-link-to-dir type=dir mode=0755 16 ./c type=dir 19 ./c/change-dir-to-link type=dir mode=0755 23 ./d type=dir [all …]
|
| H A 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
|
| H A 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
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_common_interceptors_format.inc | 178 internal_memset(dir, 0, sizeof(*dir)); 179 dir->argIdx = -1; 186 dir->begin = p; 259 dir->end = p; 273 if (dir->convSpecifier != 'a' || dir->lengthModifier[0]) 328 SanitizerToolName, static_cast<int>(dir.end - dir.begin), dir.begin); 395 internal_memset(dir, 0, sizeof(*dir)); 396 dir->argIdx = -1; 444 dir->end = p; 519 if (dir.argIdx != -1 || dir.precisionIdx != -1) { [all …]
|
| /freebsd-14.2/sys/fs/devfs/ |
| H A D | devfs_dir.c | 45 char *dir; member 84 if (strcmp(dir, dle->dir) == 0) in devfs_dir_findent_locked() 92 devfs_dir_ref(const char *dir) in devfs_dir_ref() argument 96 if (*dir == '\0') in devfs_dir_ref() 100 dle_new->dir = strdup(dir, M_DEVFS4); in devfs_dir_ref() 104 dle = devfs_dir_findent_locked(dir); in devfs_dir_ref() 108 free(dle_new->dir, M_DEVFS4); in devfs_dir_ref() 128 devfs_dir_unref(const char *dir) in devfs_dir_unref() argument 132 if (*dir == '\0') in devfs_dir_unref() 136 dle = devfs_dir_findent_locked(dir); in devfs_dir_unref() [all …]
|
| /freebsd-14.2/contrib/netbsd-tests/lib/libc/net/ |
| H A 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" 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" 161 atf_check -o inline:"$loc6" -x "${dir}/h_hostent -f ${dir}/hosts -t file -6 -a $al6" 172 atf_check -o inline:"$ans4" -x "$HIJACK_DNS ${dir}/h_hostent ${res} -t dns -4 $n4" [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/lib/libzutil/ |
| H A D | zutil_device_path.c | 112 dir = strtok_r(envdup, ":", &tmp); in zfs_strcmp_shortname() 118 while (dir) { in zfs_strcmp_shortname() 121 while (dir[strlen(dir)-1] == '/') in zfs_strcmp_shortname() 122 dir[strlen(dir)-1] = '\0'; in zfs_strcmp_shortname() 135 dir = strtok_r(NULL, ":", &tmp); in zfs_strcmp_shortname() 139 dir = NULL; in zfs_strcmp_shortname() 160 char *dir, *tmp = NULL; in zfs_strcmp_pathname() local 165 for (dir = strtok_r(path_name, "/", &tmp); in zfs_strcmp_pathname() 166 dir != NULL; in zfs_strcmp_pathname() 167 dir = strtok_r(NULL, "/", &tmp)) { in zfs_strcmp_pathname() [all …]
|
| /freebsd-14.2/tests/sys/fs/fusefs/ |
| H A D | readdir.cc | 72 DIR *dir; in TEST_F() local 115 leakdir(dir); in TEST_F() 123 DIR *dir; in TEST_F() local 146 leakdir(dir); in TEST_F() 298 DIR *dir; in TEST_F() local 321 leakdir(dir); in TEST_F() 333 DIR *dir; in TEST_F() local 364 leakdir(dir); in TEST_F() 374 DIR *dir; in TEST_F() local 453 DIR *dir; in TEST_F() local [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redundancy/ |
| H A D | redundancy_raidz.ksh | 68 typeset dir=$3 116 typeset dir=$3 119 log_must zpool offline $pool $dir/dev-$i 125 log_must zpool labelclear -f $dir/dev-$i 144 log_must zpool offline $pool $dir/dev-$i 150 log_must zpool labelclear -f $dir/dev-$i 173 typeset dir=$3 220 dir=$TEST_BASE_DIR 241 test_selfheal $TESTPOOL $nparity $dir 242 test_resilver $TESTPOOL $nparity $dir [all …]
|
| H A D | redundancy_draid.ksh | 68 typeset dir=$3 116 typeset dir=$3 119 log_must zpool offline $pool $dir/dev-$i 125 log_must zpool labelclear -f $dir/dev-$i 144 log_must zpool offline $pool $dir/dev-$i 150 log_must zpool labelclear -f $dir/dev-$i 173 typeset dir=$3 220 dir=$TEST_BASE_DIR 241 test_selfheal $TESTPOOL $nparity $dir 242 test_resilver $TESTPOOL $nparity $dir [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/acl/off/ |
| H A D | posixmode.ksh | 52 rm -rf $tmpdir $TESTDIR/dir 70 typeset dir=$base/dir 71 typeset file=$dir/file 74 log_must mkdir $dir 76 log_must chmod 007 $dir 81 log_must ls -la $dir 91 log_must ls -la $dir 102 log_must rm -rf $dir 112 log_must ls -la $dir 124 log_must ls -la $dir [all …]
|
| /freebsd-14.2/crypto/openssl/util/ |
| H A D | mkdir-p.pl | 21 local($dir) = @_; 23 $dir =~ s|/*\Z(?!\n)||s; 25 if (-d $dir) { 29 if ($dir =~ m|[^/]/|s) { 30 local($parent) = $dir; 36 unless (mkdir($dir, 0777)) { 38 if (-d $dir) { 42 die "Cannot create directory $dir: $err\n"; 44 print "created directory `$dir'\n";
|
| /freebsd-14.2/tests/sys/cddl/zfs/tests/cli_root/zpool_create/ |
| H A D | zpool_create.kshlib | 63 typeset dir=`$DIRNAME $file` 65 if [[ -d $dir ]]; then 66 ismounted $dir ufs && log_must $UMOUNT -f $dir 68 log_must $MKDIR -p $dir 72 log_must $MOUNT $disk $dir 84 for dir in $dirs; do 85 if [[ -d $dir ]]; then 86 if ismounted $dir ufs; then 87 log_must $UMOUNT -f $dir 89 log_must $RM -rf $dir
|
| /freebsd-14.2/tools/boot/ |
| H A D | lua-img.sh | 11 dir=$1 14 [ -n "$dir" ] || dir=/tmp/loadertest 18 rm -rf ${dir} 19 mkdir -p ${dir} 20 mtree -deUW -f etc/mtree/BSD.root.dist -p ${dir} 21 mtree -deUW -f etc/mtree/BSD.usr.dist -p ${dir}/usr 23 make -j4 all install DESTDIR=${dir} NO_ROOT=t MK_LOADER_LUA=yes MK_FORTH=no MK_INSTALL_AS_USER=yes 24 mkdir -p ${dir}/boot/kernel 25 cp /boot/kernel/kernel ${dir}/boot/kernel
|
| /freebsd-14.2/sbin/fsck_msdosfs/ |
| H A D | dir.c | 172 np = dir->lname[0] ? dir->lname : dir->name; in fullpath() 180 dir = dir->parent; in fullpath() 181 if (!dir) in fullpath() 403 fullpath(dir), dir->size, dir->head); in checksize() 409 dir->size = 0; in checksize() 437 fullpath(dir), dir->size, (uintmax_t)physicalSize); in checksize() 487 cl = dir->head; in check_subdirectory() 566 cl = dir->head; in readDosDirSection() 988 dir->child = d; in readDosDirSection() 996 n->dir = d; in readDosDirSection() [all …]
|