]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
grepc: grepc_linux*, grepc_syscall*: Rename functions to clearly refer to linux
authorAlejandro Colomar <alx.manpages@gmail.com>
Mon, 9 May 2022 11:43:30 +0000 (13:43 +0200)
committerAlejandro Colomar <alx@kernel.org>
Wed, 29 Oct 2025 20:28:50 +0000 (21:28 +0100)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
bin/grepc

index 1f7c3076bd0ca640885390cb614534f286f308fa..db75520b9fd4e0be42eb5228f30d0bece6760b10 100755 (executable)
--- a/bin/grepc
+++ b/bin/grepc
@@ -72,7 +72,7 @@ function grepc_func()
 }
 
 
-function grepc_syscall_decl()
+function grepc_linux_syscall_decl()
 {
        grepc_helper '\.[ch]$' \
          "\bsys_$1\s*\(" \
@@ -80,7 +80,7 @@ function grepc_syscall_decl()
 }
 
 
-function grepc_syscall_def()
+function grepc_linux_syscall_def()
 {
        grepc_helper '\.c$' \
          "SYSCALL_DEFINE.\($1\b" \
@@ -88,10 +88,10 @@ function grepc_syscall_def()
 }
 
 
-function grepc_syscall()
+function grepc_linux()
 {
-       grepc_syscall_decl "$1";
-       grepc_syscall_def "$1";
+       grepc_linux_syscall_decl "$1";
+       grepc_linux_syscall_def "$1";
 }
 
 
@@ -165,7 +165,7 @@ function main()
        grepc_macro "$1";
        grepc_enum_constant "$1";
        grepc_func "$1";
-       grepc_syscall "$1";
+       grepc_linux "$1";
        grepc_glibc "$1";
        grepc_type "$1";
 }