MCPcopy
hub / github.com/cloudflare/tableflip / newFile

Function newFile

fds.go:63–73  ·  view source on GitHub ↗
(fd uintptr, name fileName)

Source from the content-addressed store, hash-verified

61}
62
63func newFile(fd uintptr, name fileName) *file {
64 f := os.NewFile(fd, name.String())
65 if f == nil {
66 return nil
67 }
68
69 return &file{
70 f,
71 fd,
72 }
73}
74
75// Fds holds all file descriptors inherited from the
76// parent process.

Callers 2

TestChildPassedFdsFunction · 0.85
dupFdFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by 1

TestChildPassedFdsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…