/system/core/init/ |
H A D | devices.c | 64 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 D | util.h | 42 int make_dir(const char *path, mode_t mode);
|
H A D | property_service.c | 324 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 D | util.c | 299 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 D | builtins.c | 57 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 D | umount.c | 28 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 D | Volume.h | 94 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 D | Volume.cpp | 66 * 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 D | CommandListener.cpp | 137 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 D | fatblock.c | 151 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 D | android_filesystem_config.h | 156 ** 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 D | main.cpp | 38 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 D | contents.h | 21 char *path; member in struct:dentry
|
H A D | make_ext4fs.c | 130 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 D | tombstone.c | 168 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 D | adb_auth_client.c | 107 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 D | file_sync_client.c | 77 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 D | usb_vendors.c | 244 /* 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 D | sdcard.c | 204 /* 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 D | usbhost.c | 131 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 D | exec.c | 55 * 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 D | bluetooth.c | 50 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 D | charger.c | 130 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 D | map_info.c | 72 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 D | file.c | 235 grep_open(const char *path) argument 241 if (path == NULL) { 245 } else if ((f->fd = open(path, O_RDONLY)) == -1) {
|