[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#561023: libc6-dev: dirent.h scandir() has wrong function prototype



Package: libc6-dev
Version: 2.7-18
Severity: minor


In /usr/include/dirent.h, the fourth and final argument of
scandir() is prototyped to be

  int (*)(const void *, const void *).

However, the manpage documents it to be

  int (*)(const struct dirent **, const struct dirent **)

Sadly, the difference appears to cause GCC 4.3.2 to emit a
warning on correct use, even without -Wall.

-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (990, 'stable'), (150, 'unstable'), (150, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libc6-dev depends on:
ii  libc6                         2.7-18     GNU C Library: Shared libraries
ii  linux-libc-dev                2.6.26-19  Linux support headers for userspac

Versions of packages libc6-dev recommends:
ii  gcc [c-compiler]             4:4.3.2-2   The GNU C compiler
ii  gcc-2.95 [c-compiler]        1:2.95.4-27 The GNU C compiler
ii  gcc-3.3 [c-compiler]         1:3.3.6-15  The GNU C compiler
ii  gcc-4.1 [c-compiler]         4.1.2-25    The GNU C compiler
ii  gcc-4.2 [c-compiler]         4.2.4-6     The GNU C compiler
ii  gcc-4.3 [c-compiler]         4.3.2-1.1   The GNU C compiler

Versions of packages libc6-dev suggests:
ii  glibc-doc                     2.7-18     GNU C Library: Documentation
ii  manpages-dev                  3.05-1     Manual pages about using GNU/Linux

-- no debconf information



Reply to: