Home | History | Annotate | Download | only in vold

Lines Matching refs:buffer

66 void Process::getProcessName(int pid, char *buffer, size_t max) {
68 snprintf(buffer, max, "/proc/%d/cmdline", pid);
69 fd = open(buffer, O_RDONLY);
71 strcpy(buffer, "???");
73 int length = read(fd, buffer, max - 1);
74 buffer[length] = 0;
130 char buffer[PATH_MAX + 100];
132 sprintf(buffer, "/proc/%d/maps", pid);
133 file = fopen(buffer, "r");
137 while (fgets(buffer, sizeof(buffer), file)) {
139 const char* path = strchr(buffer, '/');