Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Wrong # args detected for readdir_r on AIX

Closed / Fixed1240568fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 years ago
Descriptionplain2005-07-18 23:04:42
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.
tww-chinaplain2005-07-19 06:04:43
File Added - 142494: a
hobbsplain2005-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.
Log in (anonymous is fine) to add a comment.

Attachments: