alphasort(3)/scandir(3): Sync prototypes with POSIX.1-2008.
authorSascha Wildner <saw@online.de>
Fri, 5 Nov 2010 00:28:22 +0000 (01:28 +0100)
committerSascha Wildner <saw@online.de>
Fri, 5 Nov 2010 00:28:22 +0000 (01:28 +0100)
commitedacbda68e2b4fcf6f29f472d4c2720d202639dc
tree7a9ac5782befc45a945123622d118bc553d67bf4
parente61a88b4da1c70594dd1dfc101d517b13e572665
alphasort(3)/scandir(3): Sync prototypes with POSIX.1-2008.

These functions have been added to the latest issue (7) of the
OpenGroup specifications. Since our default still is POSIX.1-2001,
make them visible if either _POSIX_C_SOURCE >= 200809 is defined
or if _POSIX_SOURCE is not defined (which was what we had
previously). The latter condition is left in for backwards
compatibility and can be removed once we switch to 200809.
Also fix some consumers of scandir(3) which we have in base.

This fixes the build of devel/libcompizconfig.

I've checked this change with 22 out of 114 packages that use
scandir(), and aside from some warnings, there were no issues.

Reported-by: alexh
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1896>
Based-on:      FreeBSD
include/dirent.h
lib/libc/gen/scandir.3
lib/libc/gen/scandir.c
usr.bin/catman/catman.c
usr.sbin/lpr/common_source/lp.h
usr.sbin/lpr/common_source/rmjob.c
usr.sbin/lpr/lpc/cmds.c
usr.sbin/makewhatis/makewhatis.c