package fscommon

import "github.com/opencontainers/runc/libcontainer/cgroups/fscommon"

Index

Variables

var (
	// TestMode is set to true by unit tests that need "fake" cgroupfs.
	TestMode bool
)

Functions

func OpenFile

func OpenFile(dir, file string, flags int) (*os.File, error)

OpenFile opens a cgroup file in a given dir with given flags. It is supposed to be used for cgroup files only.

Source Files

open.go

Version
v1.0.0-rc94
Published
May 10, 2021
Platform
js/wasm
Imports
6 packages
Last checked
1 hour ago

Tools for package owners.