Lines Matching refs:long_opts
210 static struct option *long_opts; variable
223 if (short_opts || long_opts) in os_parse_args()
231 long_opts = os_malloc(sizeof(*long_opts) * num_options); in os_parse_args()
232 if (!short_opts || !long_opts) in os_parse_args()
244 long_opts[i].name = sb_opt[i]->flag; in os_parse_args()
245 long_opts[i].has_arg = sb_opt[i]->has_arg ? in os_parse_args()
247 long_opts[i].flag = NULL; in os_parse_args()
250 short_opts[si++] = long_opts[i].val = sb_opt[i]->flag_short; in os_parse_args()
251 if (long_opts[i].has_arg == required_argument) in os_parse_args()
254 long_opts[i].val = sb_opt[i]->flag_short = hidden_short_opt++; in os_parse_args()
266 while ((c = getopt_long(argc, argv, short_opts, long_opts, NULL)) != -1) { in os_parse_args()