libk  Check-in [f45d66f6db]

Overview
Comment:arch/mktbl.errno.linux.sh: simplify
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: f45d66f6db9aae26a5edc273b8d9dd189e36ee27f129ba8f2a11895a7826388c
User & Date: lachs0r on 2019-08-25 01:05:28
Other Links: manifest | tags
Context
2019-08-25
01:10
arch: add syscall table for x86.lin.32; rerun scripts check-in: fd97c8a737 user: lachs0r tags: trunk
01:05
arch/mktbl.errno.linux.sh: simplify check-in: f45d66f6db user: lachs0r tags: trunk
00:29
delete unnecessary scripts check-in: 76f1cf8037 user: lexi tags: trunk
Changes

Modified arch/mktbl.errno.linux.sh from [e1301e6d16] to [d84e39d1e1].

4
5
6
7
8
9
10
11
12
13
14

15
16
17
18
OUTDIR=$1
ABI=$2

INC_DEF=/usr/src/linux
p_include="${LINUX_SRC:-$INC_DEF}"
p_uapi="$p_include/tools/include/uapi"

cpp -D__"$ABI"__ -undef -dM -I"$p_uapi" "$p_uapi/asm/errno.h" | sort -nrk3 | awk '{
split($0, a, " ");
if (a[2] !~ "^_"){
	ids[a[2]] = a[3];

	if (a[3] ~ /^[0-9]+$/) val=a[3];
	else val=ids[a[3]];
	print a[2] " " val;
}}' | sort -nk2 > "$OUTDIR/error_table.tbl"







|
<
|
<
>
|
|
|

4
5
6
7
8
9
10
11

12

13
14
15
16
17
OUTDIR=$1
ABI=$2

INC_DEF=/usr/src/linux
p_include="${LINUX_SRC:-$INC_DEF}"
p_uapi="$p_include/tools/include/uapi"

cpp -D__"$ABI"__ -undef -dM -I"$p_uapi" "$p_uapi/asm/errno.h" | sort -nrk3 | awk -F' ' '{

if ($2 !~ "^_"){

	ids[$2] = $3;
	if ($3 ~ /^[0-9]+$/) val=$3;
	else val=ids[$3];
	print $2 " " val;
}}' | sort -nk2 > "$OUTDIR/error_table.tbl"