aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
authorAlejandro Colomar <alx.manpages@gmail.com>2021-05-10 19:55:23 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2021-05-11 17:18:08 +1200
commit1ad9eda841ce114fec2083a42cd50c1924161586 (patch)
treeef3c36102352a8efad1d672ab2bffe5b6a762faa /scripts
parente59830eda91daaf0fa3f2ad7f09c8c66166948bc (diff)
downloadman-pages-1ad9eda841ce114fec2083a42cd50c1924161586.tar.gz
scripts/bash_aliases: man_lsfunc(): Extract syscall name from syscall(SYS_...)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/bash_aliases1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/bash_aliases b/scripts/bash_aliases
index 358e2f37a5..102c458d77 100644
--- a/scripts/bash_aliases
+++ b/scripts/bash_aliases
@@ -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;
}