From 796ef13b20187fa7b90cfa34c302f0fce46b95a5 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Wed, 3 Mar 2021 14:50:27 +0100 Subject: [PATCH] tools: nxstyle: add L_tmpnam/P_tmpdir exceptions Those exceptions are defined in https://pubs.opengroup.org/onlinepubs/9699919799/functions/tempnam.html Signed-off-by: Alin Jerpelea --- tools/nxstyle.c | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/tools/nxstyle.c b/tools/nxstyle.c index 6698bdd09d..f14230c290 100644 --- a/tools/nxstyle.c +++ b/tools/nxstyle.c @@ -206,10 +206,34 @@ static const char *g_white_prefix[] = static const char *g_white_list[] = { - "__EIT_entry", /* Ref: gnu_unwind_find_exidx.c */ - "__gnu_Unwind_Find_exidx", /* Ref: gnu_unwind_find_exidx.c */ - "_Exit", /* Ref: stdlib.h */ - "_Unwind_Ptr", /* Ref: unwind-arm-common.h */ + /* Ref: gnu_unwind_find_exidx.c */ + + "__EIT_entry", + + /* Ref: gnu_unwind_find_exidx.c */ + + "__gnu_Unwind_Find_exidx", + + /* Ref: stdlib.h */ + + "_Exit", + + /* Ref: unwind-arm-common.h */ + + "_Unwind_Ptr", + + /* Ref: + * https://pubs.opengroup.org/onlinepubs/9699919799/functions/tempnam.html + */ + + "P_tmpdir", + + /* Ref: + * https://pubs.opengroup.org/onlinepubs/9699919799/functions/tempnam.html + */ + + "L_tmpnam", + NULL };