]> git.ipfire.org Git - thirdparty/man-pages.git/commit
scripts/bash_aliases: man_lsfunc(): Fix some corner cases
authorAlejandro Colomar <alx.manpages@gmail.com>
Sun, 23 May 2021 11:50:15 +0000 (13:50 +0200)
committerAlejandro Colomar <alx.manpages@gmail.com>
Fri, 25 Feb 2022 15:29:47 +0000 (16:29 +0100)
commit000f0269b7063591070af3ee098980923ffb01da
tree4955930e619dfc2c605b736cb35690b16c1b172f
parent7e1dbe0b11a5f1c12ab9ae70aa1df3e344ed58ab
scripts/bash_aliases: man_lsfunc(): Fix some corner cases

Although 'int foo(...);' is not a valid C prototype, we use it in
one manual page: sigreturn(2).  Fix man_lsfunc() to find that
prototype.

When a syscall(SYS_...) function doesn't have any arguments
(except for the SYS_* constant), there's not a comma between the
parentheses.  Adapt the regex for that.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
scripts/bash_aliases