Hey, I've got a working implementation of $r->finfo, but it's quite messy.

Here are the problems I have...

First, there is no clear mechanism to convert from apr_finfo_t to struct stat ;(
Even more annoying is that even if it was possible, some elements are lost, like
st_blksize, st_blocks & st_rdev.

Second, to somewhat convert an apr_finfo_t to stat, I need a few non-exported
apr_file functions, that I currently am cut and pasting, but I quite obviously
break cross-platform compatibility.

My understanding is that this might be better solved in apr itself, but like I
said, the conversion from struct stat to apr_finfo_t is lossy, probably for 
cross-platform reasons.

Right now, the most sensible solution to me is to do exactly like finfo in 
Apache::compat, but in C, but that requires an extra stat that's not quite
needed.

Any thoughts ?

-- 
Philippe M. Chiasson  <[EMAIL PROTECTED]>
  Extropia's Resident System Guru
     http://www.eXtropia.com/

Go away...I'm alright. (last words)
        -- H. G. Wells

perl -e '$$=\${gozer};{$_=unpack(P26,pack(L,$$));/^Just Another Perl 
Hacker!\n$/&&print||$$++&&redo}'

PGP signature

Reply via email to