Searched refs:path (Results 1 - 25 of 70) sorted by relevance

123

/system/core/fastboot/
H A Dutil_linux.c37 void get_my_path(char *path) argument
43 int err = readlink(proc, path, PATH_MAX - 1);
46 path[0] = 0;
48 path[err] = 0;
49 x = strrchr(path,'/');
/system/vold/
H A DProcess.h22 static void killProcessesWithOpenFiles(const char *path, int action);
24 static int checkSymLink(int pid, const char *path, const char *name);
25 static int checkFileMaps(int pid, const char *path);
26 static int checkFileMaps(int pid, const char *path, char *openFilename, size_t max);
31 static int readSymLink(const char *path, char *link, size_t max);
32 static int pathMatchesMountPoint(const char *path, const char *mountPoint);
H A DProcess.cpp35 int Process::readSymLink(const char *path, char *link, size_t max) { argument
39 if (lstat(path, &s) < 0)
45 length = readlink(path, link, max- 1);
52 int Process::pathMatchesMountPoint(const char* path, const char* mountPoint) { argument
54 if (length > 1 && strncmp(path, mountPoint, length) == 0) {
59 // there is one in the path to avoid partial matches.
60 return (path[length] == 0 || path[length] == '/');
86 // compute path to process's directory of open files
87 char path[PATH_MA local
139 const char* path = strchr(buffer, '/'); local
155 char path[PATH_MAX]; local
180 killProcessesWithOpenFiles(const char *path, int action) argument
[all...]
H A DVolume.h86 int createDeviceNode(const char *path, int major, int minor);
90 bool isMountpointMounted(const char *path);
92 int doUnmount(const char *path, bool force);
H A DDirectVolume.h43 int addPath(const char *path);
H A DVolume.cpp61 * asec imagefiles. This path will be obscured before the mount is
185 int Volume::createDeviceNode(const char *path, int major, int minor) { argument
188 if (mknod(path, mode, dev) < 0) {
250 bool Volume::isMountpointMounted(const char *path) { argument
265 if (!strcmp(mount_path, path)) {
471 int Volume::doUnmount(const char *path, bool force) { argument
475 SLOGD("Unmounting {%s}, force = %d", path, force);
479 if (!umount(path) || errno == EINVAL || errno == ENOENT) {
480 SLOGI("%s sucessfully unmounted", path);
495 path, strerro
[all...]
/system/core/toolbox/
H A Dlsof.c48 char path[PATH_MAX]; member in struct:pid_info_t
71 strncat(info->path, type, sizeof(info->path));
72 if ((link_dest_size = readlink(info->path, link_dest, sizeof(link_dest)-1)) < 0) {
76 snprintf(link_dest, sizeof(link_dest), "%s (readlink: %s)", info->path, strerror(errno));
89 info->path[info->parent_length] = '\0';
104 strncat(info->path, "maps", sizeof(info->path));
106 maps = fopen(info->path, "r");
123 info->path[inf
[all...]
H A Dumount.c13 static int is_loop_mount(const char* path) argument
21 int path_length = strlen(path);
32 if (strcmp(LOOP_DEVICE, device) == 0 && strcmp(path, mount_path) == 0) {
48 fprintf(stderr,"umount <path>\n");
H A Dwipe.c28 static void wipe (const char *path);
81 static void wipe (const char *path) argument
87 dir = opendir(path);
91 path, strerror(errno));
97 strcpy(nameBuffer, path);
153 dir = opendir(path);
156 path, strerror(errno));
161 strcpy(nameBuffer, path);
H A Dls.c122 static int listfile_size(const char *path, const char *filename, int flags) argument
126 if (lstat(path, &s) < 0) {
127 fprintf(stderr, "lstat '%s' failed: %s\n", path, strerror(errno));
136 static int listfile_long(const char *path, int flags) argument
145 /* name is anything after the final '/', or the whole path if none*/
146 name = strrchr(path, '/');
148 name = path;
153 if(lstat(path, &s) < 0) {
183 len = readlink(path, linkto, 256);
/system/core/include/cutils/
H A Ddir_hash.h21 int get_file_hash(HashAlgorithm algorithm, const char *path,
/system/core/adb/
H A Dsysdeps.h88 static __inline__ int adb_unlink(const char* path) argument
90 int rc = unlink(path);
95 rc = chmod(path, _S_IREAD|_S_IWRITE );
97 rc = unlink(path);
104 static __inline__ int adb_mkdir(const char* path, int mode) argument
106 return _mkdir(path);
111 extern int adb_open(const char* path, int options);
112 extern int adb_creat(const char* path, int mode);
140 static __inline__ int adb_open_mode(const char* path, int options, int mode) argument
142 return adb_open(path, option
145 unix_open(const char* path, int options,...) argument
297 unix_open(const char* path, int options,...) argument
368 adb_unlink(const char* path) argument
375 adb_creat(const char* path, int mode) argument
453 adb_mkdir(const char* path, int mode) argument
464 adb_dirstart(const char* path) argument
469 adb_dirstop(const char* path) argument
[all...]
H A Dfile_sync_service.c56 static int do_stat(int s, const char *path) argument
63 if(lstat(path, &st)) {
76 static int do_list(int s, const char *path) argument
87 len = strlen(path);
88 memcpy(tmp, path, len);
94 d = opendir(path);
151 static int handle_send_file(int s, char *path, mode_t mode, char *buffer) argument
157 fd = adb_open_mode(path, O_WRONLY | O_CREAT | O_EXCL, mode);
159 mkdirs(path);
160 fd = adb_open_mode(path, O_WRONL
225 handle_send_link(int s, char *path, char *buffer) argument
274 do_send(int s, char *path, char *buffer) argument
317 do_recv(int s, const char *path, char *buffer) argument
[all...]
H A Dusb_vendors.c172 /* builds the path to the adb vendor id file. returns 0 if success */
182 /* fills buff with the path to the adb vendor id file. returns 0 if success */
190 char path[MAX_PATH]; local
191 SHGetFolderPath( NULL, CSIDL_PROFILE, NULL, 0, path);
192 return build_path(buff, len, "%s\\%s\\%s", path);
/system/core/rootdir/etc/
H A Ddbus.conf11 <!-- Only listen on a local socket. (abstract=/path/to/socket
13 file; only Linux supports this. Use path=/whatever on other
15 <listen>unix:path=/dev/socket/dbus</listen>
/system/core/include/private/
H A Dandroid_filesystem_config.h131 ** should start with the most specific path and work their
157 ** should start with the most specific path and work their
203 static inline void fs_config(const char *path, int dir, argument
210 plen = strlen(path);
215 if(!strncmp(pc->prefix, path, len)) break;
220 if(!strncmp(pc->prefix, path, len - 1)) break;
222 if(!strncmp(pc->prefix, path, len)) break;
231 path, pc->prefix ? pc->prefix : "", *uid, *gid, *mode);
/system/core/init/
H A Ddevices.c49 const char *path; member in struct:uevent
161 static mode_t get_device_perm(const char *path, unsigned *uid, unsigned *gid) argument
176 if (strncmp(path, dp->name, strlen(dp->name)))
179 if (strcmp(path, dp->name))
192 static void make_device(const char *path, argument
201 mode = get_device_perm(path, &uid, &gid) | (block ? S_IFBLK : S_IFCHR);
209 mknod(path, mode, dev);
210 chown(path, uid, -1);
235 uevent->path = "";
250 uevent->path
284 const char *path; local
678 coldboot(const char *path) argument
[all...]
H A Dproperty_service.c266 char path[PATH_MAX]; local
269 snprintf(path, sizeof(path), "%s/%s", PERSISTENT_PROPERTY_DIR, name);
279 if (rename(tempPath, path)) {
281 ERROR("Unable to rename persistent property file %s to %s\n", tempPath, path);
468 char path[PATH_MAX]; local
481 snprintf(path, sizeof(path), "%s/%s", PERSISTENT_PROPERTY_DIR, entry->d_name);
482 fd = open(path, O_RDONLY);
489 ERROR("Unable to read persistent property file %s errno: %d\n", path, errn
[all...]
/system/netd/
H A Dmain.cpp36 static void coldboot(const char *path);
115 static void coldboot(const char *path) argument
117 DIR *d = opendir(path);
/system/extras/ext4_utils/
H A Dcontents.h21 char *path; member in struct:dentry
H A Dmake_ext4fs_main.c31 static void usage(char *path) argument
33 fprintf(stderr, "%s [ -l <len> ] [ -j <journal size> ] [ -b <block_size> ]\n", basename(path));
/system/core/sdcard/
H A Dsdcard.c42 * usage: sdcard <path> <uid> <gid>
177 char *path, buffer[PATH_BUFFER_SIZE]; local
179 path = node_get_path(node, buffer, 0);
180 res = lstat(path, &s);
182 ERROR("lstat('%s') errno %d\n", path, errno);
214 void fuse_init(struct fuse *fuse, int fd, const char *path) argument
230 strcpy(fuse->root.name, path);
279 char *path, buffer[PATH_BUFFER_SIZE]; local
282 path = node_get_path(parent, buffer, name);
285 res = lstat(path,
457 char *path, buffer[PATH_BUFFER_SIZE]; local
475 char *path, buffer[PATH_BUFFER_SIZE]; local
491 char *path, buffer[PATH_BUFFER_SIZE]; local
500 char *path, buffer[PATH_BUFFER_SIZE]; local
534 char *path, buffer[PATH_BUFFER_SIZE]; local
635 char *path, buffer[PATH_BUFFER_SIZE]; local
746 const char *path; local
[all...]
/system/bluetooth/bluedroid/
H A Dbluetooth.c50 char path[64]; local
56 snprintf(path, sizeof(path), "/sys/class/rfkill/rfkill%d/type", id);
57 fd = open(path, O_RDONLY);
59 LOGW("open(%s) failed: %s (%d)\n", path, strerror(errno), errno);
/system/core/sh/
H A Dexec.c55 * This ensures that a full path search will not have to be done for them
99 STATIC int builtinloc = -1; /* index in path of %builtin, or -1 */
119 shellexec(char **argv, char **envp, const char *path, int idx, int vforked) argument
129 while ((cmdname = padvance(&path, argv[0])) != NULL) {
280 * Do a path search. The variable path (passed by reference) should be
281 * set to the start of the path before the first call; padvance will update
283 * the possible path expansions in sequence. If an option (indicated by
284 * a percent sign) appears in the path entry then the global variable
292 padvance(const char **path, cons argument
380 const char *path; local
427 find_command(char *name, struct cmdentry *entry, int act, const char *path) argument
1008 const char *path = pathval(); local
[all...]
/system/bluetooth/brcm_patchram_plus/
H A Dbrcm_patchram_plus.c51 ** set, then the bd_addr will be read from this path.
510 char path[PROPERTY_VALUE_MAX]; local
513 property_get("ro.bt.bdaddr_path", path, "");
514 if (path[0] == 0)
517 fd = open(path, O_RDONLY);
519 fprintf(stderr, "open(%s) failed: %s (%d)", path, strerror(errno),
526 fprintf(stderr, "read(%s) failed: %s (%d)", path, strerror(errno),
531 fprintf(stderr, "read(%s) unexpected size %d", path, sz);

Completed in 259 milliseconds

123