"No difference between a file handle to something in memory and to a file on 
the FS.”

Apparently there is, otherwise it would work with a memory file handle.  

--  
Erik Aigner


On Wednesday 20 November 2013 at 20:15, Brandon Perry wrote:

> Why would you *have* to write to the disk? No difference between a file 
> handle to something in memory and to a file on the FS.
>  
> That being said, i actually used a ramdisk when building my clamav bindings 
> (https://github.com/brandonprry/clam-sharp/).
>  
> Sent from a computer
>  
> > On Nov 20, 2013, at 12:42, Erik Aigner <aigner.e...@gmail.com 
> > (mailto:aigner.e...@gmail.com)> wrote:
> >  
> > Helo!
> >  
> > The clamav daemon has an INSTREAM feature for scanning a stream of data.
> > I’m developing Go bindings for libclamav (https://github.com/eaigner/clam) 
> > and was
> > wondering why there isn’t such a feature in libclamav?
> >  
> > I searched the libclamav headers for something equal but didn’t find 
> > anything similar.
> > It seems I can only scan by file handle. If I use a pipe handle, it will 
> > fail.
> >  
> > Is that correct? Do I really have to write (potentially huge) files to disk 
> > to scan for clamav?  
> >  
> > Cheers,  
> >  
> > --  
> > Erik Aigner
> >  
> >  
> > _______________________________________________
> > http://lurker.clamav.net/list/clamav-devel.html
> > Please submit your patches to our Bugzilla: http://bugs.clamav.net
>  
>  
> _______________________________________________
> http://lurker.clamav.net/list/clamav-devel.html
> Please submit your patches to our Bugzilla: http://bugs.clamav.net



_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

Reply via email to