Searched refs:exeline (Results 1 - 2 of 2) sorted by relevance

/system/core/toolbox/
H A Dps.c209 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 Ddebuggerd.cpp339 char* exeline; local
340 if (asprintf(&exeline, "/proc/%d/exe", tid) == -1) {
343 int fd = TEMP_FAILURE_RETRY(open(exeline, O_RDONLY | O_CLOEXEC));
345 free(exeline);

Completed in 54 milliseconds