Lines Matching defs:line

51 /** Initialize the pci.ids line iterator to the beginning of the file */
61 /** Get the next line from pci.ids
63 * @param line_len Pointer to where number of bytes in line will
65 * @return Pointer to the line; only valid until the
72 static char line[PCI_IDS_MAX_LINE_LEN];
78 line[i] = pci_ids[pci_ids_iter_pos];
81 line[i] = '\0';
87 return line;
121 char *line;
147 line = pci_ids_line_iter_get_line (&line_len);
154 if (line[0] == '#')
160 if (line[i] != '\t')
174 if ((*((dbus_uint32_t *) line)) ==
178 if (!isspace (line[i]))
181 strncpy (store_svn, line + i,
189 if (memcmp (line, rep_vi, 4) == 0) {
194 if (!isspace (line[i]))
197 strncpy (store_vn, line + i,
214 if (memcmp (line + 1, rep_pi, 4) == 0) {
220 if (!isspace (line[i]))
223 strncpy (store_pn, line + i,
238 if (memcmp (line + 2, rep_svi, 4) == 0
239 && memcmp (line + 7, rep_spi,
243 if (!isspace (line[i]))
246 strncpy (store_spn, line + i,
328 /** Initialize the usb.ids line iterator to the beginning of the file */
338 /** Get the next line from usb.ids
340 * @param line_len Pointer to where number of bytes in line will
342 * @return Pointer to the line; only valid until the
349 static char line[USB_IDS_MAX_LINE_LEN];
355 line[i] = usb_ids[usb_ids_iter_pos];
358 line[i] = '\0';
364 return line;
391 char *line;
408 line = usb_ids_line_iter_get_line (&line_len);
415 if (line[0] == '#')
421 if (line[i] != '\t')
433 if (memcmp (line, rep_vi, 4) == 0) {
438 if (!isspace (line[i]))
441 strncpy (store_vn, line + i,
455 if (memcmp (line + 1, rep_pi, 4) == 0) {
458 if (!isspace (line[i]))
461 strncpy (store_pn, line + i,