commit 9e0d1da
Michael Forney
·
2026-03-17 06:43:59 +0000 UTC
parent 1b93b94
linux-headers: Update unistd.awk to match recent syscallhdr.sh output exactly
2 files changed,
+3,
-3
+0,
-1
1@@ -84,7 +84,6 @@ for _, spec in ipairs(archfiles.unistd) do
2 local out = '$outdir/include/asm/'..spec.dst
3 build('awk', out, {'$srcdir/'..spec.src, '|', '$dir/unistd.awk'}, {
4 expr={
5- '-v arch='..arch,
6 '-v file='..spec.dst,
7 string.format([[-v abi='%s']], spec.abi),
8 '-v off='..(spec.off or ''),
+3,
-2
1@@ -1,8 +1,8 @@
2 BEGIN {
3- guard = toupper("_ASM_" arch "_" file)
4+ guard = toupper("_ASM_" file)
5 gsub(/[^A-Za-z0-9_]/, "_", guard)
6 print "#ifndef " guard
7- print "#define " guard " 1"
8+ print "#define " guard
9 print ""
10 }
11
12@@ -13,6 +13,7 @@ $0 ~ /^[^#]+/ && $2 ~ "^(" abi ")$" {
13 }
14
15 END {
16+ print ""
17 print ""
18 print "#endif /* " guard " */"
19 }