Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: be743f2c16687c48bb2e1418c6b6e74b7248fd75
Ticket: 1001325fffffffffffffffffffffffffffffffff
readdir_r() is different on IRIX 5.3
User & Date: nobody on 2004-07-31 22:55:41
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    When compiling tcl 8.4.7 on IRIX 5.3 with --enable-threads one ends up with
    cfe: Error: ./../unix/tclUnixThrd.c, line 837: The number of arguments doesn't agree with the number in the declaration.
         if (readdir_r (dir, ent, &ent) != 0) {
     ------------------^
    *** Error code 1 (bu21)
    
    This is because on IRIX 5.3 readdir_r() is
    
     struct dirent *readdir_r (DIR *dirp, struct dirent *res);
    
    unix/tclUnixThrd.c thushas to be changed on IRIX 5.3 into
    
    #ifdef HAVE_READDIR_R
        ent = &tsdPtr->rdbuf.ent;
    /*    if (TclOSreaddir_r(dir, ent, &ent) != 0) {
            ent = NULL;
        }
    */
            ent=TclOSreaddir_r(dir, ent);
    
    #else /* !HAVE_READDIR_R */
    
    ideally the configure tools should detect which version of readdir_r is being used on a given platform.
    
  4. foundin changed to: "obsolete: 8.4.7"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "49. Threading"
  10. title changed to: "readdir_r() is different on IRIX 5.3"
  11. type changed to: "Bug"