/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...] |
/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 | eval.c | 696 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/netd/ |
H A D | CommandListener.cpp | 206 int CommandListener::writeFile(const char *path, const char *value, int size) { argument 207 int fd = open(path, O_WRONLY); 209 ALOGE("Failed to open %s: %s", path, strerror(errno)); 214 ALOGE("Failed to write %s: %s", path, strerror(errno));
|
/system/core/adb/ |
H A D | adb.c | 873 char path[PATH_MAX]; local 888 strftime(path, sizeof(path), 891 fd = unix_open(path, O_WRONLY | O_CREAT | O_TRUNC, 0640); 944 /* get path of current program */ 948 program_path, /* program path */ 989 char path[PATH_MAX]; 998 get_my_path(path, PATH_MAX); 1012 int result = execl(path, "adb", "fork-server", "server", NULL); 1125 // Our external storage path ma [all...] |
H A D | commandline.c | 90 " -p <product name or path> - simple product name like 'sooner', or\n" 91 " a relative/absolute path to a product\n" 95 " be an absolute path.\n" 163 " adb get-devpath - prints: <device-path>\n" 665 static int mkdirs(char *path) argument 668 char *x = path + 1; 674 ret = adb_mkdir(path, 0775); 843 * - A relative path from the CWD to the ANDROID_PRODUCT_OUT dir 845 * - An absolute path to the PRODUCT_OUT dir 848 * Given <hint>, try to construct an absolute path t [all...] |
H A D | sysdeps_win32.c | 303 int adb_open(const char* path, int options) argument 332 f->fh_handle = CreateFile( path, desiredAccess, shareMode, NULL, OPEN_EXISTING, 337 D( "adb_open: could not open '%s':", path ); 345 D( "path not found\n" ); 356 snprintf( f->name, sizeof(f->name), "%d(%s)", _fh_to_int(f), path ); 357 D( "adb_open: '%s' => fd %d\n", path, _fh_to_int(f) ); 362 int adb_creat(const char* path, int mode) argument 372 f->fh_handle = CreateFile( path, GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, 378 D( "adb_creat: could not open '%s':", path ); 386 D( "path no [all...] |
/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/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...] |