This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/9759] New: declarations of scandir, alphasort not POSIX compliant


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]