]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
bin/grepc, grepc.1: Use 'l' instead of 's' for Linux system calls
authorAlejandro Colomar <alx@kernel.org>
Sun, 5 Nov 2023 12:06:15 +0000 (13:06 +0100)
committerAlejandro Colomar <alx@kernel.org>
Wed, 29 Oct 2025 20:29:22 +0000 (21:29 +0100)
To avoid confusion to users of other kernels.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
bin/grepc
share/man/man1/grepc.1

index 344cf6a9593c74dae20aae38e5a358a7e0aa8329..b0145cab826812ed498f1a2dfcb5303c36cea601 100755 (executable)
--- a/bin/grepc
+++ b/bin/grepc
@@ -15,8 +15,8 @@ t='no';
 t_e='no';
 t_fp='no';
 t_fd='no';
-t_fsp='no';
-t_fsd='no';
+t_flp='no';
+t_fld='no';
 t_fgp='no';
 t_fgd_libm='no';
 t_fgd_libio='no';
@@ -82,8 +82,8 @@ grepc_parse_cmd()
                        f)
                                t_fp='yes';
                                t_fd='yes';
-                               t_fsp='yes';
-                               t_fsd='yes';
+                               t_flp='yes';
+                               t_fld='yes';
                                t_fgp='yes';
                                t_fgd_libm='yes';
                                t_fgd_libio='yes';
@@ -94,15 +94,15 @@ grepc_parse_cmd()
                        fd)
                                t_fd='yes';
                                ;;
-                       fs)
-                               t_fsp='yes';
-                               t_fsd='yes';
+                       fl)
+                               t_flp='yes';
+                               t_fld='yes';
                                ;;
-                       fsp)
-                               t_fsp='yes';
+                       flp)
+                               t_flp='yes';
                                ;;
-                       fsd)
-                               t_fsd='yes';
+                       fld)
+                               t_fld='yes';
                                ;;
                        fg)
                                t_fgp='yes';
@@ -179,8 +179,8 @@ grepc_parse_cmd()
                t_e='yes';
                t_fp='yes';
                t_fd='yes';
-               t_fsp='yes';
-               t_fsd='yes';
+               t_flp='yes';
+               t_fld='yes';
                t_fgp='yes';
                t_fgd_libm='yes';
                t_fgd_libio='yes';
@@ -201,8 +201,8 @@ grepc_fgd_libm()    { grepc_fd "M_DECL_FUNC \(__$1\)"; }
 grepc_fgd_libio()      { grepc_fd "_IO_$1"; }
 grepc_fgp_libio()      { grepc_fp "_IO_$1"; }
 grepc_fgp()            { grepc_fgp_libio "$1"; }
-grepc_fsp()            { echo '(?s)^asmlinkage\s+[\w\s]+\**sys_'"$1"'\s*\(.*?\)'; }
-grepc_fsd()            { echo '(?s)^(COMPAT_)?SYSCALL_DEFINE.\('"$1"'\b.*?^}'; }
+grepc_flp()            { echo '(?s)^asmlinkage\s+[\w\s]+\**sys_'"$1"'\s*\(.*?\)'; }
+grepc_fld()            { echo '(?s)^(COMPAT_)?SYSCALL_DEFINE.\('"$1"'\b.*?^}'; }
 grepc_mf()             { echo '(?s)^[ \t]*#\s*define\s[\s\\]*'"$1"'\(.*?[^\\]$'; }
 grepc_mo()             { echo '(?s)^[ \t]*#\s*define\s[\s\\]*'"$1"'\b(?!\().*?(?<!\\)$'; }
 grepc_t_braced()       { echo '(?s)^([\w[]([\w\s\(,\)[\]*]|::)*[\w\s\)*\]]\s+)?\b(struct|union|enum)\b([\w \t[\]]|::)+\b'"$1"'\b[ \t]*\n*([ \t]*){.*?^\5}.*?;'; }
@@ -223,8 +223,8 @@ grepc_patterns()
        test $t_e = yes                 && grepc_e "$1";
        test $t_fp = yes                && grepc_fp "$1";
        test $t_fd = yes                && grepc_fd "$1";
-       test $t_fsp = yes               && grepc_fsp "$1";
-       test $t_fsd = yes               && grepc_fsd "$1";
+       test $t_flp = yes               && grepc_flp "$1";
+       test $t_fld = yes               && grepc_fld "$1";
        test $t_fgp = yes               && grepc_fgp "$1";
        test $t_fgd_libm = yes          && grepc_fgd_libm "$1";
        test $t_fgd_libio = yes         && grepc_fgd_libio "$1";
index f1ff4eb6c670404153a61d437853fa91a44e8f2d..cabad95c767c96326ab4eefb408e3449a25a54ea 100644 (file)
@@ -47,15 +47,15 @@ Function prototypes.
 .B fd
 Function definitions.
 .TP
-.B fs
+.B fl
 Linux kernel system calls.
 This can be further subdivided into:
 .RS
 .TP
-.B fsp
+.B flp
 Linux kernel system call prototypes.
 .TP
-.B fsd
+.B fld
 Linux kernel system call definitions.
 .RE
 .TP