Searched defs:path (Results 51 - 64 of 64) sorted by relevance

123

/system/core/init/
H A Dbuiltins.c56 static int write_file(const char *path, const char *value) argument
60 fd = open(path, O_WRONLY|O_CREAT|O_NOFOLLOW, 0600);
79 static int _open(const char *path) argument
83 fd = open(path, O_RDONLY | O_NOFOLLOW);
85 fd = open(path, O_WRONLY | O_NOFOLLOW);
90 static int _chown(const char *path, unsigned int uid, unsigned int gid) argument
95 fd = _open(path);
113 static int _chmod(const char *path, mode_t mode) argument
118 fd = _open(path);
298 /* mkdir <path> [mod
688 const char *path = args[1]; local
[all...]
H A Ddevices.c60 const char *path; member in struct:uevent
86 char *path; member in struct:platform_node
163 static mode_t get_device_perm(const char *path, unsigned *uid, unsigned *gid) argument
178 if (strncmp(path, dp->name, strlen(dp->name)))
181 if (strcmp(path, dp->name))
194 static void make_device(const char *path, argument
204 mode = get_device_perm(path, &uid, &gid) | (block ? S_IFBLK : S_IFCHR);
207 selabel_lookup(sehandle, &secontext, path, mode);
218 mknod(path, mode, dev);
219 chown(path, ui
228 add_platform_device(const char *path) argument
264 find_platform_device(const char *path) argument
281 remove_platform_device(const char *path) argument
479 handle_device(const char *action, const char *devpath, const char *path, int block, int major, int minor, char **links) argument
509 const char *path = uevent->path; local
881 coldboot(const char *path) argument
[all...]
/system/core/libusbhost/
H A Dusbhost.c141 char path[100]; local
150 snprintf(path, sizeof(path), USB_FS_DIR "/%03d", i);
151 ret = inotify_add_watch(context->fd, path, IN_CREATE | IN_DELETE);
227 char path[100]; local
262 snprintf(path, sizeof(path), USB_FS_DIR "/%s", event->name);
264 "new" : "gone", path, i);
267 ret = inotify_add_watch(context->fd, path,
271 done = find_existing_devices_bus(path, contex
[all...]
/system/core/sh/
H A Deval.c696 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/vold/
H A DVolume.cpp221 int Volume::createDeviceNode(const char *path, int major, int minor) { argument
224 if (mknod(path, mode, dev) < 0) {
290 bool Volume::isMountpointMounted(const char *path) { argument
305 if (!strcmp(mount_path, path)) {
391 /* We now have the new sysfs path for the decrypted block device, and the
393 * path to the new sysfs path, and continue.
403 // Todo: Either create sys filename from nodepath, or pass in bogus path so
478 // Recover legacy secure path
499 int Volume::doUnmount(const char *path, boo argument
[all...]
H A DVolumeManager.cpp225 SLOGE("getAsecMountPath failed for %s: couldn't construct path in buffer", id);
912 SLOGE("findAsec failed for %s: couldn't construct ASEC path", id);
1568 SLOGD("Found ASEC at path %s", asecFileName);
1604 int VolumeManager::mkdirs(char* path) { argument
1605 // Require that path lives under a volume we manage
1608 if (emulated_source && !strncmp(path, emulated_source, strlen(emulated_source))) {
1611 Volume* vol = getVolumeForFile(path);
1618 SLOGE("Failed to find volume for %s", path);
1622 /* fs_mkdirs() does symlink checking and relative path enforcement */
1623 return fs_mkdirs(path, 070
[all...]
/system/core/adb/
H A Dcommandline.c92 " -p <product name or path> - simple product name like 'sooner', or\n"
93 " a relative/absolute path to a product\n"
97 " be an absolute path.\n"
178 " adb get-devpath - prints: <device-path>\n"
680 static int mkdirs(char *path) argument
683 char *x = path + 1;
689 ret = adb_mkdir(path, 0775);
858 * - A relative path from the CWD to the ANDROID_PRODUCT_OUT dir
860 * - An absolute path to the PRODUCT_OUT dir
863 * Given <hint>, try to construct an absolute path t
[all...]
H A Dadb.c960 char path[PATH_MAX]; local
975 strftime(path, sizeof(path),
978 fd = unix_open(path, O_WRONLY | O_CREAT | O_TRUNC, 0640);
1079 /* get path of current program */
1083 program_path, /* program path */
1124 char path[PATH_MAX];
1133 get_my_path(path, PATH_MAX);
1149 int result = execl(path, "adb", "-P", str_port, "fork-server", "server", NULL);
1292 // Our external storage path ma
[all...]
H A Dsysdeps_win32.c303 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 Dcharger.c134 const char *path; member in struct:uevent
249 static int read_file(const char *path, char *buf, size_t sz) argument
254 fd = open(path, O_RDONLY, 0);
276 static int read_file_int(const char *path, int *val) argument
283 ret = read_file(path, buf, sizeof(buf));
331 const char *path, bool online)
342 "/sys/%s/capacity", path);
377 uevent->path = "";
393 uevent->path = msg;
414 uevent->action, uevent->path, ueven
329 add_supply(struct charger *charger, const char *name, const char *type, const char *path, bool online) argument
428 char *path; local
591 coldboot(struct charger *charger, const char *path, const char *event) argument
[all...]
/system/core/debuggerd/
H A Dtombstone.c53 /* Must match the path defined in NativeCrashListener.java */
197 char path[64]; local
202 snprintf(path, sizeof(path), "/proc/%d/comm", tid);
203 if ((fp = fopen(path, "r"))) {
218 snprintf(path, sizeof(path), "/proc/%d/cmdline", pid);
219 if ((fp = fopen(path, "r"))) {
730 * Returns the path of the tombstone file, allocated using malloc(). Caller must free() it.
747 char path[12 local
822 char* path = find_and_open_tombstone(&fd); local
[all...]
/system/core/fastboot/
H A Dfastboot.c120 void get_my_path(char *path);
126 char path[PATH_MAX + 128]; local
146 get_my_path(path);
147 sprintf(path + strlen(path),
149 return strdup(path);
158 sprintf(path, "%s/%s", dir, fn);
159 return strdup(path);
231 // require matching serial number or device path if requested
318 " or path t
[all...]
/system/core/fs_mgr/
H A Dfs_mgr.c909 struct fstab_rec *fs_mgr_get_entry_for_mount_point(struct fstab *fstab, const char *path) argument
919 if (strncmp(path, fstab->recs[i].mount_point, len) == 0 &&
920 (path[len] == '\0' || path[len] == '/')) {
/system/core/sdcard/
H A Dsdcard.c187 /* If non-null, an exact underlying path that should be grafted into this
303 /* Gets the absolute path to a node into the provided buffer.
305 * Populates 'buf' with the path and returns the length of the path on success,
306 * or returns -1 if the path is too long for the provided buffer.
339 /* Finds the absolute path of a file within a given directory.
340 * Performs a case-insensitive search for the file and sets the buffer to the path
342 * the buffer to the path that the file would have, assuming the name were case-sensitive.
344 * Populates 'buf' with the path and returns the actual name (within 'buf') on success,
345 * or returns NULL if the path i
347 find_file_within(const char* path, const char* name, char* buf, size_t bufsize, int search) argument
407 touch(char* path, mode_t mode) argument
766 fuse_reply_entry(struct fuse* fuse, __u64 unique, struct node* parent, const char* name, const char* actual_name, const char* path) argument
795 fuse_reply_attr(struct fuse* fuse, __u64 unique, const struct node* node, const char* path) argument
860 char path[PATH_MAX]; local
883 char path[PATH_MAX]; local
1178 char path[PATH_MAX]; local
1261 char path[PATH_MAX]; local
1327 char path[PATH_MAX]; local
[all...]

Completed in 171 milliseconds

123