Lines Matching defs:ofio2
212 struct ofiocdesc ofio1, ofio2;
229 ofio1.of_nodeid = ofio2.of_nodeid = optnode;
234 ofio2.of_name = buf3;
235 ofio2.of_buf = buf4;
244 * ofio2 is for obtaining the value associated with that name.
264 strcpy(ofio2.of_name, ofio1.of_buf); /* XXX strcpy is safe */
265 ofio2.of_namelen = strlen(ofio2.of_name);
267 if (ofio2.of_namelen == 0) {
272 memset(ofio2.of_buf, 0, sizeof(buf4));
273 ofio2.of_buflen = sizeof(buf4);
275 if (ioctl(fd, OFIOCGET, (char *)&ofio2) < 0)
279 if (strcmp(ex->ex_keyword, ofio2.of_name) == 0)
283 (*ex->ex_handler)(ex, &ofio2, NULL);
285 printf("%s=%s\n", ofio2.of_name, ofio2.of_buf);
293 strcpy(ofio1.of_name, ofio2.of_name); /* XXX strcpy is safe */