aboutsummaryrefslogtreecommitdiffstats
path: root/sys/decl.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2016-08-26 12:51:25 +0200
committerDmitry Vyukov <dvyukov@google.com>2016-08-26 12:51:25 +0200
commitd78bc6e66c108ea0169259520de8f8b9deeadeaa (patch)
tree9103076d1d068c16931c3d57bc1df51031f449a6 /sys/decl.go
parent04fb414b499c660ade7fe8eb427f432c7c7d8b86 (diff)
sys: fix skipping of syscalls with unknown constants
Still need to generate description for such syscalls so that they at least can be parsed, and so that Go and C entries match.
Diffstat (limited to 'sys/decl.go')
-rw-r--r--sys/decl.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/decl.go b/sys/decl.go
index 7023bcdb2..e24b21766 100644
--- a/sys/decl.go
+++ b/sys/decl.go
@@ -660,7 +660,8 @@ func init() {
initResources()
initAlign()
- for _, c := range Calls {
+ for i, c := range Calls {
+ c.ID = i
if CallMap[c.Name] != nil {
println(c.Name)
panic("duplicate syscall")