How do I get the unix filename for a wine handle?

Eric Pouech eric.pouech at wanadoo.fr
Sat Jun 24 07:41:38 CDT 2006


Christoph Probst wrote:

>Hi.
>
>Alexandre Julliard wrote:
>
>  
>
>>You can't do that in general. In Unix a file can have multiple names,
>>or even none at all, there's simply no way to get a filename from a
>>handle. On Linux you can use /proc/self/fd but that's not very
>>portable.
>>    
>>
>
>So what do you think about the solution that the wineserver stores the 
>filename in the file object when the object is created?
>
>Just like wine_server_handle_to_fd() there would be a 
>wine_server_handle_to_filename() that returns the filename.
>
>Any objections to this?
>
>  
>
just for sake of completeness: how about enhancing ClamAV so that it 
takes a fd (instead of a filename) as its input ?
A+



More information about the wine-devel mailing list