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

Kari Hurtta hurtta+gmane at siilo.fmi.fi
Sat Jun 24 08:56:44 CDT 2006


Eric Pouech <eric.pouech at wanadoo.fr> writes:

> 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+

It does
        http://www.clamav.net/doc/0.88.2/html/node24.html

| The daemon is fully configurable via the clamd.conf file 5. clamd recognizes the following commands:
<...>
| STREAM  Scan stream: clamd will return a new port number you should connect to and send data to scan.


You not need to use following command:

| SCAN file/directory  Scan file or directory (recursively) with archive support enabled (a full path is required).





More information about the wine-devel mailing list