Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: deead33d2eb4f4986a48125d519bc5de97a88df7
Ticket: 942170ffffffffffffffffffffffffffffffffff
HAVE_ST_BLOCKS missing in configure
User & Date: stwo on 2009-11-06 03:02:22
Changes

  1. icomment:
    USE_OBSOLETE_FS_HOOKS enables old code which also uses  HAVE_ST_BLOCKS.
    If HAVE_ST_BLOCKS is enabled then the C function Tcl_Stat and the Tcl command [file stat] will return a 'blocks' field.
    This has been around since 8.4.0 and seeing as no one seems to be missing it, I'd agree that it should be purged.
    But! The implementation of TIP 316 has now added: Tcl_GetBlocksFromStat - Returns the st_blocks field as an unsigned wide integer.
    If HAVE_ST_BLOCKS isn't defined then a guess is made.
    So perhaps HAVE_ST_BLOCKS should be properly configured and used.
    The function StoreStatData in generic/tclICmdAH.c could be modified to use the TIP 316 functions.
    Have all the 'stat' functions/commands return the same fields.
    As it is now, if HAVE_ST_BLOCKS were to be enabled then the result of [file stat] would contain an 'extra' field. This causes a test failure since the test suite doesn't account for the 'blocks' field either.
    
    
  2. login: "stwo"
  3. mimetype: "text/plain"
  4. username: "stwo"