From 0f75cadf00aa9a70a4a5178e4b50a4e7546cc3f1 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Mon, 9 May 2022 13:20:54 +0200 Subject: [PATCH] grepc: grepc_glibc_math: Support glibc math functions Signed-off-by: Alejandro Colomar --- bin/grepc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/bin/grepc b/bin/grepc index f8c933d65..4d6c430fd 100755 --- 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"; } -- 2.47.3