This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/9759] New: declarations of scandir, alphasort not POSIX compliant
- From: "bruno at clisp dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 18 Jan 2009 03:19:04 -0000
- Subject: [Bug libc/9759] New: declarations of scandir, alphasort not POSIX compliant
- Reply-to: sourceware-bugzilla at sourceware dot org
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.