Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a6187121b3dbff257b50c69f3e5a364e9f456dea
Ticket: 942170ffffffffffffffffffffffffffffffffff
HAVE_ST_BLOCKS missing in configure
User & Date: matzek on 2009-11-05 15:33:23
Changes

  1. icomment:
    Summing up some conversation on the chat about this topic, today:
    
    * To enable this code one apparently has to provide the defines HAVE_ST_BLOCKS and USE_OBSOLETE_FS_HOOKS. Neither one is provided via the autoconf stuff.
    
    * If I read the commentary in tclIOUtil.c correctly, this was never released and is only in there for backward compatibility for TclPro.
    
    * st_blocks itself is relatively useless (IMHO), one have to KNOW the block size of the file system. It is not a part of POSIX, but is an X/Open System Interface. Besides this POSIX documents for sys/stat.h:
    
    "The unit for the st_blocks member of the stat structure is not defined within IEEE Std 1003.1-2001. In some implementations it is 512 bytes. It may differ on a file system basis. There is no correlation between values of the st_blocks and st_blksize, and the f_bsize (from <sys/statvfs.h>) structure members.
    
    Traditionally, some implementations defined the multiplier for st_blocks in <sys/param.h> as the symbol DEV_BSIZE."
    
    -- Matthias Kraft
    
    
  2. login: "matzek"
  3. mimetype: "text/plain"
  4. username: "matzek"