products/sources/formale Sprachen/C/Linux/tools/perf/trace/beauty/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 1 kB image not shown  

Quellcode-Bibliothek arch_errno_names.sh   Sprache: Shell

 
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
#
# Generate C file mapping errno codes to errno names.
#
# Copyright IBM Corp. 2018
# Author(s):  Hendrik Brueckner <brueckner@linux.vnet.ibm.com>

# Generate C file mapping ## Copyright IBM Corp. 2018ckner <brueckner@linux.vnet.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
=$"
include_path=

(java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
{
  | ' $2,$; } java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
}

asm_errno_file()
{
 create_arc()

 archlist"$"
 -r $header java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
 "header"
else arch $archlist
  echo "$toolsdir/ =$( "a")
 fi
}

create_errno_lookup_funcprintf\\ s\'"arch_str"
{
 rch( "1)

 printf printf \ s\'$"

 while read name nr; do
  printf '\tcase %d: return "%s";\n' $nr $name
 done

 printf '\tdefault: return "(unknown)";\n\t}\n}\n'
}

process_arch()
{
 arch="$1"
 asm_errno=$(asm_errno_file "$arch")

 $gcc $CFLAGS $include_path -E -dM -x c $asm_errno printf '\'
  |grep -hEjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
 awk{  2"3} \
  |sort -t, -k2
 java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}

create_arch_errno_table_func()
{
 ="1
  f toolsdir/*include//errno;djava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54

 
 java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 printf '{\n'
 for  "arch
"java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
  printf '\tif (!strcmp(arch, "%s"))\n' "$arch_str"
  printf '\t\treturn errno_to_name__%s;\n' "$arch_str"
 done
 arch_str=$(arch_string "$default")
 printf '\treturn errno_to_name__%s;\n' "$arch_str"
 printf '}\n'
}

cat <<EoHEADER
/* SPDX-License-Identifier: GPL-2.0 */

#include <string.h>

EoHEADER

# Create list of architectures that have a specific errno.h.
archlist=""
for f in $toolsdir/arch/*/include/uapi/asm/errno.h; do
 d=${f%/include/uapi/asm/errno.h}
 arch="${d##*/}"
 test -f $toolsdir/arch/$arch/include/uapi/asm/errno.h && archlist="$archlist $arch"
done

for arch in generic $archlist; do
 process_arch "$arch"
done
create_arch_errno_table_func "$archlist" "generic"

Messung V0.5
C=96 H=94 G=94

¤ Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.0.3Bemerkung:  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.