MCPcopy
hub / github.com/opencontainers/runc / SendFile

Function SendFile

libcontainer/utils/cmsg_deprecated.go:25–27  ·  view source on GitHub ↗

SendFile sends a file over the given AF_UNIX socket. file.Name() is also included so that if the other end uses RecvFile, the file will have the same name information. Deprecated: This method is deprecated and has been moved to an internal package (see [cmsg.SendFile]). It will be removed in runc 1

(socket, file *os.File)

Source from the content-addressed store, hash-verified

23// Deprecated: This method is deprecated and has been moved to an internal
24// package (see [cmsg.SendFile]). It will be removed in runc 1.6.
25func SendFile(socket, file *os.File) error {
26 return cmsg.SendFile(socket, file)
27}
28
29// SendRawFd sends a specific file descriptor over the given AF_UNIX socket.
30//

Callers

nothing calls this directly

Calls 1

SendFileFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…