Lines Matching defs:path
53 /* Must match the path defined in NativeCrashListener.java */
197 char path[64];
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[128];
750 snprintf(path, sizeof(path), TOMBSTONE_DIR"/tombstone_%02d", i);
752 if (!stat(path, &sb)) {
762 *fd = open(path, O_CREAT | O_EXCL | O_WRONLY, 0600);
767 return strdup(path);
771 snprintf(path, sizeof(path), TOMBSTONE_DIR"/tombstone_%02d", oldest);
772 *fd = open(path, O_CREAT | O_TRUNC | O_WRONLY, 0600);
774 LOG("failed to open tombstone file '%s': %s\n", path, strerror(errno));
778 return strdup(path);
822 char* path = find_and_open_tombstone(&fd);
823 if (!path) {
837 return path;