On Fri, Oct 12, 2018 at 8:10 AM, Greg Saylor <greg.saylor....@gmail.com> wrote: > > If I remember correctly, it would be something like this: > > > fd = open("/tmp", O_TMPFILE | O_RDWR, 0600); > linkat(fd, "", AT_FDCWD, "/tmp/test", AT_EMPTY_PATH); > > This is pretty specific to OS/kernel version and quite possibly the > filesystem too. This could be entirely too much of an edge case to be > reasonably done.
Seems like you can do this today in Go using os.OpenFile, (*os.File).Fd, and unix.Linkat from the golang.org/x/sys/unix package. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.