Categorygithub.com/lk4d4/syscallpp
repositorypackage
0.0.0-20160107014702-f0e7423c8380
Repository: https://github.com/lk4d4/syscallpp.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Syscall Pretty Printer

Helps you to convert syscall numbers to syscall names and back. Also can be helpful for parsing ptrace.

Example

package main

import (
	"fmt"

	"github.com/LK4D4/syscallpp"
)

func main() {
	name := syscallpp.GetName(0)
	num := syscallpp.GetNum("readahead")
	fmt.Printf("%s: %d\n", name, 0)
	fmt.Printf("%s: %d\n", "readahead", num)
}