Lines Matching refs:op
68 struct opt *op;
72 op = (struct opt *)calloc(1, sizeof(*op));
73 if (op == NULL)
75 op->op_name = ns(cp->cpu_name);
76 SLIST_INSERT_HEAD(&opt, op, op_next);
90 op = (struct opt *)calloc(1, sizeof(*op));
91 if (op == NULL)
93 op->op_name = ns("MAXUSERS");
95 op->op_value = ns(buf);
96 SLIST_INSERT_HEAD(&opt, op, op_next);
105 op = (struct opt *)calloc(1, sizeof(*op));
106 if (op == NULL)
108 op->op_name = ns(ol->o_name);
109 SLIST_INSERT_HEAD(&opt, op, op_next);
113 SLIST_FOREACH(op, &opt, op_next) {
115 if (eq(op->op_name, ol->o_name) &&
118 op->op_name, ol->o_file);
119 op->op_name = ol->o_file;
126 SLIST_FOREACH(op, &opt, op_next) {
127 if (!op->op_ownfile && strncmp(op->op_name, "DEV_", 4)) {
129 PREFIX, op->op_name);
145 struct opt *op;
158 SLIST_FOREACH(op, &opt, op_next) {
159 if (eq(name, op->op_name)) {
161 value = op->op_value;
167 PREFIX, op->op_name, oldvalue,
169 op->op_ownfile++;
233 op = (struct opt *) calloc(1, sizeof *op);
234 if (op == NULL)
236 op->op_name = inw;
237 op->op_value = invalue;
238 SLIST_INSERT_HEAD(&op_head, op, op_next);
250 op = SLIST_FIRST(&op_head);
252 free(op->op_name);
253 free(op->op_value);
254 free(op);
261 op = (struct opt *) calloc(1, sizeof *op);
262 if (op == NULL)
264 op->op_name = ns(name);
265 op->op_value = value ? ns(value) : NULL;
266 SLIST_INSERT_HEAD(&op_head, op, op_next);
273 op = SLIST_FIRST(&op_head);
275 if (op->op_value) {
277 op->op_name, op->op_value);
280 free(op->op_name);
281 free(op->op_value);
282 free(op);