Lines Matching refs:fd
80 int fd, optnode;
82 if ((fd = open(path_openprom, arg ? O_RDWR : O_RDONLY)) == -1)
90 if (ioctl(fd, OPIOCGETOPTNODE, (char *)&optnode) == -1)
105 if (ioctl(fd, OPIOCGET, (char *)&opio) == -1)
126 if (ioctl(fd, OPIOCSET, (char *)&opio) == -1)
139 if (ioctl(fd, OPIOCGET, (char *)&opio) == -1)
157 (void)close(fd);
178 int fd, optnode;
180 if ((fd = open(path_openprom, O_RDONLY)) == -1)
183 if (ioctl(fd, OPIOCGETOPTNODE, (char *)&optnode) == -1)
215 if (ioctl(fd, OPIOCNEXTPROP, (char *)&opio1) == -1)
228 (void)close(fd);
235 if (ioctl(fd, OPIOCGET, (char *)&opio2) == -1)