✏️ 正在编辑: syscalltbl.sh
路径:
/usr/src/linux-aws-headers-4.15.0-1057/arch/arm/tools/syscalltbl.sh
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
#!/bin/sh # SPDX-License-Identifier: GPL-2.0 in="$1" out="$2" my_abis=`echo "($3)" | tr ',' '|'` grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( while read nr abi name entry compat; do if [ "$abi" = "eabi" -a -n "$compat" ]; then echo "$in: error: a compat entry for an EABI syscall ($name) makes no sense" >&2 exit 1 fi if [ -n "$entry" ]; then if [ -z "$compat" ]; then echo "NATIVE($nr, $entry)" else echo "COMPAT($nr, $entry, $compat)" fi fi done ) > "$out"
💾 保存文件
← 返回文件管理器