Searched refs:traces_path (Results 1 - 1 of 1) sorted by relevance
/frameworks/native/cmds/dumpstate/ |
H A D | utils.c | 379 char traces_path[PROPERTY_VALUE_MAX] = ""; local 380 property_get("dalvik.vm.stack-trace-file", traces_path, ""); 381 if (!traces_path[0]) return NULL; 385 strlcpy(anr_traces_path, traces_path, sizeof(anr_traces_path)); 387 if (rename(traces_path, anr_traces_path) && errno != ENOENT) { 388 fprintf(stderr, "rename(%s, %s): %s\n", traces_path, anr_traces_path, strerror(errno)); 394 strlcpy(anr_traces_dir, traces_path, sizeof(anr_traces_dir)); 408 int fd = open(traces_path, O_CREAT | O_WRONLY | O_TRUNC | O_NOFOLLOW, 0666); /* -rw-rw-rw- */ 410 fprintf(stderr, "%s: %s\n", traces_path, strerror(errno)); 415 fprintf(stderr, "fchmod on %s failed: %s\n", traces_path, strerro [all...] |
Completed in 70 milliseconds