Searched refs:path (Results 26 - 50 of 81) sorted by relevance

1234

/system/core/init/
H A Ddevices.c64 const char *path; member in struct:uevent
157 static mode_t get_device_perm(const char *path, unsigned *uid, unsigned *gid) argument
172 if (strncmp(path, dp->name, strlen(dp->name)))
175 if (strcmp(path, dp->name))
188 static void make_device(const char *path, argument
200 mode = get_device_perm(path, &uid, &gid) | (block ? S_IFBLK : S_IFCHR);
203 selabel_lookup(sehandle, &secontext, path, mode);
214 mknod(path, mode, dev);
215 chown(path, uid, -1);
308 uevent->path
412 const char *path; local
470 handle_device(const char *action, const char *devpath, const char *path, int block, int major, int minor, char **links) argument
871 coldboot(const char *path) argument
[all...]
H A Dutil.h42 int make_dir(const char *path, mode_t mode);
H A Dproperty_service.c324 char path[PATH_MAX]; local
327 snprintf(path, sizeof(path), "%s/%s", PERSISTENT_PROPERTY_DIR, name);
337 if (rename(tempPath, path)) {
339 ERROR("Unable to rename persistent property file %s to %s\n", tempPath, path);
534 char path[PATH_MAX]; local
547 snprintf(path, sizeof(path), "%s/%s", PERSISTENT_PROPERTY_DIR, entry->d_name);
548 fd = open(path, O_RDONLY);
555 ERROR("Unable to read persistent property file %s errno: %d\n", path, errn
[all...]
H A Dutil.c299 ERROR("path too long for mkdir_recursive\n");
350 char path[256]; local
352 ret = readlink(newpath, path, sizeof(path) - 1);
355 path[ret] = 0;
356 if (!strcmp(path, oldpath))
467 int make_dir(const char *path, mode_t mode) argument
475 selabel_lookup(sehandle, &secontext, path, mode);
480 rc = mkdir(path, mode);
H A Dbuiltins.c57 static int write_file(const char *path, const char *value) argument
61 fd = open(path, O_WRONLY|O_CREAT, 0622);
80 static int _open(const char *path) argument
84 fd = open(path, O_RDONLY | O_NOFOLLOW);
86 fd = open(path, O_WRONLY | O_NOFOLLOW);
91 static int _chown(const char *path, unsigned int uid, unsigned int gid) argument
96 fd = _open(path);
114 static int _chmod(const char *path, mode_t mode) argument
119 fd = _open(path);
299 /* mkdir <path> [mod
642 const char *path = args[1]; local
[all...]
/system/core/toolbox/
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/vold/
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);
H A DVolume.cpp66 * asec imagefiles. This path will be obscured before the mount is
199 int Volume::createDeviceNode(const char *path, int major, int minor) { argument
202 if (mknod(path, mode, dev) < 0) {
266 bool Volume::isMountpointMounted(const char *path) { argument
281 if (!strcmp(mount_path, path)) {
366 /* We now have the new sysfs path for the decrypted block device, and the
368 * path to the new sysfs path, and continue.
378 // Todo: Either create sys filename from nodepath, or pass in bogus path so
564 int Volume::doUnmount(const char *path, boo argument
[all...]
H A DCommandListener.cpp137 cli->sendMsg(ResponseCode::CommandSyntaxError, "Usage: volume mount <path>", false);
145 cli->sendMsg(ResponseCode::CommandSyntaxError, "Usage: volume unmount <path> [force|force_and_revert]", false);
160 cli->sendMsg(ResponseCode::CommandSyntaxError, "Usage: volume format <path>", false);
167 "Usage: volume share <path> <method>", false);
174 "Usage: volume unshare <path> <method>", false);
182 "Usage: volume shared <path> <method>", false);
389 } else if (!strcmp(argv[1], "path")) {
392 cli->sendMsg(ResponseCode::CommandSyntaxError, "Usage: asec path <container-id>", false);
395 char path[255]; local
397 if (!(rc = vm->getAsecMountPath(argv[2], path, sizeo
407 char path[255]; local
471 char path[255]; local
[all...]
/system/extras/fatblock/
H A Dfatblock.c151 char *path; local
162 DIE("Usage: fatblock <path> <size in MB>\n");
164 path = argv[1];
167 INFO("fatblock: importing filesystem from %s (%d MB)\n", path, mb);
169 ret = chdir(path);
171 DIE("fatblock: chdir(%s) failed: %s; aborting\n", path, strerror(errno));
/system/core/include/private/
H A Dandroid_filesystem_config.h156 ** should start with the most specific path and work their
184 ** should start with the most specific path and work their
231 static inline void fs_config(const char *path, int dir, argument
238 plen = strlen(path);
243 if(!strncmp(pc->prefix, path, len)) break;
248 if(!strncmp(pc->prefix, path, len - 1)) break;
250 if(!strncmp(pc->prefix, path, len)) break;
259 path, pc->prefix ? pc->prefix : "", *uid, *gid, *mode);
/system/netd/
H A Dmain.cpp38 static void coldboot(const char *path);
135 static void coldboot(const char *path) argument
137 DIR *d = opendir(path);
/system/extras/ext4_utils/
H A Dcontents.h21 char *path; member in struct:dentry
H A Dmake_ext4fs.c130 asprintf(&dentries[i].path, "%s/%s", dir_path, namelist[i]->d_name);
152 fs_config_func(dentries[i].path, dir, &uid, &gid, &mode);
163 asprintf(&sepath, "/%s", dentries[i].path);
191 error("unknown file type on %s", dentries[i].path);
205 dentries[i].path, inode, fs_config_func, sehnd);
209 error("unknown file type on %s", dentries[i].path);
218 error("failed to set permissions on %s\n", dentries[i].path);
221 error("failed to set SELinux context on %s\n", dentries[i].path);
223 free(dentries[i].path);
/system/core/debuggerd/
H A Dtombstone.c168 char path[64]; local
173 snprintf(path, sizeof(path), "/proc/%d/comm", tid);
174 if ((fp = fopen(path, "r"))) {
189 snprintf(path, sizeof(path), "/proc/%d/cmdline", pid);
190 if ((fp = fopen(path, "r"))) {
642 * Returns the path of the tombstone file, allocated using malloc(). Caller must free() it.
659 char path[128]; local
662 snprintf(path, sizeo
707 char* path = find_and_open_tombstone(&fd); local
[all...]
/system/core/adb/
H A Dadb_auth_client.c107 char *path; local
113 while ((path = *paths++)) {
114 if (!stat(path, &buf)) {
115 D("Loading keys from '%s'\n", path);
116 read_keys(path, &key_list);
H A Dfile_sync_client.c77 int sync_ls(int fd, const char *path, sync_ls_cb func, void *cookie) argument
83 len = strlen(path);
90 writex(fd, path, len)) {
126 int sync_readtime(int fd, const char *path, unsigned *timestamp) argument
129 int len = strlen(path);
135 writex(fd, path, len)) {
151 static int sync_start_readtime(int fd, const char *path) argument
154 int len = strlen(path);
160 writex(fd, path, len)) {
185 int sync_readmode(int fd, const char *path, unsigne argument
210 write_data_file(int fd, const char *path, syncsendbuf *sbuf) argument
273 write_data_link(int fd, const char *path, syncsendbuf *sbuf) argument
541 do_sync_ls(const char *path) argument
[all...]
H A Dusb_vendors.c244 /* builds the path to the adb vendor id file. returns 0 if success */
254 /* fills buff with the path to the adb vendor id file. returns 0 if success */
262 char path[MAX_PATH]; local
263 SHGetFolderPath( NULL, CSIDL_PROFILE, NULL, 0, path);
264 return build_path(buff, len, "%s\\%s\\%s", path);
/system/core/sdcard/
H A Dsdcard.c204 /* Gets the absolute path to a node into the provided buffer.
206 * Populates 'buf' with the path and returns the length of the path on success,
207 * or returns -1 if the path is too long for the provided buffer.
230 /* Finds the absolute path of a file within a given directory.
231 * Performs a case-insensitive search for the file and sets the buffer to the path
233 * the buffer to the path that the file would have, assuming the name were case-sensitive.
235 * Populates 'buf' with the path and returns the actual name (within 'buf') on success,
236 * or returns NULL if the path is too long for the provided buffer.
238 static char* find_file_within(const char* path, cons argument
467 fuse_reply_entry(struct fuse* fuse, __u64 unique, struct node* parent, const char* name, const char* actual_name, const char* path) argument
496 fuse_reply_attr(struct fuse* fuse, __u64 unique, __u64 nid, const char* path) argument
557 char path[PATH_MAX]; local
575 char path[PATH_MAX]; local
805 char path[PATH_MAX]; local
883 char path[PATH_MAX]; local
949 char path[PATH_MAX]; local
[all...]
/system/core/libusbhost/
H A Dusbhost.c131 char path[100]; local
140 snprintf(path, sizeof(path), "%s/%03d", USB_FS_DIR, i);
141 ret = inotify_add_watch(context->fd, path, IN_CREATE | IN_DELETE);
177 char path[100]; local
223 snprintf(path, sizeof(path), "%s/%s", USB_FS_DIR, event->name);
225 "new" : "gone", path, i);
228 ret = inotify_add_watch(context->fd, path,
232 done = find_existing_devices_bus(path, added_c
[all...]
/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/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 ALOGW("open(%s) failed: %s (%d)\n", path, strerror(errno), errno);
/system/core/charger/
H A Dcharger.c130 const char *path; member in struct:uevent
245 static int read_file(const char *path, char *buf, size_t sz) argument
250 fd = open(path, O_RDONLY, 0);
272 static int read_file_int(const char *path, int *val) argument
279 ret = read_file(path, buf, sizeof(buf));
327 const char *path, bool online)
338 "/sys/%s/capacity", path);
358 uevent->path = "";
374 uevent->path = msg;
395 uevent->action, uevent->path, ueven
325 add_supply(struct charger *charger, const char *name, const char *type, const char *path, bool online) argument
409 char *path; local
572 coldboot(struct charger *charger, const char *path, const char *event) argument
[all...]
/system/core/libcorkscrew/
H A Dmap_info.c72 char path[PATH_MAX]; local
77 snprintf(path, PATH_MAX, "/proc/%d/maps", tid);
78 fp = fopen(path, "r");
/system/core/toolbox/grep/
H A Dfile.c235 grep_open(const char *path) argument
241 if (path == NULL) {
245 } else if ((f->fd = open(path, O_RDONLY)) == -1) {

Completed in 154 milliseconds

1234