clib

package
v0.3.24 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: MIT Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package clib is the shared purego plumbing for the native libraries the lys family binds without cgo (lys-login's libpam at run time, and the reference libpipewire and libei the tests here drive): dlopen over a candidate list and C string copies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoString

func GoString(p *byte) string

GoString copies a NUL-terminated C string; nil is "".

func Open

func Open(candidates []string) (uintptr, error)

Open dlopens the first candidate that loads (RTLD_NOW|RTLD_GLOBAL), joining every failure when none does.

func SystemCandidates

func SystemCandidates(soname string) []string

SystemCandidates is a soname through the loader's own search path (LD_LIBRARY_PATH, ld.so.cache), then the NixOS system profile — whose loader has no FHS default path — and the common distro locations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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