Searched refs:exeline (Results 1 - 2 of 2) sorted by relevance
/system/core/toolbox/ |
H A D | ps.c | 209 char exeline[1024]; local 211 sprintf(exeline, "/proc/%d/exe", pid); 212 fd = open(exeline, O_RDONLY); 217 r = read(fd, exeline, 5 /* 4 byte ELFMAG + 1 byte EI_CLASS */); 223 if (memcmp("\177ELF", exeline, 4) != 0) { 227 switch (exeline[4]) {
|
/system/core/debuggerd/ |
H A D | debuggerd.cpp | 346 char* exeline; local 347 if (asprintf(&exeline, "/proc/%d/exe", tid) == -1) { 350 int fd = TEMP_FAILURE_RETRY(open(exeline, O_RDONLY | O_CLOEXEC)); 352 free(exeline);
|
Completed in 26 milliseconds