Lines Matching defs:opio2
204 struct opiocdesc opio1, opio2;
221 opio1.op_nodeid = opio2.op_nodeid = optnode;
226 opio2.op_name = buf3;
227 opio2.op_buf = buf4;
236 * opio2 is for obtaining the value associated with that name.
253 strcpy(opio2.op_name, opio1.op_buf); /* XXX strcpy is safe */
254 opio2.op_namelen = strlen(opio2.op_name);
256 if (opio2.op_namelen == 0) {
261 memset(opio2.op_buf, 0, sizeof(buf4));
262 opio2.op_buflen = sizeof(buf4);
264 if (ioctl(fd, OPIOCGET, (char *)&opio2) < 0)
268 if (strcmp(ex->ex_keyword, opio2.op_name) == 0)
272 (*ex->ex_handler)(ex, &opio2, NULL);
274 printf("%s=%s\n", opio2.op_name, opio2.op_buf);
282 strcpy(opio1.op_name, opio2.op_name); /* XXX strcpy is safe */