Searched refs:path (Results 51 - 75 of 81) sorted by relevance

1234

/system/vold/
H A Dmain.cpp38 static void coldboot(const char *path);
136 static void coldboot(const char *path) argument
138 DIR *d = opendir(path);
H A DDirectVolume.h48 int addPath(const char *path);
H A DVolumeManager.h85 int shareEnabled(const char *path, const char *method, bool *enabled);
/system/extras/ext4_utils/
H A Dmake_ext4fs_main.c40 static void usage(char *path) argument
42 fprintf(stderr, "%s [ -l <len> ] [ -j <journal size> ] [ -b <block_size> ]\n", basename(path));
H A Dext2simg.c46 static void usage(char *path) argument
48 fprintf(stderr, "%s [ options ] <image or block device> <output image>\n", path);
/system/extras/librank/
H A DAndroid.mk20 LOCAL_C_INCLUDES := $(call include-path-for, libpagemap)
/system/extras/procmem/
H A DAndroid.mk20 LOCAL_C_INCLUDES := $(call include-path-for, libpagemap)
/system/extras/tests/sdcard/
H A Dsdcard_perf_test.cpp609 char path[MAX_PATH]; local
611 strcpy(path, kTestDir);
616 // Go deeper by appending onto current path
617 snprintf(path + strlen(path), MAX_PATH - strlen(path), "/dir%d", i);
618 mkdir(path, S_IRWXU);
621 strcpy(filepath, path);
622 int pathlen = strlen(path);
/system/netd/
H A DAndroid.mk37 $(call include-path-for, libhardware_legacy)/hardware_legacy
H A DCommandListener.h52 static int writeFile(const char *path, const char *value, int size);
H A DNatController.cpp48 int NatController::runCmd(const char *path, const char *cmd) { argument
59 asprintf(&buffer, "%s %s", path, cmd);
/system/core/adb/
H A Dfile_sync_service.h80 int do_sync_ls(const char *path);
/system/core/sh/
H A Dcd.c82 const char *path; local
122 if (*dest == '/' || (path = bltinlookup("CDPATH", 1)) == NULL)
123 path = nullstr;
124 while ((p = padvance(&path, dest)) != NULL) {
162 * Check each component of the path. If we find a symlink or
209 * Get the next component of the path name pointed to by cdcomppath.
H A Dmain.c332 * Take commands from a file. To be compatible we should do a path
341 const char *path = pathval(); local
348 while ((fullname = padvance(&path, basename)) != NULL) {
H A Deval.c696 const char *path = pathval(); local
790 * Modify the command lookup path, if a PATH= assignment
795 path = sp->text + sizeof(PATH) - 1;
799 find_command(argv[0], &cmdentry, cmd_flags, path);
820 path = syspath() + 5;
995 if (path != pathval() && (cmdentry.u.bltin == hashcmd ||
999 mklocal(path - 5 /* PATH= */, 0);
1065 shellexec(argv, envp, path, cmdentry.u.index, vforked);
/system/extras/tests/directiotest/
H A Ddirectiotest.c172 const char *path; local
186 path = argv[1];
187 fd = open(path, O_RDWR | O_DIRECT | O_LARGEFILE);
196 fprintf(stderr, "%s is not a block device\n", path);
/system/bluetooth/brcm_patchram_plus/
H A Dbrcm_patchram_plus.c100 ** set, then the bd_addr will be read from this path.
746 char path[PROPERTY_VALUE_MAX]; local
752 property_get("ro.bt.bdaddr_path", path, "");
753 if (path[0] == 0)
756 fd = open(path, O_RDONLY);
758 fprintf(stderr, "open(%s) failed: %s (%d)", path, strerror(errno),
765 fprintf(stderr, "read(%s) failed: %s (%d)", path, strerror(errno),
770 fprintf(stderr, "read(%s) unexpected size %d", path, sz);
/system/core/fastboot/
H A Dfastboot.c90 void get_my_path(char *path);
96 char path[PATH_MAX + 128]; local
116 get_my_path(path);
117 sprintf(path + strlen(path),
119 return strdup(path);
128 sprintf(path, "%s/%s", dir, fn);
129 return strdup(path);
213 // require matching serial number or device path if requested
295 " or path t
[all...]
/system/extras/procrank/
H A DAndroid.mk20 LOCAL_C_INCLUDES := $(call include-path-for, libpagemap)
/system/core/libcutils/
H A Ddir_hash.c36 * specified by path, using the specified algorithm. Returns the length
39 int get_file_hash(HashAlgorithm algorithm, const char *path, argument
52 if (stat(path, &sb) != 0) {
60 len = readlink(path, buf, sizeof(buf));
70 FILE *f = fopen(path, "rb");
/system/core/cpio/
H A Dmkbootfs.c45 /* Each line in the canned file should be a path plus three ints (uid,
56 static void fix_stat(const char *path, struct stat *s) argument
68 if (strcmp(p->name, path) == 0) {
81 fs_config(path, S_ISDIR(s->st_mode), &s->st_uid, &s->st_gid, &s->st_mode);
/system/core/toolbox/
H A Dschedtop.c157 char path[1024]; local
160 sprintf(path, "/proc/%d/task", pid);
161 d = opendir(path);
/system/core/debuggerd/
H A Ddebuggerd.c160 char path[64]; local
161 snprintf(path, sizeof(path), "/proc/%d/status", tid);
163 FILE* fp = fopen(path, "r");
/system/core/toolbox/grep/
H A Dgrep.h160 struct file *grep_open(const char *path);
/system/core/run-as/
H A Dpackage.c147 check_directory_ownership(const char* path, uid_t uid) argument
153 ret = lstat(path, &st);
179 /* This function is used to check the data directory path for safety.
182 * path is properly owned by the user ID.
191 /* the path should be absolute */
198 * directory separators in the input path and
199 * checking each sub-path independently
430 * <dataDir> is the path to the package's data directory (e.g. /data/data/com.example.foo)
479 /* fourth field is data directory path and must not contain

Completed in 105 milliseconds

1234