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