Tcl Source Code

View Ticket
Login
Ticket UUID: 1240568
Title: Wrong # args detected for readdir_r on AIX
Type: Patch Version: None
Submitter: tww-china Created on: 2005-07-18 23:04:42
Subsystem: 53. Configure and Build Tools Assigned To: mdejong
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2005-07-19 06:10:55
Resolution: Fixed Closed By: hobbs
    Closed on: 2005-07-18 23:10:55
Description:
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.
User Comments: hobbs added on 2005-07-19 06:10:55:
Logged In: YES 
user_id=72656

This was fixed on 2005-07-07 (post-8.4.11).  The problem was
a bad test in configure, but the solution was to get rid of
trying to figure out the readdir_r stuff entirely.

tww-china added on 2005-07-19 06:04:43:

File Added - 142494: a

Attachments: