Searched refs:statm_fd (Results 1 – 1 of 1) sorted by relevance
75 int statm_fd = open("/proc/self/statm", O_RDONLY); in BM_read_statm() local76 if (statm_fd == -1) { in BM_read_statm()80 off_t result = lseek(statm_fd, 0 /* offset */, SEEK_SET); in BM_read_statm()84 ssize_t nread = read(statm_fd, buf, BUF_SIZE); in BM_read_statm()91 if (close(statm_fd) == -1) { in BM_read_statm()