]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
scripts/bash_aliases: man_lsfunc(): Extract syscall name from syscall(SYS_...)
authorAlejandro Colomar <alx.manpages@gmail.com>
Mon, 10 May 2021 17:55:23 +0000 (19:55 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Tue, 11 May 2021 05:18:08 +0000 (17:18 +1200)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
scripts/bash_aliases

index 358e2f37a58dbd03338aab42e4c07a66e90d4d29..102c458d777f378310b3a7643142452572d6d7a7 100644 (file)
@@ -136,6 +136,7 @@ function man_lsfunc()
        |sed_rm_ccomments \
        |pcregrep -Mn '(?s)^ [\w ]+ \**\w+\([\w\s(,)[\]*]+?(...)?\s*\); *$' \
        |grep '^[0-9]' \
+       |sed    's/syscall(SYS_\(\w*\),/\1(/' \
        |sed -E 's/^[^(]+ \**(\w+)\(.*/\1/' \
        |uniq;
 }