[Bug libc/9759] New: declarations of scandir, alphasort not POSIX compliant
bruno at clisp dot org
sourceware-bugzilla@sourceware.org
Sun Jan 18 03:19:00 GMT 2009
The function prototypes of scandir(), alphasort() are specified by
POSIX:2008 here:
http://www.opengroup.org/onlinepubs/9699919799/functions/scandir.html
The function prototypes in glibc's <dirent.h> don't agree with this:
- The arguments of alphasort should be of type 'const struct dirent **',
not 'const void *'.
- The last argument of scandir should be of type
'int (*)(const struct dirent **, const struct dirent **)',
not 'int (*)(const void *, const void *)'.
--
Summary: declarations of scandir, alphasort not POSIX compliant
Product: glibc
Version: 2.8
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: bruno at clisp dot org
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: x86_64-suse-linux
GCC host triplet: x86_64-suse-linux
GCC target triplet: x86_64-suse-linux
http://sourceware.org/bugzilla/show_bug.cgi?id=9759
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Glibc-bugs
mailing list