GetFile is a convenience wrapper for t.FDTable().Get. Precondition: same as FDTable.Get.
(fd int32)
| 799 | // |
| 800 | // Precondition: same as FDTable.Get. |
| 801 | func (t *Task) GetFile(fd int32) *vfs.FileDescription { |
| 802 | f, _ := t.fdTable.Get(fd) |
| 803 | return f |
| 804 | } |
| 805 | |
| 806 | // NewFDs is a convenience wrapper for t.FDTable().NewFDs. |
| 807 | // |
no test coverage detected