[go-nuts] Linux File descriptor question in golang

2016-07-21 Thread Homer Li
Could I get file path from the file descriptor number ? OS : Linux How to write in golang ? Thanks. -- Best Regards Homer Li -- 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

Re: [go-nuts] Linux File descriptor question in golang

2016-07-21 Thread Konstantin Khomoutov
On Thu, 21 Jul 2016 18:02:53 +0800 Homer Li <01jay...@gmail.com> wrote: > Could I get file path from the file descriptor number ? > OS : Linux > How to write in golang ? I'm afraid, you can't. But as usually in such cases, I have an imminent question: what initial problem are you trying to solve

Re: [go-nuts] Linux File descriptor question in golang

2016-07-21 Thread Alex Bligh
> On 21 Jul 2016, at 11:02, Homer Li <01jay...@gmail.com> wrote: > > Could I get file path from the file descriptor number ? > OS : Linux > How to write in golang ? On Linux (and indeed most if not all POSIX like systems) one cannot get a file path from the file descriptor number. This is irres

Re: [go-nuts] Linux File descriptor question in golang

2016-07-21 Thread Peter Waller
On 21 July 2016 at 12:37, Alex Bligh wrote: > > On Linux (and indeed most if not all POSIX like systems) > one cannot get a file path from the file descriptor number. > This is irrespective of programming language used. While your statement is true generally, it is actually possible so long as t