3 ms·
It's doable when you need it, something like: filefd, err := syscall.Openat(int(dir.Fd()), filename, os.O_RDONLY, 0) file := os.NewFile(uintptr(filefd)
by donio 5y ago
It's doable when you need it, something like:
filefd, err := syscall.Openat(int(dir.Fd()), filename, os.O_RDONLY, 0)
file := os.NewFile(uintptr(filefd), filename) // for use with library functions