Home
last modified time | relevance | path

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

123

/busybox-1.35.0/scripts/
Drandomtest.loop25 dir="test.$$"
26 while test -e "$dir" -o -e "failed.$dir"; do
27 dir="test.$$.$RANDOM"
29 echo "Running randconfig test in $dir..."
30 if ! "$1/scripts/randomtest" "$1" "$dir" >/dev/null; then
31 mv -- "$dir" "failed.$dir"
32 echo "Failed build in: failed.$dir"
39 cd -- "$dir/testsuite" || exit 1
40 echo "Running testsuite in $dir..."
44 echo "Failed runtest in $dir"
[all …]
DMakefile.clean16 kbuild-dir := $(if $(filter /%,$(src)),$(src),$(srctree)/$(src))
17 -include $(if $(wildcard $(kbuild-dir)/Kbuild), $(kbuild-dir)/Kbuild, $(kbuild-dir)/Makefile)
DMakefile.IMA16 MAKEFLAGS += --include-dir=$(srctree)
/busybox-1.35.0/qemu_multiarch_testing/
Dparallel-build-hdc-img.sh16 dir="$2"
18 test -d "$dir" || exit 1
19 test -e "$dir/native-build.sh" || exit 1
20 build_in_dir "$dir"
25 for dir; do
26 test -d "$dir" || continue
27 test -e "$dir/native-build.sh" || continue
28 echo "Starting: $dir"
29 build_in_dir "$dir" 3>&1 </dev/null >"$dir.log" 2>&1 &
Dmake-hdc-img.sh4 [ ! -e hdc.img.dir ]
9 if mountpoint -q hdc.img.dir; then
10 umount -d hdc.img.dir
12 mountpoint -q hdc.img.dir ||
13 rm -rf hdc.img.dir
20 size=$(du -ks hdc.dir | sed -rn 's/^([0-9]+).*/\1/p')
27 mkdir hdc.img.dir
28 mount -o loop hdc.img hdc.img.dir
29 cp -a hdc.dir/* hdc.img.dir/
30 umount -d hdc.img.dir
/busybox-1.35.0/libbb/
Diterate_on_dir.c16 DIR *dir; in iterate_on_dir() local
19 dir = opendir(dir_name); in iterate_on_dir()
20 if (dir == NULL) { in iterate_on_dir()
23 while ((de = readdir(dir)) != NULL) { in iterate_on_dir()
26 closedir(dir); in iterate_on_dir()
Dfind_root_device.c26 DIR *dir; in find_block_device_in_dir() local
36 dir = opendir(ap->devpath); in find_block_device_in_dir()
37 if (!dir) in find_block_device_in_dir()
42 while ((entry = readdir(dir)) != NULL) { in find_block_device_in_dir()
60 closedir(dir); in find_block_device_in_dir()
Drecursive_action.c72 DIR *dir; in recursive_action1() local
117 dir = opendir(fileName); in recursive_action1()
118 if (!dir) { in recursive_action1()
125 while ((next = readdir(dir)) != NULL) { in recursive_action1()
147 closedir(dir); in recursive_action1()
/busybox-1.35.0/testsuite/cp/
Dcp-parents4 mkdir dir
5 busybox cp --parents foo/bar/baz/file dir
6 test -f dir/foo/bar/baz/file
/busybox-1.35.0/util-linux/
Dumount.c103 char *dir; in umount_main() member
139 m->dir = xstrdup(me.mnt_dir); in umount_main()
161 path = xstrdup(m->dir); in umount_main()
173 if (strcmp(path, m->dir) == 0 || strcmp(path, m->device) == 0) in umount_main()
180 if (m) zapit = m->dir; in umount_main()
218 erase_mtab(m->dir); in umount_main()
238 free(mtl->dir); in umount_main()
Dmkfs_ext2.c244 struct ext2_dir *dir; in mkfs_ext2_main() local
657 dir = (struct ext2_dir *)buf; in mkfs_ext2_main()
660 STORE_LE(dir->rec_len1, blocksize); // e2fsck 1.41.4 compat (1.41.9 does not need this) in mkfs_ext2_main()
666 STORE_LE(dir->inode1, EXT2_GOOD_OLD_FIRST_INO); in mkfs_ext2_main()
667 STORE_LE(dir->rec_len1, 12); in mkfs_ext2_main()
668 STORE_LE(dir->name_len1, 1); in mkfs_ext2_main()
669 STORE_LE(dir->file_type1, EXT2_FT_DIR); in mkfs_ext2_main()
670 dir->name1[0] = '.'; in mkfs_ext2_main()
671 STORE_LE(dir->inode2, EXT2_ROOT_INO); in mkfs_ext2_main()
672 STORE_LE(dir->rec_len2, blocksize - 12); in mkfs_ext2_main()
[all …]
Dfsck_minix.c961 static void check_file(struct minix1_inode *dir, unsigned offset) in check_file() argument
968 block = map_block(dir, offset / BLOCK_SIZE); in check_file()
1011 static void check_file2(struct minix2_inode *dir, unsigned offset) in check_file2() argument
1018 block = map_block2(dir, offset / BLOCK_SIZE); in check_file2()
1063 struct minix1_inode *dir; in recursive_check() local
1066 dir = Inode1 + ino; in recursive_check()
1067 if (!S_ISDIR(dir->i_mode)) in recursive_check()
1069 if (dir->i_size < 2 * dirsize) { in recursive_check()
1073 for (offset = 0; offset < dir->i_size; offset += dirsize) in recursive_check()
1074 check_file(dir, offset); in recursive_check()
[all …]
/busybox-1.35.0/miscutils/
Dlsscsi.c51 DIR *dir; in lsscsi_main() local
55 dir = xopendir("."); in lsscsi_main()
56 while ((de = readdir(dir)) != NULL) { in lsscsi_main()
120 closedir(dir); in lsscsi_main()
/busybox-1.35.0/util-linux/volume_id/
Dfat.c96 static uint8_t *get_attr_volume_id(struct vfat_dir_entry *dir, int count) in get_attr_volume_id() argument
98 for (;--count >= 0; dir++) { in get_attr_volume_id()
100 if (dir->name[0] == 0x00) { in get_attr_volume_id()
106 if (dir->name[0] == FAT_ENTRY_FREE) in get_attr_volume_id()
110 if ((dir->attr & FAT_ATTR_MASK) == FAT_ATTR_LONG_NAME) in get_attr_volume_id()
113 if ((dir->attr & (FAT_ATTR_VOLUME_ID | FAT_ATTR_DIR)) == FAT_ATTR_VOLUME_ID) { in get_attr_volume_id()
115 if (dir->cluster_high != 0 || dir->cluster_low != 0) in get_attr_volume_id()
119 return dir->name; in get_attr_volume_id()
132 struct vfat_dir_entry *dir; in volume_id_probe_vfat() local
303 dir = (struct vfat_dir_entry*) buf; in volume_id_probe_vfat()
[all …]
/busybox-1.35.0/testsuite/
Dmount.testroot49 mkdir -p images/{ext2.dir,vfat.dir,test1,test2,test3}
70 umount -d images/vfat.dir
71 umount -d images/ext2.dir
81 umount -d images/ext2.dir images/test1
98 /images/ext2.img /images/ext2.dir ext2 noatime,nodev 0 0
100 /images/vfat.img /images/vfat.dir auto ro 0 0
Dcp.tests14 mkdir cp.testdir/dir
15 > cp.testdir/dir/file
16 ln -s file cp.testdir/dir/file_symlink
20 ln -s dir cp.testdir/dir_symlink
/busybox-1.35.0/runit/
Dsvlogd.c195 struct logdir *dir; member
223 #define dir (G.dir ) macro
615 struct logdir *ld = &dir[n]; in buffer_pwrite()
883 logdir_close(&dir[l]); in logdirs_reopen()
884 if (logdir_open(&dir[l], fndir[l])) in logdirs_reopen()
915 rotate(dir + i); in buffer_pread()
930 if (dir[i].rotate_period) { in buffer_pread()
931 if (LESS(dir[i].next_rotate, now)) in buffer_pread()
932 rotate(dir + i); in buffer_pread()
933 if (LESS(dir[i].next_rotate, nearest_rotate)) in buffer_pread()
[all …]
Drunsvdir.c155 DIR *dir; in do_rescan() local
161 dir = opendir("."); in do_rescan()
162 if (!dir) { in do_rescan()
171 d = readdir(dir); in do_rescan()
215 closedir(dir); in do_rescan()
Drunsv.c112 char *dir; member
121 #define dir (G.dir ) macro
130 bb_perror_msg_and_die("%s: fatal: can't %s%s", dir, m1, m2); in fatal2_cannot()
140 bb_error_msg_and_die("%s: fatal: can't %s%s", dir, m1, m2); in fatal2x_cannot()
145 bb_perror_msg("%s: warning: can't %s%s", dir, m1, m2); in warn2_cannot()
170 dir, name); in open_trunc_or_warn()
491 bb_error_msg_and_die("%s: fatal: %s exists but is not a fifo", dir, f); in open_control()
509 dir = single_argv(argv); in runsv_main()
528 xchdir(dir); in runsv_main()
/busybox-1.35.0/
DMakefile272 MAKEFLAGS += --include-dir=$(srctree)
1046 package-dir := $(srctree)/scripts/package
1049 $(Q)$(MAKE) $(build)=$(package-dir) $@
1051 $(Q)$(MAKE) $(build)=$(package-dir) $@
1113 install-dir := $(if $(INSTALL_MOD_DIR),$(INSTALL_MOD_DIR),extra)
1116 $(Q)mkdir -p $(MODLIB)/$(install-dir)
1261 build-dir = $(patsubst %/,%,$(dir $@))
1262 target-dir = $(dir $@)
1264 zap-slash=$(filter-out .,$(patsubst %/,%,$(dir $@)))
1265 build-dir = $(KBUILD_EXTMOD)$(if $(zap-slash),/$(zap-slash))
[all …]
/busybox-1.35.0/coreutils/
Ddu.c192 DIR *dir; in du() local
196 dir = warn_opendir(filename); in du()
197 if (!dir) { in du()
202 while ((entry = readdir(dir))) { in du()
211 closedir(dir); in du()
/busybox-1.35.0/scripts/kconfig/
DMakefile165 @set -e; echo " CHECK qt"; dir=""; pkg=""; \
172 dir="$$(pkg-config $$pkg --variable=prefix)"; \
175 if [ -f $$d/include/qconfig.h ]; then dir=$$d; break; fi; \
177 if [ -z "$$dir" ]; then \
186 libpath=$$dir/lib; lib=qt; osdir=""; \
191 cflags="-I$$dir/include"; \
193 moc="$$dir/bin/moc"; \
195 if [ ! -x $$dir/bin/moc -a -x /usr/bin/moc ]; then \
197 echo "* Unable to find $$dir/bin/moc, using /usr/bin/moc instead."; \
/busybox-1.35.0/testsuite/pwd/
Dpwd-prints-working-directory3 # External pwd _can't_ have that problem (current dir on Unix is physical).
/busybox-1.35.0/editors/
Dvi.c1863 int dir = islower(cmd) ? FORWARD : BACK; in dot_to_char() local
1870 q += dir; in dot_to_char()
1871 if ((dir == FORWARD ? q > end - 1 : q < text) || *q == '\n') { in dot_to_char()
1887 static void dot_scroll(int cnt, int dir) in dot_scroll() argument
1893 if (dir < 0) { in dot_scroll()
2040 int dir, level; in find_pair() local
2042 dir = strchr(braces, c) - braces; in find_pair()
2043 dir ^= 1; in find_pair()
2044 match = braces[dir]; in find_pair()
2045 dir = ((dir & 1) << 1) - 1; // 1 for ([{, -1 for )\} in find_pair()
[all …]
/busybox-1.35.0/procps/
Dpowertop.c164 DIR *dir; in read_cstate_counts() local
167 dir = opendir("/proc/acpi/processor"); in read_cstate_counts()
168 if (!dir) in read_cstate_counts()
171 while ((d = readdir(dir)) != NULL) { in read_cstate_counts()
215 closedir(dir); in read_cstate_counts()
542 DIR *dir; in print_intel_cstates() local
554 dir = opendir(fname); in print_intel_cstates()
555 if (!dir) in print_intel_cstates()
562 while ((d = readdir(dir)) != NULL) { in print_intel_cstates()
590 closedir(dir); in print_intel_cstates()

123