Skip to content
Tcl Source Code History Of Ticket 219197ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 219197ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 219197ffffffffffffffffffffffffffffffffff

  1. Ticket change [5f29df4528] (rid 115765) by nobody on 2000-10-26 05:03:25:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 2818 RFE
      Version: 8.0.4
      SubmitDate: '1999-09-16'
      LastModified: '2000-05-15'
      Severity: CRIT
      Status: Assigned
      Submitter: techsupp
      ChangedBy: hobbs
      RelatedBugIDs: 5493
      OS: All Unix
      OSVersion: 4.3.2
      Machine: RS6000
      FixedDate: '2000-10-25'
      ClosedDate: '2000-10-25'
      
      
      Name:
      John Wiersba
      
      ReproducibleScript:
      generic/tclInt.h typedefs TclStat_ to be struct stat but hasn't included
      sys/stat.h so when compiling with "large files" (> 2G) on AIX 4.3.2
      there is a type mismatch (generic/tclCmdAH.c 1018) since sys/stat.h
      #defines stat to be stat64 but sys/stat.h hasn't been used by tclInt.h.
      
      Fix: generic/tclInt.h should #include <sys/stat.h> somewhere before line
      1357.
      
      
      This was originally for AIX, but Tcl in general doesn't support
      >2GB files because it needs to extend a lot of the internal
      code to use longs (size_t's actually) instead of ints. 
      -- 03/30/2000 hobbs
      
    4. foundin initialized to: "obsolete: 8.0.4"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "37. File System"
    10. title initialized to: "Tcl broken for "large files""
    11. type initialized to: "Bug"
  2. Ticket change [86c0c6a126] (rid 131572) by rmax on 2001-02-19 14:42:31:

    1. icomment:
      Some details about Large File Support in Linux:
      
      http://www.suse.de/~aj/linux_lfs.html
      
      
    2. login: "rmax"
    3. mimetype: "text/plain"
    4. username: "rmax"
  3. Ticket change [1c2ea9e599] (rid 90560) by andreas_kupries on 2001-09-08 06:29:25:

    1. assignee changed to: "vincentdarley"
    2. title changed to: "Tcl broken for "large files""
  4. Ticket change [87181a8aa5] (rid 131637) by dkf on 2001-09-13 22:10:19:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      It seems that both Solaris and Linux can support large files
      through the use of (l)stat64() and struct stat64, but while
      Solaris gives you access to those by default, you need to
      wave the magic define wand called _LARGEFILE64_SOURCE (which
      is an implicit part of _GNU_SOURCE.)
      
      I *HATE* magic wands...  :^(
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. title changed to: "Tcl broken for "large files""
    5. username: "dkf"
  5. Ticket change [a2cd3a9bbd] (rid 109954) by dkf on 2001-09-14 16:14:46:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      I've just noticed that Tcl_Seek() and Tcl_Tell() deal with
      int offsets. That's Just Plain Wrong.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. title changed to: "Tcl broken for "large files""
    5. username: "dkf"
  6. Ticket change [9171f580b8] (rid 120618) by vincentdarley on 2001-09-14 16:41:11:

    1. icomment:
      Logged In: YES 
      user_id=32170
      
      Seek and Tell are channel, not fs related, although of 
      course all of this is tied up in 'big file support'. 
      
      All of these problems are going to have to wait until 
      someone decides they want to TIP and tackle large file 
      support in Tcl.  Is there a sensible sourceforge category 
      we can use for these things?  Something like "Known 
      limitation/bug awaiting a TIP and contributor".
      
      There's also no point in it being assigned to me.  It needs 
      to be assigned to 'unknown future contributor'.
      
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. title changed to: "Tcl broken for "large files""
    5. username: "vincentdarley"
  7. Ticket change [4117716f3c] (rid 116122) by rmax on 2001-09-14 16:58:04:

    1. icomment:
      Logged In: YES 
      user_id=124643
      
      At the Tcl/Tk conference this year, I talked with Jeff
      Hobbs, Larry Virden, Andreas Kupries and others about the
      LFS issue. According to Jeff a patch that brings Tcl support
      for large files is more of a bug fix than a feature add and
      therefore doesn't need a TIP to make it in.
      
      
      
    2. login: "rmax"
    3. mimetype: "text/plain"
    4. username: "rmax"
  8. Ticket change [9193c89c57] (rid 120638) by dkf on 2001-09-14 19:26:00:

    1. assignee changed to: "andreas_kupries"
    2. icomment:
      Logged In: YES 
      user_id=79902
      
      I've yet to go through and fix the Tcl_DriverSeekProc type
      (which needs to be long-returning since it is the new offset
      in the file) but here are the fixes to make Tcl_Seek and
      Tcl_Tell work with longs instead of ints, which makes a
      difference on platforms where sizeof(long)!=sizeof(int) as
      many (all?) of those support large files natively.  Note
      that there are still many fixes to be done...
      
      NB: The patch does some tricky stuff with stubs, because the
      type signature of stubbed procs is changed and extension
      code that currently exists will be expecting ints and not
      longs...
      
      At some point, this bug's category will need to change back
      to 'File System', but much of the current stuff is 'Channel
      System' and so needs considering there...
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. subsystem changed to: "25. Channel System"
    6. title changed to: "Tcl broken for large files"
    7. username: "dkf"
  9. Ticket change [0e7b1c06ad] (rid 94624) by dkf on 2001-09-14 20:19:42:

    1. icomment:
      
      
      File Added - 10772: longseektell.patch
      
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  10. Add attachment "longseektell.patch" [131789011d] (rid 124156) by dkf on 2001-09-14 20:19:42.

  11. Ticket change [075de40d1b] (rid 89382) by dkf on 2001-09-14 20:21:16:

    1. icomment:
      
      
      File Added - 10773: longseektellanddrv.patch
      
      Logged In: YES 
      user_id=79902
      
      Here's the version with the driver update; if only it didn't
      force a public API change, I'd check it in without asking
      anyone else to give it the once-over...
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  12. Ticket change [f3c59942e4] (rid 129775) by rmax on 2001-09-14 21:03:39:

    1. icomment:
      Logged In: YES 
      user_id=124643
      
      Shouldn't the ints here be changed to off_t or long long
      instead of long?
      On 32bit plattforms int <=> long so this patch is not really
      an improvement for those.
      
      
    2. login: "rmax"
    3. mimetype: "text/plain"
    4. username: "rmax"
  13. Ticket change [ecf392227c] (rid 103797) by dkf on 2001-09-14 21:24:33:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Can't be off_t since that precludes off64_t.
      Can't be long long since that's not portable.
      An independent guaranteed 64-bit number type requires a lot
      more work *and* will have much wider impact upon the core,
      especially including much of the bytecode implementation and
      both [format] and [binary format].
      
      64-bit support is non-trivial to add.  Converting up to at
      least a long here will allow platforms that differentiate
      between long and int (Alpha for sure, and maybe others) to
      benefit while not forcing everything else to suffer.
      
      Damn. Forgot Tcl_TellObjCmd and Tcl_SeekObjCmd...
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  14. Add attachment "longseektelldrvcmd.patch" [cdd3fa3ef6] (rid 95957) by dkf on 2001-09-14 21:26:42.

  15. Ticket change [24fdd093a1] (rid 131202) by dkf on 2001-09-14 21:26:43:

    1. icomment:
      
      
      File Deleted - 10773: 
      
      
      
      File Added - 10781: longseektelldrvcmd.patch
      
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  16. Ticket change [ddc3d7cca6] (rid 114728) by rmax on 2001-09-14 21:37:46:

    1. icomment:
      Logged In: YES 
      user_id=124643
      
      What do you mean when you say:"off_t precludes off64_t"?
      
      For what I understand, off_t is 64 bit on 64bit platforms.
      It is also 64 bit on 32 bit platforms that support LFS if
      you
      enable it at compile time.
      
      --- snip (/usr/include/sys/types.h on SuSE Linux 7.2) ---
      # ifndef __USE_FILE_OFFSET64
      typedef __off_t off_t;
      # else
      typedef __off64_t off_t;
      # endif
      --- snap ---
      
      So to me it looks like that's exactly what we need for
      Tcl_Seek and Tcl_Tell.
      
      
    2. login: "rmax"
    3. mimetype: "text/plain"
    4. username: "rmax"
  17. Ticket change [a28fed5771] (rid 109918) by dkf on 2001-09-14 22:19:10:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Not (or doesn't seem to be) true on Solaris, which is a
      major target for Tcl.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  18. Ticket change [bb7490d363] (rid 129486) by rmax on 2001-09-14 22:26:22:

    1. icomment:
      Logged In: YES 
      user_id=124643
      
      So what about a Tcl_off_t that is defined as
      off64_t where applicable and off_t otherwise?
      
      
      
    2. login: "rmax"
    3. mimetype: "text/plain"
    4. username: "rmax"
  19. Ticket change [414a907d93] (rid 116165) by dkf on 2001-09-14 22:32:49:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Reexamine source:
      Solaris depends on _FILE_OFFSET_BITS or _LP64, in a fairly
      complex fashion, and only defines off64_t for you if
      _LARGEFILE64_SOURCE is defined.  I've no idea what the
      defaults for those all are, as that nest of #defines and
      #ifdefs is not at all clear...
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  20. Ticket change [4e2d3bbd9f] (rid 127176) by dkf on 2001-09-14 22:35:17:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Are you going to write the code for tcl.m4 to determine the
      correct set of definitions so we can handle all this
      largefile stuff?
      
      I object to Tcl_off_t on the grounds that it is inconsistent
      with the way the rest of Tcl's types are named.  :^)
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  21. Ticket change [6c069e4586] (rid 128429) by dkf on 2001-09-14 22:42:04:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Of course, I should comment that the real problem with
      64-bit offsets on 32-bit machines comes when those offsets
      get back to the command-implementation level, where it is
      currently impossible to handle them... :^(
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  22. Ticket change [38cb301822] (rid 112269) by hobbs on 2002-03-23 06:59:09:

    1. closedate changed to: "2002-03-22T23:59:09"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      This is correctly handled with dkf's work in TIP #72 now in 
      8.4a4.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "hobbs"