Question for Vodz about getopt_ulflags ([PATCH] inside)

Tito farmatito at tiscali.it
Wed May 3 11:32:10 UTC 2006


On Wednesday 3 May 2006 12:42, you wrote:
> If you have more than 8*sizeof(ulong) options, split them:
> 
> opts1 = bb_getopt_ulflags(argc, argv, hdparm_options1);
> opts2 = bb_getopt_ulflags(argc, argv, hdparm_options2);

Thanks! 
> BTW, see attached. I do want doc to be in English.
> Please help me to push it through if you can :)

Ok. There are a lot of whitespace changes, couldn't they be ignored?

-       The last argument (val) can undefined from applet_opts.
-       If you use this, then:
+       The last member of struct option (val) typically is set to
++       matching the short option from applet_opts. If there is no matching
+       char in applet_opts, then:
++        - return bit has next position after short options
        - if has_arg is not "no_argument", use ptr for arg also
-       - bb_opt_complementally have effects for this too
+       - bb_opt_complementally affects it too
 
++ "V-"   An option with a dash before colon or end-of-line results in

Maybe just this few minor changes (see ++)...... and couldn't we add this too:

++If you have more than 8*sizeof(ulong) options, split them:

++opts1 = bb_getopt_ulflags(argc, argv, hdparm_options1);
++opts2 = bb_getopt_ulflags(argc, argv, hdparm_options2);

Ciao,
Tito

> vda
> 



More information about the busybox mailing list