Searched refs:long_opts (Results 1 - 13 of 13) sorted by relevance

/freebsd-11-stable/contrib/dtc/
H A Dutil.c422 const char *short_opts, struct option const long_opts[],
438 for (i = 0; long_opts[i].name; ++i) {
440 int l = strlen(long_opts[i].name) + 1;
441 if (long_opts[i].has_arg == a_argument)
447 for (i = 0; long_opts[i].name; ++i) {
452 if (long_opts[i].val > '~')
455 fprintf(fp, " -%c, ", long_opts[i].val);
458 if (long_opts[i].has_arg == no_argument)
459 fprintf(fp, "--%-*s", optlen, long_opts[i].name);
461 fprintf(fp, "--%s %s%*s", long_opts[
421 util_usage(const char *errmsg, const char *synopsis, const char *short_opts, struct option const long_opts[], const char * const opts_help[]) argument
[all...]
H A Dutil.h214 * @param long_opts The structure of long options
215 * @param opts_help An array of help strings (should align with long_opts)
218 const char *short_opts, struct option const long_opts[],
241 /* Helper for aligning long_opts array */
/freebsd-11-stable/usr.bin/head/
H A Dhead.c66 static const struct option long_opts[] = variable in typeref:struct:option
83 while ((ch = getopt_long(argc, argv, "+n:c:", long_opts, NULL)) != -1)
/freebsd-11-stable/usr.bin/cmp/
H A Dcmp.c61 static const struct option long_opts[] = variable in typeref:struct:option
80 while ((ch = getopt_long(argc, argv, "+hlsxz", long_opts, NULL)) != -1)
/freebsd-11-stable/contrib/ofed/infiniband-diags/src/
H A Dibdiag_common.c82 static struct option *long_opts = NULL; variable in typeref:struct:option
179 struct option *o = long_opts;
185 if (long_opts[0].name)
187 for (o = long_opts; o->name; o++) {
333 struct option *long_opts, *l; local
341 long_opts = malloc((sizeof(common_opts) / sizeof(common_opts[0]) + n) *
342 sizeof(*long_opts));
343 if (!long_opts)
346 l = long_opts;
360 return long_opts;
[all...]
/freebsd-11-stable/contrib/xz/src/lzmainfo/
H A Dlzmainfo.c65 static const struct option long_opts[] = { local
72 while ((c = getopt_long(argc, argv, "", long_opts, NULL)) != -1) {
/freebsd-11-stable/contrib/libxo/xopo/
H A Dxopo.c103 static struct option long_opts[] = { variable in typeref:struct:option
128 long_opts, NULL)) != -1) {
/freebsd-11-stable/contrib/xz/src/xzdec/
H A Dxzdec.c99 static const struct option long_opts[] = { local
114 while ((c = getopt_long(argc, argv, short_opts, long_opts, NULL))
/freebsd-11-stable/usr.bin/uniq/
H A Duniq.c69 static const struct option long_opts[] = variable in typeref:struct:option
113 while ((ch = getopt_long(argc, argv, "+cdif:s:u", long_opts,
/freebsd-11-stable/usr.bin/tail/
H A Dtail.c67 static const struct option long_opts[] = variable in typeref:struct:option
123 while ((ch = getopt_long(argc, argv, "+Fb:c:fn:qr", long_opts, NULL)) !=
/freebsd-11-stable/usr.bin/seq/
H A Dseq.c60 static const struct option long_opts[] = variable in typeref:struct:option
113 (c = getopt_long(argc, argv, "+f:hs:t:w", long_opts, NULL)) != -1) {
/freebsd-11-stable/contrib/libxo/xo/
H A Dxo.c227 static struct option long_opts[] = { variable in typeref:struct:option
264 long_opts, NULL)) != -1) {
/freebsd-11-stable/contrib/xz/src/xz/
H A Dargs.c151 static const struct option long_opts[] = { local
215 while ((c = getopt_long(argc, argv, short_opts, long_opts, NULL))

Completed in 298 milliseconds