Lines Matching refs:op

63 	struct opt *op;  in options()  local
67 op = (struct opt *)calloc(1, sizeof(*op)); in options()
68 if (op == NULL) in options()
70 op->op_name = ns(cp->cpu_name); in options()
71 SLIST_INSERT_HEAD(&opt, op, op_next); in options()
87 op = (struct opt *)calloc(1, sizeof(*op)); in options()
88 if (op == NULL) in options()
90 op->op_name = ns("MAXUSERS"); in options()
92 op->op_value = ns(buf); in options()
93 SLIST_INSERT_HEAD(&opt, op, op_next); in options()
102 op = (struct opt *)calloc(1, sizeof(*op)); in options()
103 if (op == NULL) in options()
105 op->op_name = ns(ol->o_name); in options()
106 SLIST_INSERT_HEAD(&opt, op, op_next); in options()
110 SLIST_FOREACH(op, &opt, op_next) { in options()
112 if (eq(op->op_name, ol->o_name) && in options()
115 op->op_name, ol->o_file); in options()
116 op->op_name = ol->o_file; in options()
123 SLIST_FOREACH(op, &opt, op_next) { in options()
124 if (!op->op_ownfile && strncmp(op->op_name, "DEV_", 4)) { in options()
126 PREFIX, op->op_name); in options()
142 struct opt *op; in do_option() local
155 SLIST_FOREACH(op, &opt, op_next) { in do_option()
156 if (eq(name, op->op_name)) { in do_option()
158 value = op->op_value; in do_option()
164 PREFIX, op->op_name, oldvalue, in do_option()
166 op->op_ownfile++; in do_option()
229 op = (struct opt *) calloc(1, sizeof *op); in do_option()
230 if (op == NULL) in do_option()
232 op->op_name = ns(inw); in do_option()
233 op->op_value = invalue; in do_option()
234 SLIST_INSERT_HEAD(&op_head, op, op_next); in do_option()
246 op = SLIST_FIRST(&op_head); in do_option()
248 free(op->op_name); in do_option()
249 free(op->op_value); in do_option()
250 free(op); in do_option()
257 op = (struct opt *) calloc(1, sizeof *op); in do_option()
258 if (op == NULL) in do_option()
260 op->op_name = ns(name); in do_option()
261 op->op_value = ns(value); in do_option()
262 SLIST_INSERT_HEAD(&op_head, op, op_next); in do_option()
269 op = SLIST_FIRST(&op_head); in do_option()
271 if (op->op_value) { in do_option()
273 op->op_name, op->op_value); in do_option()
276 free(op->op_name); in do_option()
277 free(op->op_value); in do_option()
278 free(op); in do_option()