Skip to content
Tcl Source Code History Of Ticket 1287638
Login

History Of Ticket 1287638

Artifacts Associated With Ticket 1287638

  1. Ticket change [04f9428acb] (rid 88965) by roboxhack on 2005-09-11 09:03:19:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      TCL does not support writing more than 2 GB to files
      
      In generic/tclIOUtil.c
      
      Function: TclGetOpenMode
      
      For opening new files, the O_LARGEFILE flag should be
      added to support >2GB files:
      
          case 'w':
      mode = O_WRONLY|O_CREAT|O_TRUNC;
      
      should be
      
      #define O_LARGEFILE     0100000
       .....
       case 'w':
                      mode =
      O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE;
      
      
      The same needs to be done for appending and other file
      access modes.
      
      
    4. foundin initialized to: "obsolete: 8.4.11"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "roboxhack"
    9. subsystem initialized to: "37. File System"
    10. title initialized to:
      
      TCL does not support writing more than 2 GB to files
      
    11. type initialized to: "Bug"
  2. Ticket change [4572fd007e] (rid 99353) by dkf on 2005-09-12 15:28:11:

    1. assignee changed to: "dkf"
    2. priority changed to: "8"
    3. title changed to: "Missing O_LARGEFILE flag?"
  3. Ticket change [dea5eb9e97] (rid 114886) by dkf on 2005-09-12 15:54:09:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Tcl actually uses open64() where available, which is
      documented to behave as open() with the O_LARGEFILE flag. At
      least on Solaris and AIX. Can't find any docs on Linux or
      SGI (though both support it) and the ancient FreeBSD box
      I've got access to doesn't seem to support either open64 or
      O_LARGEFILE.
      
      If you can actually exhibit a failure (as opposed to "you've
      looked at the source and can't find the flag") please
      describe exactly what platform you're on.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  4. Ticket change [d4d09153b1] (rid 123509) by roboxhack on 2005-09-15 05:08:19:

    1. icomment:
      Logged In: YES 
      user_id=1342738
      
      Platform is RHEL v3. 
      
      I noticed the problem while using ns2 network simulator,
      simulations above 2 GB generated the SIGXFSZ signal. ns2
      uses TCL to set up the simulation files, the file handle
      being used in TCL suffers from the above problem. 
      
      Fixing the TCL code as above solved the problem and
      simulations larger than 2 GB worked. 
      
      
      
    2. login: "roboxhack"
    3. mimetype: "text/plain"
    4. username: "roboxhack"
  5. Ticket change [c2743f924a] (rid 111487) by dkf on 2005-09-15 22:31:14:

    1. assignee changed to: "hobbs"
    2. icomment:
      Logged In: YES 
      user_id=79902
      
      Hmm, googling around finally turns up something useful.
      According to
      http://www.redhat.com/docs/wp/solaris_port/x1609.html we
      need to define _LARGEFILE_SOURCE64 but instead we define
      _LARGEFILE64_SOURCE (which other versions of libc on other
      platforms prefer).
      
      Ick.
      
      Extended unix/tcl.m4 in the HEAD and the tip of the 8.4 branch
      
      configure scripts still need rebuilding.
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. priority changed to: "6"
    6. username: "dkf"
  6. Ticket change [ef2e48b1e3] (rid 108949) by hobbs on 2005-09-16 02:02:53:

    1. closedate changed to: "2005-09-15T19:02:53"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      It appears that DGP got to the reconfigure.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "hobbs"