lkml.org 
[lkml]   [2008]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [patch] F_GETPATH for linux
Date
On Monday 14 April 2008, 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 ...

I reviewed the code path for compat_sys_fcntl{,64} for this patch, looks
good in that respect.

> +error:
> + free_page((unsigned long) buf);
> + return size;
> +}
> +EXPORT_SYMBOL(fcntl_getpath);
> +

Procfs cannot be a module, and there are no other users of this function,
so why do you export it?

Arnd <><


\
 
 \ /
  Last update: 2008-04-14 03:03    [W:1.296 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site