]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
grepc: grepc_glibc_math: Support glibc math functions
authorAlejandro Colomar <alx.manpages@gmail.com>
Mon, 9 May 2022 11:20:54 +0000 (13:20 +0200)
committerAlejandro Colomar <alx@kernel.org>
Wed, 29 Oct 2025 20:28:49 +0000 (21:28 +0100)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
bin/grepc

index f8c933d65132124818e28426baf6e873f34e6490..4d6c430fd2129c4d2ec5aa1b3820687aed12a4d5 100755 (executable)
--- a/bin/grepc
+++ b/bin/grepc
@@ -95,6 +95,18 @@ function grepc_syscall()
 }
 
 
+function grepc_glibc_math()
+{
+       grepc_func_def "M_DECL_FUNC \(__$1\)";
+}
+
+
+function grepc_glibc()
+{
+       grepc_glibc_math "$1";
+}
+
+
 function grepc_type_struct_union_enum()
 {
        grepc_helper '\.[ch]$' \
@@ -154,6 +166,7 @@ function main()
        grepc_enum_constant "$1";
        grepc_func "$1";
        grepc_syscall "$1";
+       grepc_glibc "$1";
        grepc_type "$1";
 }