Lines Matching refs:long_opts
211 static struct option *long_opts; variable
224 if (short_opts || long_opts) in os_parse_args()
232 long_opts = os_malloc(sizeof(*long_opts) * num_options); in os_parse_args()
233 if (!short_opts || !long_opts) in os_parse_args()
245 long_opts[i].name = sb_opt[i]->flag; in os_parse_args()
246 long_opts[i].has_arg = sb_opt[i]->has_arg ? in os_parse_args()
248 long_opts[i].flag = NULL; in os_parse_args()
251 short_opts[si++] = long_opts[i].val = sb_opt[i]->flag_short; in os_parse_args()
252 if (long_opts[i].has_arg == required_argument) in os_parse_args()
255 long_opts[i].val = sb_opt[i]->flag_short = hidden_short_opt++; in os_parse_args()
267 while ((c = getopt_long(argc, argv, short_opts, long_opts, NULL)) != -1) { in os_parse_args()