Lines Matching refs:ioctl
33 #include <sys/ioctl.h>
118 if (ioctl(fd, PMIOSETUP, &pmc) < 0)
119 err(1, "ioctl(PMIOSETUP)");
121 if (ioctl(fd, PMIOTSTAMP, &then) < 0)
122 err(1, "ioctl(PMIOTSTAMP)");
125 if (ioctl(fd, PMIOSTART, &num) < 0)
126 err(1, "ioctl(PMIOSTART)");
130 if (ioctl(fd, PMIOSTOP, &num) < 0)
131 err(1, "ioctl(PMIOSTOP)");
132 if (ioctl(fd, PMIOREAD, &value) < 0)
133 err(1, "ioctl(PMIOREAD)");
135 if (ioctl(fd, PMIORESET, &value.pmcd_num) < 0)
136 err(1, "ioctl(PMIORESET)");
137 if (ioctl(fd, PMIOSTART, &num) < 0)
138 err(1, "ioctl(PMIOSTART)");
145 if (ioctl(fd, PMIOSTOP, &num) < 0)
146 err(1, "ioctl(PMIOSTOP)");
147 if (ioctl(fd, PMIOREAD, &value) < 0)
148 err(1, "ioctl(PMIOREAD)");
150 if (ioctl(fd, PMIOTSTAMP, &now) < 0)
151 err(1, "ioctl(PMIOTSTAMP)");