perl-asp mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh Chamas <j...@chamas.com>
Subject Re: "bug" in FileId() ?
Date Thu, 21 Nov 2002 19:22:49 GMT
Ian Cass wrote:
>>What I would like to avoid is having InodeNames try to work on
>>any system for which device and file ids are 0
> 
> 
> But surely on some weird systems that might be valid? If the stat call
> fails, it will return undef. It should therefore be safe to assume that if
> the stat call does not return undef, it has suceeded and the results are
> valid?
> 

Its not that the stat call would fail, but that the
dev/file inode portions returned on the stat call
would be meaningless, like 0,0 or undef,undef

I believe I saw this a long while back on some win32 perl,
so that is why I test for the inode numbers at all.

Regards,

Josh
________________________________________________________________
Josh Chamas, Founder                   phone:925-552-0128
Chamas Enterprises Inc.                http://www.chamas.com
NodeWorks Link Checking                http://www.nodeworks.com


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Mime
View raw message