Lines Matching refs:longopts
22 …nt argc, char *const *argv, const char *optstring, const struct option *longopts, int *idx, int lo…
24 …nt argc, char *const *argv, const char *optstring, const struct option *longopts, int *idx, int lo… in __getopt_long() argument
43 ret = __getopt_long_core(argc, argv, optstring, longopts, idx, longonly); in __getopt_long()
53 …nt argc, char *const *argv, const char *optstring, const struct option *longopts, int *idx, int lo… in __getopt_long_core() argument
56 if (longopts && argv[optind][0] == '-' && in __getopt_long_core()
63 for (cnt=i=0; longopts[i].name; i++) { in __getopt_long_core()
64 const char *name = longopts[i].name; in __getopt_long_core()
94 if (!longopts[i].has_arg) { in __getopt_long_core()
95 optopt = longopts[i].val; in __getopt_long_core()
100 longopts[i].name, in __getopt_long_core()
101 strlen(longopts[i].name)); in __getopt_long_core()
105 } else if (longopts[i].has_arg == required_argument) { in __getopt_long_core()
107 optopt = longopts[i].val; in __getopt_long_core()
112 longopts[i].name, in __getopt_long_core()
113 strlen(longopts[i].name)); in __getopt_long_core()
119 if (longopts[i].flag) { in __getopt_long_core()
120 *longopts[i].flag = longopts[i].val; in __getopt_long_core()
123 return longopts[i].val; in __getopt_long_core()
140 int getopt_long(int argc, char *const *argv, const char *optstring, const struct option *longopts, … in getopt_long() argument
142 return __getopt_long(argc, argv, optstring, longopts, idx, 0); in getopt_long()
145 …g_only(int argc, char *const *argv, const char *optstring, const struct option *longopts, int *idx) in getopt_long_only() argument
147 return __getopt_long(argc, argv, optstring, longopts, idx, 1); in getopt_long_only()