Lines Matching refs:args
38 struct args { struct
57 struct args *args = arg; in list_cap() argument
60 if ((args->colnum + strlen(name) + 1) > MAX_RHS_COLUMN) { in list_cap()
61 (void) fprintf(args->fp, "\n"); in list_cap()
62 for (i = 0; i < args->margin; i++) in list_cap()
63 (void) fprintf(args->fp, " "); in list_cap()
64 args->colnum = args->margin; in list_cap()
66 args->colnum += fprintf(args->fp, "%s ", name); in list_cap()
156 struct args _args, *args = &_args; in capabilities() local
162 args->fp = fp; in capabilities()
166 (void) fprintf(args->fp, "\t%s: %s\n\n", in capabilities()
169 (void) fprintf(args->fp, gettext("\tevent specification syntax:\n")); in capabilities()
171 (void) fprintf(args->fp, "\t[picn=]<eventn>[,attr[n][=<val>]]" in capabilities()
174 (void) fprintf(args->fp, gettext("\n\tGeneric Events:\n")); in capabilities()
177 args->margin = args->colnum = EVENT_MARGIN; in capabilities()
178 (void) fprintf(args->fp, "\n\tevent[0-%d]: ", npic - 1); in capabilities()
179 cpc_walk_generic_events_pic(cpc, 0, args, list_cap); in capabilities()
180 (void) fprintf(args->fp, "\n"); in capabilities()
182 args->margin = EVENT_MARGIN; in capabilities()
184 (void) fprintf(args->fp, "\n\tevent%d: ", i); in capabilities()
185 if (i < 10) (void) fprintf(args->fp, " "); in capabilities()
186 args->colnum = EVENT_MARGIN; in capabilities()
187 cpc_walk_generic_events_pic(cpc, i, args, list_cap); in capabilities()
188 (void) fprintf(args->fp, "\n"); in capabilities()
192 (void) fprintf(args->fp, gettext("\n\tSee generic_events(3CPC) for" in capabilities()
195 (void) fprintf(args->fp, gettext("\tPlatform Specific Events:\n")); in capabilities()
198 args->margin = args->colnum = EVENT_MARGIN; in capabilities()
199 (void) fprintf(args->fp, "\n\tevent[0-%d]: ", npic - 1); in capabilities()
200 cpc_walk_events_pic(cpc, 0, args, list_cap); in capabilities()
201 (void) fprintf(args->fp, "\n"); in capabilities()
203 args->margin = EVENT_MARGIN; in capabilities()
205 (void) fprintf(args->fp, "\n\tevent%d: ", i); in capabilities()
206 if (i < 10) (void) fprintf(args->fp, " "); in capabilities()
207 args->colnum = EVENT_MARGIN; in capabilities()
208 cpc_walk_events_pic(cpc, i, args, list_cap); in capabilities()
209 (void) fprintf(args->fp, "\n"); in capabilities()
213 (void) fprintf(args->fp, "\n\tattributes: "); in capabilities()
214 args->colnum = args->margin = ATTR_MARGIN; in capabilities()
215 cpc_walk_attrs(cpc, args, list_attr); in capabilities()
221 list_cap(args, 0, "nouser"); in capabilities()
222 list_cap(args, 0, "sys"); in capabilities()
223 (void) fprintf(args->fp, "\n\n\t"); in capabilities()
224 args->colnum = 8; in capabilities()
234 if ((args->colnum + strlen(cp) + 1) > MAX_RHS_COLUMN) { in capabilities()
235 (void) fprintf(args->fp, "\n\t"); in capabilities()
236 args->colnum = 8; in capabilities()
238 args->colnum += fprintf(args->fp, "%s ", cp); in capabilities()
240 (void) fprintf(args->fp, "\n"); in capabilities()