package fscommon

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

Index

Variables

var (
	// Set to true by fs unit tests
	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-rc93
Published
Feb 3, 2021
Platform
js/wasm
Imports
7 packages
Last checked
2 minutes ago

Tools for package owners.