(fd uintptr, name fileName)
| 61 | } |
| 62 | |
| 63 | func 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. |
searching dependent graphs…