Home
last modified time | relevance | path

Searched refs:dir (Results 1 – 25 of 1965) sorted by relevance

12345678910>>...79

/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/
H A Dtst.basename.d39 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 Dbsd.dirs.mk11 . for dir in ${DIRS:O:u}
12 . if defined(${dir}) && !empty(${dir})
14 ${dir}_MODE?= 0755
15 ${dir}_OWN?= root
16 ${dir}_GRP?= wheel
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}
[all …]
/freebsd/contrib/ntp/libntp/lib/isc/unix/
H A Ddir.c41 #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 Dnlink5.sh50 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 Dbeneath4.sh35 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 Dnlink.sh46 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.sbin/makefs/zfs/
H A Ddsl.c45 struct zfs_dsl_dir *dir; /* containing parent */ member
69 static zfs_dsl_dataset_t *dsl_dataset_alloc(zfs_opt_t *zfs, zfs_dsl_dir_t *dir);
99 dsl_dir_get_mountpoint(zfs_opt_t *zfs, zfs_dsl_dir_t *dir) in dsl_dir_get_mountpoint() argument
104 if (nvlist_find_string(dir->propsnv, "mountpoint", &mountpoint) == 0) { in dsl_dir_get_mountpoint()
114 for (pdir = dir->parent, mountpoint = estrdup(dir->name);; in dsl_dir_get_mountpoint()
142 dsl_dir_get_canmount(zfs_dsl_dir_t *dir, uint64_t *canmountp) in dsl_dir_get_canmount() argument
144 return (nvlist_find_uint64(dir->propsnv, "canmount", canmountp)); in dsl_dir_get_canmount()
155 dsl_dir_set_prop(zfs_opt_t *zfs, zfs_dsl_dir_t *dir, const char *key, in dsl_dir_set_prop() argument
160 nvl = dir->propsnv; in dsl_dir_set_prop()
204 zfs_dsl_dir_t *dir; in dsl_metadir_alloc() local
[all …]
/freebsd/usr.sbin/newsyslog/tests/
H A Dlegacy_test.sh213 local dir ext name_postfix newsyslog_args
216 dir="$2"
218 if [ -n "$dir" ]; then
219 newsyslog_args=" -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 Ddir.c276 CachedDir *dir = bmake_malloc(sizeof *dir); in CachedDir_New() local
278 dir->name = bmake_strdup(name); in CachedDir_New()
279 dir->refCount = 0; in CachedDir_New()
280 dir->hits = 0; in CachedDir_New()
281 HashSet_Init(&dir->files); in CachedDir_New()
284 DEBUG2(DIR, "CachedDir %p new for \"%s\"\n", dir, dir->name); in CachedDir_New()
287 return dir; in CachedDir_New()
291 CachedDir_Ref(CachedDir *dir) in CachedDir_Ref() argument
293 dir->refCount++; in CachedDir_Ref()
297 dir, dir->refCount, dir->name); in CachedDir_Ref()
[all …]
/freebsd/contrib/bmake/unit-tests/
H A Ddir-expand-path.mk5 _!= 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 Dd_merge.in3 . 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 Dd_merge_C_M.out1 . 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
H A Dd_merge_C_M_S.out1 . 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/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors_format.inc173 // 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
[all...]
/freebsd/sys/fs/devfs/
H A Ddevfs_dir.c45 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/contrib/netbsd-tests/lib/libc/net/
H A Dt_hostent.sh44 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/contrib/openzfs/lib/libzutil/
H A Dzutil_device_path.c102 char *dir, *env, *envdup = NULL, *tmp = NULL; in zfs_strcmp_shortname() local
112 dir = strtok_r(envdup, ":", &tmp); in zfs_strcmp_shortname()
115 dir = (char *)zpool_default_import_path[i]; 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()
125 path_len = snprintf(path_name, MAXPATHLEN, "%s/%s", dir, name); in zfs_strcmp_shortname()
135 dir = strtok_r(NULL, ":", &tmp); in zfs_strcmp_shortname()
137 dir = (char *)zpool_default_import_path[i]; in zfs_strcmp_shortname()
139 dir = NULL; in zfs_strcmp_shortname()
[all …]
/freebsd/tests/sys/fs/fusefs/
H A Dreaddir.cc72 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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redundancy/
H A Dredundancy_draid.ksh68 typeset dir=$3
73 log_must dd conv=notrunc if=/dev/zero of=$dir/dev-$i \
77 log_must zpool import -o cachefile=none -d $dir $pool
96 log_must dd conv=notrunc if=/dev/zero of=$dir/dev-$i \
100 log_must zpool import -o cachefile=none -d $dir $pool
116 typeset dir=$3
119 log_must zpool offline $pool $dir/dev-$i
125 log_must zpool labelclear -f $dir/dev-$i
128 log_must zpool import -o cachefile=none -d $dir $pool
131 log_must zpool replace -fw $pool $dir/dev-$i
[all …]
H A Dredundancy_raidz.ksh68 typeset dir=$3
73 log_must dd conv=notrunc if=/dev/zero of=$dir/dev-$i \
77 log_must zpool import -o cachefile=none -d $dir $pool
96 log_must dd conv=notrunc if=/dev/zero of=$dir/dev-$i \
100 log_must zpool import -o cachefile=none -d $dir $pool
116 typeset dir=$3
119 log_must zpool offline $pool $dir/dev-$i
125 log_must zpool labelclear -f $dir/dev-$i
128 log_must zpool import -o cachefile=none -d $dir $pool
131 log_must zpool replace -fw $pool $dir/dev-$i
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/acl/off/
H A Dposixmode.ksh52 rm -rf $tmpdir $TESTDIR/dir
70 typeset dir=$base/dir
71 typeset file=$dir/file
74 log_must mkdir $dir
75 log_must chown :$wheel $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
105 log_must user_run $owner mkdir $dir
[all …]
/freebsd/sys/fs/procfs/
H A Dprocfs.c155 struct pfs_node *dir; in procfs_init() local
164 dir = pfs_create_dir(root, "pid", in procfs_init()
166 pfs_create_file(dir, "cmdline", procfs_doproccmdline, in procfs_init()
168 pfs_create_file(dir, "dbregs", procfs_doprocdbregs, in procfs_init()
170 pfs_create_file(dir, "etype", procfs_doproctype, in procfs_init()
172 pfs_create_file(dir, "fpregs", procfs_doprocfpregs, in procfs_init()
174 pfs_create_file(dir, "map", procfs_doprocmap, in procfs_init()
176 pfs_create_file(dir, "mem", procfs_doprocmem, in procfs_init()
178 pfs_create_file(dir, "note", procfs_doprocnote, in procfs_init()
180 pfs_create_file(dir, "notepg", procfs_doprocnote, in procfs_init()
[all …]
/freebsd/sbin/fsck_msdosfs/
H A Ddir.c162 fullpath(struct dosDirEntry *dir) in fullpath() argument
172 np = dir->lname[0] ? dir->lname : dir->name; in fullpath()
180 dir = dir->parent; in fullpath()
181 if (!dir) in fullpath()
386 checksize(struct fat_descriptor *fat, u_char *p, struct dosDirEntry *dir) in checksize() argument
398 if (dir->head == CLUST_FREE) { in checksize()
401 if (!fat_is_valid_cl(fat, dir->head) || !fat_is_cl_head(fat, dir->head)) { in checksize()
403 fullpath(dir), dir->size, dir->head); in checksize()
409 dir->size = 0; in checksize()
410 dir->head = CLUST_FREE; in checksize()
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_create/
H A Dzpool_create.kshlib60 typeset dir=`$DIRNAME $file`
62 if [[ -d $dir ]]; then
63 ismounted $dir ufs && log_must $UMOUNT -f $dir
65 log_must $MKDIR -p $dir
69 log_must $MOUNT $disk $dir
81 for dir in $dirs; do
82 if [[ -d $dir ]]; then
83 if ismounted $dir ufs; then
84 log_must $UMOUNT -f $dir
86 log_must $RM -rf $dir
/freebsd/crypto/openssl/util/
H A Dmkdir-p.pl21 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";

12345678910>>...79