[14/39] scripts/bash_aliases: man_lsfunc(): Extract syscall name from syscall(SYS_...)

Message ID 20210510175546.28445-15-alx.manpages@gmail.com
State Not applicable
Headers
Series man2: SYNOPSIS: Fix headers, use syscall(), and other fixes |

Checks

Context Check Description
dj/TryBot-apply_patch fail Patch failed to apply to master at the time it was sent

Commit Message

Alejandro Colomar May 10, 2021, 5:55 p.m. UTC
  Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 scripts/bash_aliases | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/scripts/bash_aliases b/scripts/bash_aliases
index 358e2f37a..102c458d7 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;
 }