Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c2b03341a14ec1cf3001fa30d3a9b47e335e52d4cc7e510378f063ca0b70a66d
Ticket: 92564326a98b551099d3e61bbe88e3b5f9720c15
Open file descriptor leak: better align dir operations(opendir/readdir/closedir) all to either 64bit or 32bit ones.
User & Date: jan.nijtmans on 2018-06-05 07:45:42
Changes

  1. icomment:
    Thanks, sebres, for taking this!  For the 8.x line I agree with your approach. The reason: Using -D_LARGEFILE_SOURCE -D`$(getconf LFS_CFLAGS)` would affect all usage of off_t, the ones in 'struct stat' as well. So, it could lead to binary incompatibility on some platforms (however subtile). For 9.0 that's OK (even better) but for 8.x I'm a little bit reluctant to make that step already.
    
    So - indeed - all those #ifdef's make it a little bit complicated, but it fully preserves binary compatibility with earlier 8.x releases. Good work!
    
    So, +1 for merging it further (core-8-branch and trunk). We already have ticket [02b58d5d04] for cleaning up the code for 9.0, doing it the 'right' way (implementation not 100% finished yet, no TIP needed because it's implementation change only)
    
  2. login: "jan.nijtmans"
  3. mimetype: "text/x-fossil-wiki"