| /freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/ |
| H A 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/share/mk/ |
| H A D | bsd.dirs.mk | 11 . for dir in ${DIRS:O:u} 12 . if defined(${dir}) && !empty(${dir}) 14 ${dir}_MODE?= 0755 16 ${dir}_OWN?= ${_uid} 17 ${dir}_GRP?= ${_gid} 19 ${dir}_OWN?= root 20 ${dir}_GRP?= wheel 22 . if defined(${dir}_FLAGS) && !empty(${dir}_FLAGS) 23 ${dir}_FLAG= -f ${${dir}_FLAGS} 27 . if !defined(${dir}TAGS) || ! ${${dir}TAGS:Mpackage=*} [all …]
|
| /freebsd/contrib/arm-optimized-routines/math/ |
| H A D | Dir.mk | 29 math-src-dir := $(srcdir)/math 30 math-build-dir := build/math 32 math-lib-srcs := $(wildcard $(math-src-dir)/*.[cS]) 33 math-lib-srcs += $(wildcard $(math-src-dir)/$(ARCH)/*.[cS]) 36 math-lib-srcs += $(wildcard $(math-src-dir)/$(ARCH)/*/*.[cS]) 42 math-lib-srcs += $(wildcard $(math-src-dir)/$(ARCH)/experimental/*/*.[cS]) 44 math-lib-srcs += $(wildcard $(math-src-dir)/$(ARCH)/experimental/*.[cS]) 48 math-lib-srcs := $(filter-out $(math-src-dir)/aarch64/experimental/%, $(math-lib-srcs)) 52 $(math-src-dir)/test/mathtest.c \ 53 $(math-src-dir)/test/mathbench.c \ [all …]
|
| /freebsd/contrib/ntp/libntp/lib/isc/unix/ |
| H A 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/tools/test/stress2/misc/ |
| H A D | nlink5.sh | 50 char dir[100]; 54 snprintf(dir, sizeof(dir), "%d", i); 55 if (mkdir(dir, 0700) == -1) 56 err(1, "mkdir(%s)", dir); 61 snprintf(dir, sizeof(dir), "%d", i); 62 if (mkdir(dir, 0700) != -1) /* this must fail */ 63 err(1, "mkdir(%s)", dir); 65 err(1, "Must fail: mkdir(%s)", dir); 69 snprintf(dir, sizeof(dir), "%d", i); 70 if (rmdir(dir) == -1) [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]; 78 if ((fd = open(dir, O_DIRECTORY | O_RDONLY)) == -1) 79 err(1, "open(%s)", dir); 89 cwd, dir, flag, obj, r, exp, s); 97 mkdir -p /tmp/beneath4.dir/a/a [all …]
|
| H A D | nlink.sh | 46 char dir[100]; 50 snprintf(dir, sizeof(dir), "%d", i); 51 if (mkdir(dir, 0700) == -1) 52 err(1, "mkdir(%s)", dir); 57 snprintf(dir, sizeof(dir), "%d", i); 58 if (mkdir(dir, 0700) != -1) /* this must fail */ 59 err(1, "mkdir(%s)", dir); 61 err(1, "Must fail: mkdir(%s)", dir); 65 snprintf(dir, sizeof(dir), "%d", i); 66 if (rmdir(dir) == -1) [all …]
|
| /freebsd/usr.bin/find/tests/ |
| H A D | find_test.sh | 77 mkdir dir 78 chmod 0755 dir 79 jot -b hello 1024 >dir/file 80 chmod 0644 dir/file 81 ln -s file dir/link 82 chmod -h 0444 dir/link 83 local db=$(stat -f %b dir) 84 local fb=$(stat -f %b dir/file) 85 local lb=$(stat -f %b dir/link) 89 find -s dir -printf '%p\n' [all …]
|
| /freebsd/usr.sbin/makefs/zfs/ |
| H A D | dsl.c | 46 struct zfs_dsl_dir *dir; /* containing parent */ member 70 static zfs_dsl_dataset_t *dsl_dataset_alloc(zfs_opt_t *zfs, zfs_dsl_dir_t *dir); 100 dsl_dir_get_mountpoint(zfs_opt_t *zfs, zfs_dsl_dir_t *dir) in dsl_dir_get_mountpoint() argument 105 if (nvlist_find_string(dir->propsnv, "mountpoint", &mountpoint) == 0) { in dsl_dir_get_mountpoint() 116 for (pdir = dir->parent, mountpoint = estrdup(dir->name);; in dsl_dir_get_mountpoint() 144 dsl_dir_get_canmount(zfs_dsl_dir_t *dir, uint64_t *canmountp) in dsl_dir_get_canmount() argument 146 return (nvlist_find_uint64(dir->propsnv, "canmount", canmountp)); in dsl_dir_get_canmount() 157 dsl_dir_set_prop(zfs_opt_t *zfs, zfs_dsl_dir_t *dir, const char *key, in dsl_dir_set_prop() argument 162 nvl = dir->propsnv; in dsl_dir_set_prop() 239 zfs_dsl_dir_t *dir; in dsl_metadir_alloc() local [all …]
|
| /freebsd/usr.sbin/newsyslog/tests/ |
| H A D | legacy_test.sh | 213 local dir ext name_postfix newsyslog_args 216 dir="$2" 218 if [ -n "$dir" ]; then 219 newsyslog_args="-F -a ${dir}" 231 cknt ${dir}${LOGFNAME}.0${ext} 237 ckfe ${dir}${LOGFNAME}.0${ext} 238 cknt ${dir}${LOGFNAME}.1${ext} 244 ckfe ${dir}${LOGFNAME}.0${ext} 245 ckfe ${dir}${LOGFNAME}.1${ext} 246 cknt ${dir}${LOGFNAME}.2${ext} [all …]
|
| /freebsd/contrib/bmake/ |
| H A D | dir.c | 279 CachedDir *dir = bmake_malloc(sizeof *dir); in CachedDir_New() local 281 dir->name = bmake_strdup(name); in CachedDir_New() 282 dir->refCount = 0; in CachedDir_New() 283 dir->hits = 0; in CachedDir_New() 284 HashSet_Init(&dir->files); in CachedDir_New() 287 DEBUG2(DIR, "CachedDir %p new for \"%s\"\n", dir, dir->name); in CachedDir_New() 290 return dir; in CachedDir_New() 294 CachedDir_Ref(CachedDir *dir) in CachedDir_Ref() argument 296 dir->refCount++; in CachedDir_Ref() 300 dir, dir->refCount, dir->name); in CachedDir_Ref() [all …]
|
| /freebsd/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/contrib/netbsd-tests/usr.sbin/mtree/ |
| H A 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 …]
|
| 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/usr.bin/ident/tests/ |
| H A D | ident_test.sh | 14 local dir=$(atf_get_srcdir) 15 atf_check -o file:"${dir}/test.out" \ 16 ident < "${dir}/test.in" 26 local dir=$(atf_get_srcdir) 27 echo "${dir}/test.in:" >out 28 cat "${dir}/test.out" >>out 29 atf_check -o file:out ident "${dir}/test.in" 39 local dir=$(atf_get_srcdir) 42 -o inline:"${dir}/testnoid:\n" \ 43 -e inline:"ident warning: no id keywords in ${dir}/testnoid\n" \ [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_common_interceptors_format.inc | 177 // returned in dir. This function returns the pointer to the first 181 ScanfDirective *dir) { 182 internal_memset(dir, 0, sizeof(*dir)); 183 dir->argIdx = -1; 190 dir->begin = p; 201 p = maybe_parse_param_index(p, &dir->argIdx); 205 dir->suppressed = true; 210 p = parse_number(p, &dir->fieldWidth); 212 if (dir->fieldWidth <= 0) // Width if at all must be non-zero 217 dir->allocate = true; [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/mmp/ |
| H A D | mmp.kshlib | 79 typeset dir=${2:-$MMP_DIR} 82 log_must mkdir -p $dir 83 log_must rm -f $dir/* 84 log_must truncate -s $MINVDEVSIZE $dir/vdev1 $dir/vdev2 89 mirror $dir/vdev1 $dir/vdev2 99 log_must truncate -s $MINVDEVSIZE $dir/vdev3 $dir/vdev4 \ 100 $dir/vdev5 $dir/vdev6 $dir/vdev7 101 log_must zpool add -f $pool $dir/vdev3 102 log_must zpool remove $pool $dir/vdev3 105 log_must zpool add -f $pool log $dir/vdev4 [all …]
|
| /freebsd/sys/contrib/openzfs/lib/libzutil/ |
| H A D | zutil_device_path.c | 108 char *dir, *env, *envdup = NULL, *tmp = NULL; in zfs_strcmp_shortname() local 118 dir = strtok_r(envdup, ":", &tmp); in zfs_strcmp_shortname() 121 dir = (char *)zpool_default_import_path[i]; in zfs_strcmp_shortname() 124 while (dir) { in zfs_strcmp_shortname() 127 while ((dir[0] != '\0') && (dir[strlen(dir)-1] == '/')) in zfs_strcmp_shortname() 128 dir[strlen(dir)-1] = '\0'; in zfs_strcmp_shortname() 131 path_len = snprintf(path_name, MAXPATHLEN, "%s/%s", dir, name); in zfs_strcmp_shortname() 141 dir = strtok_r(NULL, ":", &tmp); in zfs_strcmp_shortname() 143 dir = (char *)zpool_default_import_path[i]; in zfs_strcmp_shortname() 145 dir = NULL; in zfs_strcmp_shortname() [all …]
|
| /freebsd/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" 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/sys/fs/devfs/ |
| H A D | devfs_dir.c | 45 char *dir; member 66 if (devfs_pathpath(dle->dir, path) != 0) { in devfs_dir_find() 77 devfs_dir_findent_locked(const char *dir) in devfs_dir_findent_locked() argument 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 [all …]
|
| /freebsd/tests/sys/fs/fusefs/ |
| H A D | readdir.cc | 72 DIR *dir; in TEST_F() local 93 dir = opendir(FULLPATH); in TEST_F() 94 ASSERT_NE(nullptr, dir) << strerror(errno); in TEST_F() 97 de = readdir(dir); in TEST_F() 105 de = readdir(dir); in TEST_F() 112 ASSERT_EQ(nullptr, readdir(dir)); in TEST_F() 115 leakdir(dir); in TEST_F() 123 DIR *dir; in TEST_F() local 138 dir = opendir(FULLPATH); in TEST_F() 139 ASSERT_NE(nullptr, dir) << strerror(errno); in TEST_F() [all …]
|
| /freebsd/bin/chflags/tests/ |
| H A D | chflags_test.sh | 105 mkdir dir 107 cd dir 120 mkdir -p dir/sub 121 touch dir/file dir/sub/file 122 atf_check chflags -R nodump dir 123 atf_check -o match:nodump stat -f "%Sf" dir/file 124 atf_check -o match:nodump stat -f "%Sf" dir/sub/file 135 mkdir dir 136 touch a dir/b c 137 cd dir [all …]
|
| /freebsd/contrib/pkgconf/fuzzer/ |
| H A D | spdxtool-fuzzer.c | 71 write_pkg(const char *dir, char name, const uint8_t *data, size_t size) in write_pkg() argument 76 snprintf(path, sizeof path, "%s/%c.pc", dir, name); in write_pkg() 87 write_universe(const char *dir, const uint8_t *data, size_t size) in write_universe() argument 95 write_pkg(dir, universe_names[idx++], data + start, i - start); in write_universe() 101 write_pkg(dir, universe_names[idx], data + start, size - start); in write_universe() 105 cleanup_universe(const char *dir) in cleanup_universe() argument 111 snprintf(path, sizeof path, "%s/%c.pc", dir, universe_names[i]); in cleanup_universe() 115 rmdir(dir); in cleanup_universe() 123 run_spdx(const pkgconf_cross_personality_t *pers, const char *dir, FILE *out) in run_spdx() argument 130 pkgconf_path_add(dir, &client->dir_list, false); in run_spdx() [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redundancy/ |
| H A D | redundancy_draid.ksh | 59 typeset dir=$3 64 log_must dd conv=notrunc if=/dev/zero of=$dir/dev-$i \ 68 log_must zpool import -o cachefile=none -d $dir $pool 86 log_must dd conv=notrunc if=/dev/zero of=$dir/dev-$i \ 90 log_must zpool import -o cachefile=none -d $dir $pool 105 typeset dir=$3 108 log_must zpool offline $pool $dir/dev-$i 114 log_must zpool labelclear -f $dir/dev-$i 117 log_must zpool import -o cachefile=none -d $dir $pool 120 log_must zpool replace -fw $pool $dir/dev-$i [all …]
|
| H A D | redundancy_raidz.ksh | 59 typeset dir=$3 64 log_must dd conv=notrunc if=/dev/zero of=$dir/dev-$i \ 68 log_must zpool import -o cachefile=none -d $dir $pool 87 log_must dd conv=notrunc if=/dev/zero of=$dir/dev-$i \ 91 log_must zpool import -o cachefile=none -d $dir $pool 107 typeset dir=$3 110 log_must zpool offline $pool $dir/dev-$i 116 log_must zpool labelclear -f $dir/dev-$i 119 log_must zpool import -o cachefile=none -d $dir $pool 122 log_must zpool replace -fw $pool $dir/dev-$i [all …]
|