Searched refs:my_fd (Results 1 – 1 of 1) sorted by relevance
33 static int my_fd = -2; in get_mem_kb() local36 if (my_fd == -2) { in get_mem_kb()38 my_fd = open("/proc/self/psinfo", O_RDONLY); in get_mem_kb()40 if (my_fd == -1) { in get_mem_kb()44 if (pread(my_fd, &pbuf, sizeof (pbuf), 0) != sizeof (pbuf)) { in get_mem_kb()