Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4119ea0fef33b0e51ea50b73448bc209239d86da
Ticket: 1240568fffffffffffffffffffffffffffffffff
Wrong # args detected for readdir_r on AIX
User & Date: tww-china on 2005-07-18 23:04:42
Changes

  1. assignee changed to: "mdejong"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Tcl 8.4.11 incorrectly detects the number of arguments
    for readdir_r() on AIX. It detects 2 while the correct
    number is 3. The AIX compiler simply issues a warning
    rather than an error.
    
    $ cat test.c
    #include <stdlib.h>
    #include <sys/types.h>
    #include <dirent.h>
    
    int
    main (void) {
      readdir_r(NULL, NULL);
    }
    
    $ xlc test.c
    "test.c", line 7.12: 1506-098 (E) Missing argument(s).
    
    $ echo $?
    0
    
    Test on Solaris 2.6-10/SPARC, HP-UX 10.20, 11.00,
    11.11, AIX 4.3.3, 5.1, 5.2, Tru64 UNIX 4.0D, 5.1, IRIX
    6.5, RH 7.1, 9, RHEL 2.1, 3, 4.
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "tww-china"
  9. subsystem changed to: "53. Configure and Build Tools"
  10. title changed to: "Wrong # args detected for readdir_r on AIX"
  11. type changed to: "Patch"