Lines Matching refs:fd
113 int fd = open(device, O_RDONLY);
114 if (fd < 0)
121 if (ioctl(fd, B_GET_ICON, &iconData, sizeof(device_icon)) != 0) {
123 close(fd);
157 close(fd);
226 int fd = open(device, O_RDONLY);
227 if (fd < 0)
233 if (ioctl(fd, B_GET_ICON_NAME, name, sizeof(name)) >= 0) {
236 close(fd);
251 status_t status = ioctl(fd, B_GET_VECTOR_ICON, &iconData,
266 status = ioctl(fd, B_GET_VECTOR_ICON, &iconData,
278 close(fd);