Messages in this thread | | | Date | Mon, 14 Apr 2008 04:44:48 -0700 | From | "H. Peter Anvin" <> | Subject | Re: [patch] F_GETPATH for linux |
| |
Christoph Hellwig wrote: > On Sun, Apr 13, 2008 at 03:00:53PM -0700, Davide Libenzi wrote: >> I was working on some bsd/linux compatibility code, and I noticed that we >> do not have F_GETPATH. I know we can readlink /proc/PID/fd/FD (that is >> what I'm doing now, under #ifdef), but I gave a patch a shot anyway. >> Here it is, building but untested ... > > Adding a duplicated API like this is rather pointless. Especially as > the readlink is easier and makes more sense.
Yes; also, using /proc/self/fd/... makes it a little easier.
-hpa
| |