Searched defs:dir (Results 1 - 25 of 25) sorted by relevance

/system/core/toolbox/
H A Drm.c20 DIR *dir; local
33 dir = opendir(name);
34 if (dir == NULL)
39 while ((de = readdir(dir)) != NULL) {
53 closedir(dir);
59 if (closedir(dir) < 0)
H A Dwipe.c83 DIR *dir; local
87 dir = opendir(path);
89 if (dir == NULL) {
103 de = readdir(dir);
130 closedir(dir);
153 dir = opendir(path);
154 if (dir == NULL) {
174 closedir(dir);
H A Dlsof.c135 DIR *dir = opendir(info->path); local
136 if (dir == NULL) {
145 while ((de = readdir(dir))) {
151 closedir(dir);
199 DIR *dir = opendir("/proc"); local
200 if (dir == NULL) {
208 while ((de = readdir(dir))) {
220 closedir(dir);
H A Dgetevent.c273 DIR *dir; local
275 dir = opendir(dirname);
276 if(dir == NULL)
281 while((de = readdir(dir))) {
289 closedir(dir);
414 fprintf(stderr, "scan dir failed for %s\n", device_path);
H A Dmount.c134 do_mount(char *dev, char *dir, char *type, unsigned long rwflag, void *data, int loop) argument
171 if (mount(dev, dir, s, rwflag, data) == -1) {
H A Dnewfs_msdos.c271 u_int fat, bss, rds, cls, dir, lsn, x, x1, x2; local
621 dir = bpb.res + (bpb.spf ? bpb.spf : bpb.bspf) * bpb.nft;
622 for (lsn = 0; lsn < dir + (fat == 32 ? bpb.spc : rds); lsn++) {
701 } else if (lsn >= bpb.res && lsn < dir &&
707 } else if (lsn == dir && opt_L) {
/system/core/adb/
H A Dremount_service.c34 static char *find_mount(const char *dir) argument
63 if (res == 4 && (strcmp(dir, mount_dir) == 0))
H A Dcommandline.c111 " adb push <local> <remote> - copy file/dir to device\n"
112 " adb pull <remote> [<local>] - copy file/dir from device\n"
599 char dir[PATH_MAX]; local
600 top = find_top_from(getcwd(dir, sizeof(dir)), path_buf);
605 get_my_path(dir, PATH_MAX);
606 top = find_top_from(dir, path_buf);
615 * - A relative path from the CWD to the ANDROID_PRODUCT_OUT dir
617 * - An absolute path to the PRODUCT_OUT dir
621 * ANDROID_PRODUCT_OUT dir
[all...]
/system/extras/libpagemap/
H A Dpm_kernel.c64 struct dirent *dir; local
80 while ((dir = readdir(proc))) {
81 if (sscanf(dir->d_name, "%d", &pid) < 1)
/system/vold/
H A DProcess.cpp89 DIR *dir = opendir(path); local
90 if (!dir)
99 while ((de = readdir(dir))) {
115 closedir(dir);
120 closedir(dir);
181 DIR* dir; local
184 if (!(dir = opendir("/proc"))) {
189 while ((de = readdir(dir))) {
221 closedir(dir);
H A DCommandListener.cpp247 DIR *dir; local
250 if (!(dir = opendir("/proc"))) {
255 while ((de = readdir(dir))) {
276 closedir(dir);
303 cli->sendMsg(ResponseCode::OperationFailed, "Failed to open asec dir", true);
/system/core/debuggerd/
H A Dgetevent.c139 DIR *dir; local
141 dir = opendir(dirname);
142 if(dir == NULL)
147 while((de = readdir(dir))) {
155 closedir(dir);
/system/core/sh/
H A Dcd.c242 updatepwd(char *dir) argument
254 if (dir == NULL || curdir == NULL) {
268 cdcomppath = stalloc(strlen(dir) + 1);
269 scopy(dir, cdcomppath);
271 if (*dir != '/') {
/system/extras/ext4_utils/
H A Dmake_ext4fs.c122 int dir = S_ISDIR(stat.st_mode); local
123 fs_config(dentries[i].path, dir, &uid, &gid, &mode);
/system/core/include/private/
H A Dandroid_filesystem_config.h203 static inline void fs_config(const char *path, int dir, argument
209 pc = dir ? android_dirs : android_files;
213 if (dir) {
/system/extras/latencytop/
H A Dlatencytop.c203 DIR *dir; local
209 dir = opendir(dirname);
210 if (!dir) {
211 fprintf(stderr, "Could not open task dir for process %d.\n", pid);
217 while ((ent = readdir(dir))) {
226 closedir(dir);
/system/core/fastboot/
H A Dfastboot.c77 char *dir; local
103 dir = getenv("ANDROID_PRODUCT_OUT");
104 if((dir == 0) || (dir[0] == 0)) {
109 sprintf(path, "%s/%s", dir, fn);
/system/core/init/
H A Dbootchart.c244 DIR* dir = opendir("/proc"); local
249 while ((entry = readdir(dir)) != NULL) {
290 closedir(dir);
H A Dproperty_service.c466 DIR* dir = opendir(PERSISTENT_PROPERTY_DIR); local
472 if (dir) {
473 while ((entry = readdir(dir)) != NULL) {
496 closedir(dir);
/system/core/libpixelflinger/codeflinger/
H A DARMAssemblerProxy.cpp145 void ARMAssemblerProxy::LDM(int cc, int dir, int Rn, int W, uint32_t reg_list) { argument
146 mTarget->LDM(cc, dir, Rn, W, reg_list);
148 void ARMAssemblerProxy::STM(int cc, int dir, int Rn, int W, uint32_t reg_list) { argument
149 mTarget->STM(cc, dir, Rn, W, reg_list);
H A DARMAssembler.cpp326 void ARMAssembler::LDM(int cc, int dir, argument
331 *mPC++ = (cc<<28) | (4<<25) | (uint32_t(P[dir])<<24) |
332 (uint32_t(U[dir])<<23) | (1<<20) | (W<<21) | (Rn<<16) | reg_list;
335 void ARMAssembler::STM(int cc, int dir, argument
340 *mPC++ = (cc<<28) | (4<<25) | (uint32_t(P[dir])<<24) |
341 (uint32_t(U[dir])<<23) | (0<<20) | (W<<21) | (Rn<<16) | reg_list;
/system/extras/tests/sdcard/
H A Dsysutil.cpp410 DIR *dir = opendir(directory); local
412 if (NULL != dir)
417 while((entry = readdir(dir)))
430 closedir(dir);
/system/wlan/ti/sta_dk_4_0_4_32/CUDK/CLI/
H A Dconsole.h188 } dir; member in union:ConEntry_t::__anon283
/system/wlan/ti/wilink_6_1/CUDK/configurationutility/src/
H A Dconsole.c91 } dir; member in union:ConEntry_t::__anon1088
197 pEntryTemp = pEntry->u.dir.first;
234 p_token = p_dir->u.dir.first;
498 p_token = p_dir->u.dir.first;
509 p_token = p_dir->u.dir.first;
527 p_token = pConsole->p_cur_dir->u.dir.first;
603 p_token = p_dir->u.dir.first;
624 p_token = p_dir->u.dir.first;
712 if (pConsole->p_cur_dir->u.dir.upper)
713 pConsole->p_cur_dir = pConsole->p_cur_dir->u.dir
[all...]
/system/core/libcutils/
H A Dtztime.c1668 register int dir; local
1775 dir = (t > 0) ? 1 : -1;
1776 } else dir = tmcomp(&mytm, &yourtm);
1777 if (dir != 0) {
1791 if (dir > 0)

Completed in 192 milliseconds