ldcache

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2017 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidCache = errors.New("invalid ld.so.cache file")

Functions

This section is empty.

Types

type Entry1

type Entry1 struct {
	Flags      int32
	Key, Value uint32
}

type Entry2

type Entry2 struct {
	Flags      int32
	Key, Value uint32
	OSVersion  uint32
	HWCap      uint64
}

type Header1

type Header1 struct {
	Magic [len(magicString1) + 1]byte // include null delimiter
	NLibs uint32
}

type Header2

type Header2 struct {
	Magic     [len(magicString2)]byte
	Version   [len(magicVersion)]byte
	NLibs     uint32
	TableSize uint32
	// contains filtered or unexported fields
}

type LDCache

type LDCache struct {
	*bytes.Reader
	// contains filtered or unexported fields
}

func Open

func Open() (*LDCache, error)

func (*LDCache) Close

func (c *LDCache) Close() error

func (*LDCache) Lookup

func (c *LDCache) Lookup(libs ...string) (paths32, paths64 []string)

func (*LDCache) Magic

func (c *LDCache) Magic() string

func (*LDCache) Version

func (c *LDCache) Version() string

Jump to

Keyboard shortcuts

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