Lines Matching defs:statsfd
48 static int statsfd = -1;
54 if (statsfd == -1)
58 close (statsfd);
59 statsfd = -1;
67 if (statsfd == -1)
71 PROT_READ, MAP_SHARED, statsfd, 0);
86 if (statsfd != -1)
88 statsfd = open(_PATH_DEV DEVSTAT_DEVICE_NAME, O_RDONLY);
89 if (statsfd < 0)
93 p = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, statsfd, 0);
96 close(statsfd);
97 statsfd = -1;