Lines Matching refs:longoptions
3932 struct longoptions struct
3941 void dump_longoptions(struct longoptions * longoptions) argument
3944 printf("getoptval = %d\n", longoptions->getoptval);
3945 printf("noptions = %d\n", longoptions->noptions);
3946 for (i = 0; i < longoptions->noptions; i++)
3950 longoptions->options[i].name);
3951 printf("options[%d].has_arg = %d\n", i, longoptions->options[i].has_arg);
3952 printf("options[%d].flag = %p\n", i, longoptions->options[i].flag);
3953 printf("options[%d].val = %d\n", i, longoptions->options[i].val);
3959 struct longoptions * alloc_longoptions(struct arg_hdr * *table) in alloc_longoptions()
3961 struct longoptions *result; in alloc_longoptions()
3993 nbytes = sizeof(struct longoptions) in alloc_longoptions()
3996 result = (struct longoptions *)malloc(nbytes); in alloc_longoptions()
4109 struct longoptions *longoptions; in arg_parse_tagged() local
4117 longoptions = alloc_longoptions(table); in arg_parse_tagged()
4119 if (!longoptions || !shortoptions) in arg_parse_tagged()
4125 free(longoptions); in arg_parse_tagged()
4137 getopt_long(argc, argv, shortoptions, longoptions->options, in arg_parse_tagged()
4150 int tabindex = longoptions->getoptval; in arg_parse_tagged()
4226 free(longoptions); in arg_parse_tagged()