syscallpp

package module
v0.0.0-...-f0e7423 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2016 License: MIT Imports: 0 Imported by: 0

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)
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetName

func GetName(num int) string

func GetNum

func GetNum(name string) int

Types

type ArgType

type ArgType uint
const (
	ARG_INT ArgType = iota
	ARG_STR
	ARG_PTR
)

func GetArgsTypes

func GetArgsTypes(name string) []ArgType

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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