Lines Matching defs:opts
15 * @opts: an array of &struct option entries controlling parser operations
23 * Returns opts->val if a matching entry in the 'opts' array is found,
26 int smb_getopt(char *caller, char **options, struct option *opts,
48 for (i = 0; opts[i].name != NULL; i++) {
49 if (!strcmp(opts[i].name, token)) {
50 if (!opts[i].flag && (!val || !*val)) {
56 if (flag && opts[i].flag)
57 *flag |= opts[i].flag;
59 return opts[i].val;