]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - nptl/tst-cancel-wrappers.sh
Add per-thread cache to malloc
[thirdparty/glibc.git] / nptl / tst-cancel-wrappers.sh
index dad2a674e12c71705af5ffefc9f617f0bdecb506..1795e3d86e08a9ec84911c4bbf2fc0b788b72843 100644 (file)
@@ -1,6 +1,6 @@
-#! /bin/sh
+#!/bin/sh
 # Test whether all cancelable functions are cancelable.
-# Copyright (C) 2002, 2003, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2002-2017 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 # Contributed by Jakub Jelinek <jakub@redhat.com>, 2002.
 
@@ -18,8 +18,9 @@
 # License along with the GNU C Library; if not, see
 # <http://www.gnu.org/licenses/>.
 
+NM="$1"; shift
 while [ $# -gt 0 ]; do
-  ( nm -P $1; echo 'end[end]:' ) | gawk ' BEGIN {
+  ( $NM -P $1; echo 'end[end]:' ) | gawk ' BEGIN {
 C["accept"]=1
 C["close"]=1
 C["connect"]=1
@@ -53,7 +54,6 @@ C["sigpause"]=1
 C["sigsuspend"]=1
 C["sigwait"]=1
 C["sigwaitinfo"]=1
-C["system"]=1
 C["tcdrain"]=1
 C["wait"]=1
 C["waitid"]=1
@@ -74,7 +74,7 @@ C["__xpg_sigpause"]=1
   seen=""
   seen_enable=""
   seen_disable=""
-  object=gensub(/^.*\[(.*)\]:$/,"\\1","",$0)
+  object=gensub(/^.*\[(.*)\]:$/, "\\1", 1, $0)
   next
 }
 {