Searched refs:path (Results 1 - 25 of 74) 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.h94 int createDeviceNode(const char *path, int major, int minor);
98 bool isMountpointMounted(const char *path);
100 int doUnmount(const char *path, bool force);
/system/media/audio_utils/
H A DAndroid.mk14 LOCAL_C_INCLUDES += $(call include-path-for, speex)
16 $(call include-path-for, speex) \
17 $(call include-path-for, audio-utils)
/system/core/include/cutils/
H A Ddir_hash.h21 int get_file_hash(HashAlgorithm algorithm, const char *path,
/system/core/toolbox/
H A Dload_policy.c16 const char *path; local
23 path = argv[1];
24 fd = open(path, O_RDONLY);
26 fprintf(stderr, "Could not open %s: %s\n", path, strerror(errno));
31 fprintf(stderr, "Could not stat %s: %s\n", path, strerror(errno));
37 fprintf(stderr, "Could not mmap %s: %s\n", path, strerror(errno));
43 fprintf(stderr, "Could not load %s: %s\n", path, strerror(errno));
H A Dlsof.c53 char path[PATH_MAX]; member in struct:pid_info_t
76 strncat(info->path, type, sizeof(info->path));
77 if ((link_dest_size = readlink(info->path, link_dest, sizeof(link_dest)-1)) < 0) {
81 snprintf(link_dest, sizeof(link_dest), "%s (readlink: %s)", info->path, strerror(errno));
95 info->path[info->parent_length] = '\0';
110 strncat(info->path, "maps", sizeof(info->path));
112 maps = fopen(info->path, "r");
130 info->path[inf
[all...]
H A Dmd5.c20 static int do_md5(const char *path) argument
27 fd = open(path, O_RDONLY);
29 fprintf(stderr,"could not open %s, %s\n", path, strerror(errno));
44 fprintf(stderr,"could not read %s, %s\n", path, strerror(errno));
50 fprintf(stderr,"could not close %s, %s\n", path, strerror(errno));
58 printf(" %s\n", path);
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.c132 static int listfile_size(const char *path, const char *filename, int flags) argument
136 if (lstat(path, &s) < 0) {
137 fprintf(stderr, "lstat '%s' failed: %s\n", path, strerror(errno));
152 if (!stat(path, &link_dest)) {
155 fprintf(stderr, "stat '%s' failed: %s\n", path, strerror(errno));
166 static int listfile_long(const char *path, int flags) argument
175 /* name is anything after the final '/', or the whole path if none*/
176 name = strrchr(path, '/');
178 name = path;
183 if(lstat(path,
242 listfile_maclabel(const char *path, int flags) argument
[all...]
H A Dchmod.c13 void recurse_chmod(char* path, int mode) argument
16 DIR *dir = opendir(path);
22 int pathlen = strlen(path);
29 fprintf(stderr, "Invalid path specified: too long\n");
33 strcpy(subpath, path);
H A Dumount.c28 static int is_loop_mount(const char* path, char *loopdev) argument
36 int path_length = strlen(path);
47 if (is_loop(device) && strcmp(path, mount_path) == 0) {
65 fprintf(stderr,"umount <path>\n");
/system/extras/ext4_utils/
H A Dsetup_fs.c14 char buf[256], path[128]; local
20 n = readlink(blockdev, path, sizeof(path) - 1);
22 path[n] = 0;
23 if (!memcmp(path, "/dev/block/", 11))
24 blockdev = path + 11;
H A Dsimg_dump.py53 for path in args:
54 FH = open(path, 'rb')
70 % (me, path, magic))
74 % (me, path, major_version, minor_version))
78 % (me, path, file_hdr_sz))
82 % (me, path, chunk_hdr_sz))
86 % (path, total_blks, blk_sz, total_chunks))
H A Dmake_ext4fs.h34 typedef void (*fs_config_func_t)(const char *path, int dir, unsigned *uid, unsigned *gid,
/system/extras/fatblock/
H A Dimport.c95 static int import_file(struct fs *fs, char *path, struct imported *out) argument
102 ret = stat(path, &st);
104 WARN("importing %s: stat failed: %s\n", path, strerror(errno));
111 "out of memory\n", path);
116 path_copy = strdup(path);
118 WARN("importing %s: couldn't strdup path: out of memory\n",
119 path);
124 f->path = path_copy;
134 WARN("importing %s: couldn't allocate data extent\n", path);
193 static int import_dir(struct fs *fs, char *path, in argument
352 import_tree(struct fs *fs, char *path) argument
[all...]
H A Dfatblock.h46 char *path; member in struct:file
59 char *path; member in struct:dir
67 int import_tree(struct fs *fs, char *path);
H A Dread.c59 ret = stat(f->path, &st);
62 f->path, strerror(errno));
84 f->path, off, len);
91 f->path, off, len);
97 f->path, off, len);
101 fd = fdpool_open(&f->pfd, f->path, O_RDONLY);
103 WARN("reading %s: open failed: %s\n", f->path, strerror(errno));
110 f->path, off, len, strerror(errno));
117 f->path, off, len, strerror(errno));
/system/core/adb/
H A Dsysdeps.h89 static __inline__ int adb_unlink(const char* path) argument
91 int rc = unlink(path);
96 rc = chmod(path, _S_IREAD|_S_IWRITE );
98 rc = unlink(path);
105 static __inline__ int adb_mkdir(const char* path, int mode) argument
107 return _mkdir(path);
112 extern int adb_open(const char* path, int options);
113 extern int adb_creat(const char* path, int mode);
141 static __inline__ int adb_open_mode(const char* path, int options, int mode) argument
143 return adb_open(path, option
146 unix_open(const char* path, int options,...) argument
305 unix_open(const char* path, int options,...) argument
376 adb_unlink(const char* path) argument
383 adb_creat(const char* path, int mode) argument
467 adb_mkdir(const char* path, int mode) argument
478 adb_dirstart(const char* path) argument
483 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
227 handle_send_link(int s, char *path, char *buffer) argument
276 do_send(int s, char *path, char *buffer) argument
319 do_recv(int s, const char *path, char *buffer) argument
[all...]
/system/core/init/
H A Ddevices.c62 const char *path; member in struct:uevent
155 static mode_t get_device_perm(const char *path, unsigned *uid, unsigned *gid) argument
170 if (strncmp(path, dp->name, strlen(dp->name)))
173 if (strcmp(path, dp->name))
186 static void make_device(const char *path, argument
198 mode = get_device_perm(path, &uid, &gid) | (block ? S_IFBLK : S_IFCHR);
201 selabel_lookup(sehandle, &secontext, path, mode);
212 mknod(path, mode, dev);
213 chown(path, uid, -1);
224 static int make_dir(const char *path, mode_ argument
436 const char *path; local
494 handle_device(const char *action, const char *devpath, const char *path, int block, int major, int minor, char **links) argument
885 coldboot(const char *path) argument
[all...]
/system/core/debuggerd/
H A Dbacktrace.c38 char path[PATH_MAX]; local
43 snprintf(path, sizeof(path), "/proc/%d/cmdline", pid);
44 if ((fp = fopen(path, "r"))) {
67 char path[PATH_MAX]; local
72 snprintf(path, sizeof(path), "/proc/%d/comm", tid);
73 if ((fp = fopen(path, "r"))) {
/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/netd/
H A DNatController.h39 int runCmd(const char *path, const char *cmd);

Completed in 258 milliseconds

123