constants

package
v0.0.0-...-bfb193a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2024 License: LGPL-3.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllConstantNumbers = make(map[int][]string)

AllConstantNumbers contain a mapping from the number of a constant to all registered constants with that value

View Source
var AllConstants = make(map[string]int)

AllConstants contain a mapping from the name of a constant to its value

View Source
var AllErrorNumbers = make(map[int]string)

AllErrorNumbers contain a mapping from all error values to their name

View Source
var AllErrors = make(map[string]int)

AllErrors contain a mapping from all error names to their value

View Source
var SyscallNumbers = make(map[int]string)

SyscallNumbers contain a mapping from each syscall number to its name

View Source
var Syscalls = make(map[string]int)

Syscalls contain a mapping from each syscall name to its number

Functions

func GetConstant

func GetConstant(name string) (uint32, bool)

GetConstant returns the constant for the given name if it exists

func GetError

func GetError(name string) (uint32, bool)

GetError returns the errno for the given name if it exists

func GetSyscall

func GetSyscall(name string) (uint32, bool)

GetSyscall returns the syscall number for the given name if it exists

func RegisterConstant

func RegisterConstant(name string, num int)

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

func RegisterError(name string, num int)

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

func RegisterSyscall(name string, num int)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL