MCPcopy Index your code
hub / github.com/opencontainers/runc / Open

Function Open

internal/linux/linux.go:36–44  ·  view source on GitHub ↗

Open wraps [unix.Open].

(path string, mode int, perm uint32)

Source from the content-addressed store, hash-verified

34
35// Open wraps [unix.Open].
36func Open(path string, mode int, perm uint32) (fd int, err error) {
37 fd, err = retryOnEINTR2(func() (int, error) {
38 return unix.Open(path, mode, perm)
39 })
40 if err != nil {
41 return -1, &os.PathError{Op: "open", Path: path, Err: err}
42 }
43 return fd, nil
44}
45
46// Openat wraps [unix.Openat].
47func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) {

Callers 2

pivotRootFunction · 0.92
readArgStringFunction · 0.92

Calls 1

retryOnEINTR2Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…