Lines Matching refs:max
35 int Process::readSymLink(const char *path, char *link, size_t max) { in readSymLink() argument
45 length = readlink(path, link, max- 1); in readSymLink()
66 void Process::getProcessName(int pid, char *buffer, size_t max) { in getProcessName() argument
68 snprintf(buffer, max, "/proc/%d/cmdline", pid); in getProcessName()
73 int length = read(fd, buffer, max - 1); in getProcessName()
83 …ess::checkFileDescriptorSymLinks(int pid, const char *mountPoint, char *openFilename, size_t max) { in checkFileDescriptorSymLinks() argument
112 memset(openFilename, 0, max); in checkFileDescriptorSymLinks()
113 strncpy(openFilename, link, max-1); in checkFileDescriptorSymLinks()
128 int Process::checkFileMaps(int pid, const char *mountPoint, char *openFilename, size_t max) { in checkFileMaps() argument
142 memset(openFilename, 0, max); in checkFileMaps()
143 strncpy(openFilename, path, max-1); in checkFileMaps()