Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AllConstantNumbers = make(map[int][]string)
AllConstantNumbers contain a mapping from the number of a constant to all registered constants with that value
var AllConstants = make(map[string]int)
AllConstants contain a mapping from the name of a constant to its value
var AllErrorNumbers = make(map[int]string)
AllErrorNumbers contain a mapping from all error values to their name
var AllErrors = make(map[string]int)
AllErrors contain a mapping from all error names to their value
var SyscallNumbers = make(map[int]string)
SyscallNumbers contain a mapping from each syscall number to its name
var Syscalls = make(map[string]int)
Syscalls contain a mapping from each syscall name to its number
Functions ¶
func GetConstant ¶
GetConstant returns the constant for the given name if it exists
func GetSyscall ¶
GetSyscall returns the syscall number for the given name if it exists
func RegisterConstant ¶
RegisterConstant puts the given constant in the map of all constants, and also adds it to the list of constants with that number
func RegisterError ¶
RegisterError puts the given error in the map of all error, and also adds it to the list of errors with that number, and also registers it as a constant
func RegisterSyscall ¶
RegisterSyscall puts the given syscall in the map of all syscalls, and also adds it to the mapping from number to syscall
Types ¶
This section is empty.