Searched refs:path (Results 26 - 50 of 81) sorted by last modified time

1234

/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/fastboot/
H A Dfastboot.c90 void get_my_path(char *path);
96 char path[PATH_MAX + 128]; local
116 get_my_path(path);
117 sprintf(path + strlen(path),
119 return strdup(path);
128 sprintf(path, "%s/%s", dir, fn);
129 return strdup(path);
213 // require matching serial number or device path if requested
295 " or path t
[all...]
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/core/include/cutils/
H A Ddir_hash.h21 int get_file_hash(HashAlgorithm algorithm, const char *path,
H A Dfs.h44 extern int fs_prepare_dir(const char* path, mode_t mode, uid_t uid, gid_t gid);
50 extern int fs_read_atomic_int(const char* path, int* value);
56 extern int fs_write_atomic_int(const char* path, int value);
/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/core/init/
H A Dbootchart.c87 file_buff_open( FileBuff buff, const char* path )
90 buff->fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, 0755);
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...]
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 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 Dutil.h42 int make_dir(const char *path, mode_t mode);
/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/libcutils/
H A Ddir_hash.c36 * specified by path, using the specified algorithm. Returns the length
39 int get_file_hash(HashAlgorithm algorithm, const char *path, argument
52 if (stat(path, &sb) != 0) {
60 len = readlink(path, buf, sizeof(buf));
70 FILE *f = fopen(path, "rb");
H A Dfs.c33 int fs_prepare_dir(const char* path, mode_t mode, uid_t uid, gid_t gid) { argument
34 // Check if path needs to be created
36 if (TEMP_FAILURE_RETRY(lstat(path, &sb)) == -1) {
40 ALOGE("Failed to lstat(%s): %s", path, strerror(errno));
47 ALOGE("Not a directory: %s", path);
57 if (TEMP_FAILURE_RETRY(mkdir(path, mode)) == -1) {
59 ALOGE("Failed to mkdir(%s): %s", path, strerror(errno));
65 if (TEMP_FAILURE_RETRY(chmod(path, mode)) == -1) {
66 ALOGE("Failed to chmod(%s, %d): %s", path, mode, strerror(errno));
69 if (TEMP_FAILURE_RETRY(chown(path, ui
77 fs_read_atomic_int(const char* path, int* out_value) argument
102 fs_write_atomic_int(const char* path, int value) argument
[all...]
/system/core/libsparse/
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))
/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/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/core/run-as/
H A Dpackage.c147 check_directory_ownership(const char* path, uid_t uid) argument
153 ret = lstat(path, &st);
179 /* This function is used to check the data directory path for safety.
182 * path is properly owned by the user ID.
191 /* the path should be absolute */
198 * directory separators in the input path and
199 * checking each sub-path independently
430 * <dataDir> is the path to the package's data directory (e.g. /data/data/com.example.foo)
479 /* fourth field is data directory path and must not contain
/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/sh/
H A Dcd.c82 const char *path; local
122 if (*dest == '/' || (path = bltinlookup("CDPATH", 1)) == NULL)
123 path = nullstr;
124 while ((p = padvance(&path, dest)) != NULL) {
162 * Check each component of the path. If we find a symlink or
209 * Get the next component of the path name pointed to by cdcomppath.
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);
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...]
H A Dmain.c332 * Take commands from a file. To be compatible we should do a path
341 const char *path = pathval(); local
348 while ((fullname = padvance(&path, basename)) != NULL) {
/system/core/toolbox/
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);

Completed in 138 milliseconds

1234