summaryrefslogtreecommitdiff
path: root/rust/kernel/interop/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorCosta Shulyupin <costa.shul@redhat.com>2026-01-08 11:49:55 +0200
committerTomas Glozar <tglozar@redhat.com>2026-03-02 14:53:41 +0100
commit4a1cec7450b7159a0ee57403f44460ac4d618b4f (patch)
tree4a5b7a7fb58dfd161a5fe53f1a5d4178b2f190c7 /rust/kernel/interop/git@git.tavy.me:linux-stable.git
parent11439c4635edd669ae435eec308f4ab8a0804808 (diff)
tools/rtla: Generate optstring from long options
getopt_long() processes short and long options independently. RTLA, like the majority of applications, uses both short and long variants for each logical option. Since the val member of struct option holds the letter of the short variant, the string of short options can be reconstructed from the array of long options. Add getopt_auto() to generate optstring from an array of long options, eliminating the need to maintain separate short option strings. Signed-off-by: Costa Shulyupin <costa.shul@redhat.com> Reviewed-by: Wander Lairson Costa <wander@redhat.com> Link: https://lore.kernel.org/r/20260108095011.2115719-1-costa.shul@redhat.com Signed-off-by: Tomas Glozar <tglozar@redhat.com>
Diffstat (limited to 'rust/kernel/interop/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions