nativefs

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package nativefs contains compiler-owned host filesystem operations. The same source is embedded into emitted Go projects and used by the evaluator.

Index

Constants

View Source
const ModulePath = "golang.org/x/sys"
View Source
const ModuleVersion = "v0.45.0"

Variables

View Source
var (
	ErrBusy        = errors.New("lock is already held")
	ErrUnsupported = errors.New("host lock operation is unsupported")
)

Functions

func Sources

func Sources() map[string][]byte

Sources returns independent copies of the fixed compiler-owned support files. Callers cannot supply paths or register additional native authority.

func TryLock

func TryLock(root *os.Root, path string) (*os.File, error)

TryLock acquires a fresh open-file description for a stable, regular lock file. Closing the returned descriptor releases the lock; the name is kept.

Types

This section is empty.

Jump to

Keyboard shortcuts

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