Commits

Anonymous committed 852935b Merge

am 5d4b8421: Merge "Verify architecture neutral syscall numbers"

* commit '5d4b8421b3d040e8c2bdb83c8adb2752eab7b4b6':
Verify architecture neutral syscall numbers

Comments (0)

Files changed (1)

libc/tools/checksyscalls.py

 #
 # this tool is used to check that the syscall numbers that are in
 # SYSCALLS.TXT correspond to those found in the Linux kernel sources
-# for the arm and i386 architectures
+# for the arm, i386 and mips architectures
 #
 
 import sys, re, string, os, commands
     for sc in syscalls:
         sc_name = sc["name"]
         sc_id   = sc[idname]
+        if sc_id == -1:
+            sc_id = sc["common"]
         if sc_id >= 0:
             if not arch_dict.has_key(sc_name):
                 print "error: %s syscall %s not defined, should be %d" % (archname, sc_name, sc_id)
                 errors += 1
-            elif not arch_dict.has_key(sc_name):
-                print "error: %s syscall %s is not implemented" % (archname, sc_name)
-                errors += 1
             elif arch_dict[sc_name] != sc_id:
                 print "error: %s syscall %s should be %d instead of %d" % (archname, sc_name, arch_dict[sc_name], sc_id)
                 errors += 1
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.