On Tue, 11 Dec 2001, Melvin Smith wrote:

> On most UNIX flavors I can use the stat() system call and
> the {struct stat}.st_blksize member to get an idea of
> the blocksize of a regular file.
> 
> I don't currently have access to anything but Linux, Solaris
> and AIX to check this one, and I'm especially not sure
> about VMS, but for now I'm using this as the most portable
> method. If anyone has a system where this member is not
> in the stat struct please tell me since this is not a POSIX
> thing.

You can use perl5's $Config{d_statblks} to check.  If you look in the
perl5 source, you'll find lots of systems don't have it, such as NetWare,
win32, vos, mpeix, vmesa, eopc, and vms.

-- 
    Andy Dougherty              [EMAIL PROTECTED]
    Dept. of Physics
    Lafayette College, Easton PA 18042

Reply via email to