Home
last modified time | relevance | path

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

1234567

/system/core/toolbox/upstream-netbsd/bin/dd/
Ddd.h63 #define ddop_open(dir, a1, a2, ...) dir.ops->op_open(a1, a2, __VA_ARGS__) argument
64 #define ddop_close(dir, a1) dir.ops->op_close(a1) argument
65 #define ddop_fcntl(dir, a1, a2, ...) dir.ops->op_fcntl(a1, a2, __VA_ARGS__) argument
66 #define ddop_ioctl(dir, a1, a2, ...) dir.ops->op_ioctl(a1, a2, __VA_ARGS__) argument
67 #define ddop_fsync(dir, a1) dir.ops->op_fsync(a1) argument
68 #define ddop_ftruncate(dir, a1, a2) dir.ops->op_ftruncate(a1, a2) argument
69 #define ddop_lseek(dir, a1, a2, a3) dir.ops->op_lseek(a1, a2, a3) argument
70 #define ddop_read(dir, a1, a2, a3) dir.ops->op_read(a1, a2, a3) argument
71 #define ddop_write(dir, a1, a2, a3) dir.ops->op_write(a1, a2, a3) argument
/system/extras/tests/storage/
Dopentest.c31 char *dir; in main() local
41 dir = argv[1]; in main()
49 if (stat(dir, &statbuf)) { in main()
50 fprintf(stderr, "Cannot stat %s\n", dir); in main()
55 fprintf(stderr, "%s is not a directory!\n", dir); in main()
59 if (access(dir, R_OK | W_OK)) { in main()
60 fprintf(stderr, "No access to %s\n", dir); in main()
70 if (chdir(dir)) { in main()
71 fprintf(stderr, "Cannot chdir to %s\n", dir); in main()
/system/core/toolbox/
Dwipe.c83 DIR *dir; in wipe() local
87 dir = opendir(path); in wipe()
89 if (dir == NULL) { in wipe()
103 de = readdir(dir); in wipe()
130 closedir(dir); in wipe()
153 dir = opendir(path); in wipe()
154 if (dir == NULL) { in wipe()
174 closedir(dir); in wipe()
Dlsof.c139 DIR *dir = opendir(info->path); in print_fds() local
140 if (dir == NULL) { in print_fds()
150 while ((de = readdir(dir))) { in print_fds()
156 closedir(dir); in print_fds()
230 DIR *dir = opendir("/proc"); in lsof_main() local
231 if (dir == NULL) { in lsof_main()
237 while ((de = readdir(dir))) { in lsof_main()
248 closedir(dir); in lsof_main()
Dchmod.c16 DIR *dir = opendir(path); in recurse_chmod() local
17 if (dir == NULL) { in recurse_chmod()
24 while ((dp = readdir(dir)) != NULL) { in recurse_chmod()
45 closedir(dir); in recurse_chmod()
Dmount.c165 do_mount(char *dev, char *dir, char *type, unsigned long rwflag, void *data, int loop, in do_mount() argument
206 if (mount(dev, dir, s, rwflag, data) == -1) { in do_mount()
260 static int get_mounts_dev_dir(const char *arg, char **dev, char **dir) in get_mounts_dev_dir() argument
289 *dir = strdup(mount_dir); in get_mounts_dev_dir()
303 char *dir = NULL; in mount_main() local
347 dir = argv[optind + 1]; in mount_main()
349 get_mounts_dev_dir(argv[optind], &dev, &dir); in mount_main()
352 if (dev == NULL || dir == NULL || type == NULL) { in mount_main()
358 return do_mount(dev, dir, type, rwflag, extra.str, loop, loopdev); in mount_main()
Dgetevent.c264 DIR *dir; in print_hid_descriptor() local
272 dir = opendir(dirname); in print_hid_descriptor()
273 if(dir == NULL) in print_hid_descriptor()
275 while((de = readdir(dir))) { in print_hid_descriptor()
291 closedir(dir); in print_hid_descriptor()
459 DIR *dir; in scan_dir() local
461 dir = opendir(dirname); in scan_dir()
462 if(dir == NULL) in scan_dir()
467 while((de = readdir(dir))) { in scan_dir()
475 closedir(dir); in scan_dir()
/system/core/libprocessgroup/
Dprocessgroup.cpp166 struct dirent *dir; in removeUidProcessGroups() local
167 while ((readdir_r(uid, &cur, &dir) == 0) && dir) { in removeUidProcessGroups()
170 if (dir->d_type != DT_DIR) { in removeUidProcessGroups()
174 if (strncmp(dir->d_name, PROCESSGROUP_PID_PREFIX, strlen(PROCESSGROUP_PID_PREFIX))) { in removeUidProcessGroups()
178 snprintf(path, sizeof(path), "%s/%s", uid_path, dir->d_name); in removeUidProcessGroups()
194 struct dirent *dir; in removeAllProcessGroups() local
195 while ((readdir_r(root, &cur, &dir) == 0) && dir) { in removeAllProcessGroups()
198 if (dir->d_type != DT_DIR) { in removeAllProcessGroups()
201 if (strncmp(dir->d_name, PROCESSGROUP_UID_PREFIX, strlen(PROCESSGROUP_UID_PREFIX))) { in removeAllProcessGroups()
205 snprintf(path, sizeof(path), "%s/%s", PROCESSGROUP_CGROUP_PATH, dir->d_name); in removeAllProcessGroups()
/system/core/rootdir/
DAndroid.mk1 LOCAL_PATH:= $(call my-dir)
37 $(hide) mkdir -p $(dir $@) && rm -rf $(dir $@)*.bcp.dep && touch $@
41 @mkdir -p $(dir $@)
/system/vold/
DProcess.cpp89 DIR *dir = opendir(path); in checkFileDescriptorSymLinks() local
90 if (!dir) in checkFileDescriptorSymLinks()
99 while ((de = readdir(dir))) { in checkFileDescriptorSymLinks()
115 closedir(dir); in checkFileDescriptorSymLinks()
120 closedir(dir); in checkFileDescriptorSymLinks()
185 DIR* dir; in killProcessesWithOpenFiles() local
188 if (!(dir = opendir("/proc"))) { in killProcessesWithOpenFiles()
193 while ((de = readdir(dir))) { in killProcessesWithOpenFiles()
225 closedir(dir); in killProcessesWithOpenFiles()
/system/core/adb/
Dremount_service.c37 static char *find_mount(const char *dir) in find_mount() argument
65 if (res == 4 && (strcmp(dir, mount_dir) == 0)) in find_mount()
83 static int remount(const char* dir, int* dir_ro) in remount() argument
93 dev = find_mount(dir); in remount()
105 *dir_ro = mount(dev, dir, "none", MS_REMOUNT, NULL); in remount()
/system/netd/server/
DInterfaceController.cpp110 DIR* dir = opendir(ipv6_proc_path); in setOnAllInterfaces() local
111 if (!dir) { in setOnAllInterfaces()
116 while ((d = readdir(dir))) { in setOnAllInterfaces()
121 closedir(dir); in setOnAllInterfaces()
/system/core/debuggerd/
Dgetevent.cpp146 DIR* dir; in scan_dir() local
148 dir = opendir(dirname); in scan_dir()
149 if (dir == NULL) in scan_dir()
154 while ((de = readdir(dir))) { in scan_dir()
161 closedir(dir); in scan_dir()
/system/extras/libpagemap/
Dpm_kernel.c64 struct dirent *dir; in pm_kernel_pids() local
80 while ((dir = readdir(proc))) { in pm_kernel_pids()
81 if (sscanf(dir->d_name, "%d", &pid) < 1) in pm_kernel_pids()
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
Dutil.c117 char *d, *dir = NULL; in grep_tree() local
160 dir = grep_malloc(sizeof(char) * in grep_tree()
162 memcpy(dir, p->fts_path, in grep_tree()
164 dir[d - p->fts_path] = '\0'; in grep_tree()
166 ok = dir_matching(dir); in grep_tree()
167 free(dir); in grep_tree()
168 dir = NULL; in grep_tree()
/system/core/init/
DAndroid.mk3 LOCAL_PATH:= $(call my-dir)
64 @mkdir -p $(dir $@)
/system/extras/puncture_fs/
Dpuncture_fs.c120 static bool create_unique_dir(char *dir, const char * const root_path) { in create_unique_dir() argument
129 sprintf(dir, "%s/%s", root_path, random_string); in create_unique_dir()
131 if (mkdir(dir, 0777) < 0) { in create_unique_dir()
132 fprintf(stderr, "\nerrno: %d. Failed to create %s\n", errno, dir); in create_unique_dir()
/system/extras/tests/lib/
DAndroid.mk17 LOCAL_PATH:= $(call my-dir)
/system/core/
DAndroid.mk16 LOCAL_PATH := $(my-dir)
/system/core/adf/
DAndroid.mk16 LOCAL_PATH := $(my-dir)
/system/extras/tests/schedtest/
DAndroid.mk1 LOCAL_PATH:= $(call my-dir)
/system/extras/ext4_utils/
Dcanned_fs_config.h23 void canned_fs_config(const char* path, int dir,
Dext4.h565 #define is_dx(dir) (EXT4_HAS_COMPAT_FEATURE(dir->i_sb, EXT4_FEATURE_COMPAT_DIR_INDEX) && (EXT4_… argument
566 #define EXT4_DIR_LINK_MAX(dir) (!is_dx(dir) && (dir)->i_nlink >= EXT4_LINK_MAX) argument
567 #define EXT4_DIR_LINK_EMPTY(dir) ((dir)->i_nlink == 2 || (dir)->i_nlink == 1) argument
/system/extras/sound/
DAndroid.mk1 LOCAL_PATH := $(call my-dir)
/system/extras/tests/crypto/
DAndroid.mk3 LOCAL_PATH:= $(call my-dir)

1234567