| /freebsd-13.1/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-13.1/contrib/ntp/lib/isc/win32/ |
| H A D | dir.c | 39 #define VALID_DIR(dir) ISC_MAGIC_VALID(dir, ISC_DIR_MAGIC) argument 46 REQUIRE(dir != NULL); in isc_dir_init() 52 memset(&(dir->entry.find_data), 0, sizeof(dir->entry.find_data)); in isc_dir_init() 70 REQUIRE(VALID_DIR(dir) && dir->search_handle == INVALID_HANDLE_VALUE); in isc_dir_open() 84 p = dir->dirname + strlen(dir->dirname); in isc_dir_open() 105 REQUIRE(VALID_DIR(dir) && dir->search_handle != INVALID_HANDLE_VALUE); in isc_dir_read() 133 strcpy(dir->entry.name, dir->entry.find_data.cFileName); in isc_dir_read() 134 dir->entry.length = strlen(dir->entry.name); in isc_dir_read() 191 dir->search_handle = FindFirstFile(dir->dirname, in start_directory() 216 strcpy(dir->entry.name, dir->entry.find_data.cFileName); in start_directory() [all …]
|
| /freebsd-13.1/share/mk/ |
| H A D | bsd.dirs.mk | 13 . if defined(${dir}) && !empty(${dir}) 16 ${dir}_OWN?= root 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:Uutilities} 26 ${dir}TAG_ARGS= -T ${${dir}TAGS:[*]:S/ /,/g} 32 _uniquedirs_${${dir}}= ${dir} 33 _alldirs_${dir}= ${dir} 36 ${INSTALL} ${${dir}TAG_ARGS} -d -m ${${dir}_MODE} -o ${${dir}_OWN} \ [all …]
|
| H A D | meta2deps.sh | 292 *) dir=${path%/*} 301 dir=${path%/*} 316 case "/$dir/" in 318 rdir=$dir 319 dir=`cd $dir 2> /dev/null && /bin/pwd` 320 seen="$rdir,$dir" 322 *) seen=$dir;; 324 case "$dir" in 350 case "$dir" in 377 case "$dir" in [all …]
|
| /freebsd-13.1/contrib/ntp/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-13.1/usr.sbin/newsyslog/tests/ |
| H A D | legacy_test.sh | 218 dir="$2" 220 if [ -n "$dir" ]; then 221 newsyslog_args=" -a ${dir}" 296 dir="$3" 298 if [ -n "$dir" ]; then 299 newsyslog_args=" -a ${dir}" 365 dir="$2" 367 if [ -n "$dir" ]; then 426 dir="$2" 428 if [ -n "$dir" ]; then [all …]
|
| /freebsd-13.1/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-13.1/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() 973 dir->hits++; in DirLookup() 1544 return dir; in CacheNewDir() [all …]
|
| /freebsd-13.1/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-13.1/sys/contrib/openzfs/lib/libzutil/ |
| H A D | zutil_device_path.c | 44 char *dir, *env, *envdup; in zfs_resolve_shortname() local 51 dir = strtok(envdup, ":"); in zfs_resolve_shortname() 52 while (dir && error) { in zfs_resolve_shortname() 55 dir = strtok(NULL, ":"); in zfs_resolve_shortname() 102 while (dir) { in zfs_strcmp_shortname() 105 while (dir[strlen(dir)-1] == '/') in zfs_strcmp_shortname() 106 dir[strlen(dir)-1] = '\0'; in zfs_strcmp_shortname() 123 dir = NULL; in zfs_strcmp_shortname() 144 char *dir, *dup; in zfs_strcmp_pathname() local 149 dir = strtok(dup, "/"); in zfs_strcmp_pathname() [all …]
|
| /freebsd-13.1/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, "%.*s\n", dir.end - dir.begin, dir.begin); 387 internal_memset(dir, 0, sizeof(*dir)); 388 dir->argIdx = -1; 436 dir->end = p; 511 if (dir.argIdx != -1 || dir.precisionIdx != -1) { [all …]
|
| /freebsd-13.1/contrib/subversion/subversion/libsvn_ra_serf/ |
| H A D | commit.c | 1289 dir = apr_pcalloc(dir_pool, sizeof(*dir)); in open_root() 1295 dir->prop_changes = apr_hash_make(dir->pool); in open_root() 1337 dir = apr_pcalloc(dir_pool, sizeof(*dir)); in open_root() 1343 dir->prop_changes = apr_hash_make(dir->pool); in open_root() 1512 dir = apr_pcalloc(dir_pool, sizeof(*dir)); in add_directory() 1521 dir->relpath = apr_pstrdup(dir->pool, path); in add_directory() 1523 dir->prop_changes = apr_hash_make(dir->pool); in add_directory() 1604 dir = apr_pcalloc(dir_pool, sizeof(*dir)); in open_directory() 1613 dir->relpath = apr_pstrdup(dir->pool, path); in open_directory() 1615 dir->prop_changes = apr_hash_make(dir->pool); in open_directory() [all …]
|
| /freebsd-13.1/sys/fs/devfs/ |
| H A D | devfs_dir.c | 47 char *dir; member 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 134 if (*dir == '\0') in devfs_dir_unref() 138 dle = devfs_dir_findent_locked(dir); in devfs_dir_unref() [all …]
|
| /freebsd-13.1/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-13.1/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-13.1/contrib/tzdata/ |
| H A D | Makefile | 895 rm -fr $@.dir $@-t.dir $@-shrunk.dir 896 mkdir $@.dir $@-t.dir $@-shrunk.dir 908 diff -r $@.dir $@-t.dir;; \ 910 diff -r $@.dir $@-shrunk.dir 911 rm -fr $@.dir $@-t.dir $@-shrunk.dir 1014 public.dir/vanguard.zi public.dir/main.zi \ 1024 public.dir/zic -d public.dir/zoneinfo main.zi 1028 public.dir/zic -d public.dir/zoneinfo main.zi 1039 mkdir $@.dir 1132 mkdir $@.dir [all …]
|
| /freebsd-13.1/tools/boot/ |
| H A 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-13.1/tests/sys/cddl/zfs/tests/cli_root/zpool_create/ |
| H A 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-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redundancy/ |
| 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 …]
|
| 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 …]
|
| /freebsd-13.1/sys/fs/procfs/ |
| H A D | procfs.c | 159 struct pfs_node *dir; in procfs_init() local 166 dir = pfs_create_dir(root, "pid", in procfs_init() 170 pfs_create_file(dir, "dbregs", procfs_doprocdbregs, in procfs_init() 172 pfs_create_file(dir, "etype", procfs_doproctype, in procfs_init() 176 pfs_create_file(dir, "map", procfs_doprocmap, in procfs_init() 178 pfs_create_file(dir, "mem", procfs_doprocmem, in procfs_init() 180 pfs_create_file(dir, "note", procfs_doprocnote, in procfs_init() 182 pfs_create_file(dir, "notepg", procfs_doprocnote, in procfs_init() 184 pfs_create_file(dir, "regs", procfs_doprocregs, in procfs_init() 190 pfs_create_file(dir, "osrel", procfs_doosrel, in procfs_init() [all …]
|
| /freebsd-13.1/lib/libc/gen/ |
| H A 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() 225 if (dir) in getcwd() [all …]
|
| /freebsd-13.1/contrib/netbsd-tests/lib/libc/gen/ |
| H A 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 132 strcpy(dir.d_name, 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() 136 DPRINTF(("readdir %s %d\n", dir.d_name, dir.d_type)); in gl_readdir() 140 dir.d_reclen = _DIRENT_RECLEN(&dir, dir.d_namlen); in gl_readdir() [all …]
|