git: alphasort(3)/scandir(3): Sync prototypes with POSIX.1-2008.

Sascha Wildner swildner at crater.dragonflybsd.org
Thu Nov 4 17:44:12 PDT 2010


commit edacbda68e2b4fcf6f29f472d4c2720d202639dc
Author: Sascha Wildner <saw at online.de>
Date:   Fri Nov 5 01:28:22 2010 +0100

    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

Summary of changes:
 include/dirent.h                   |    9 +++++----
 lib/libc/gen/scandir.3             |    7 +++----
 lib/libc/gen/scandir.c             |   12 ++++++------
 usr.bin/catman/catman.c            |   11 ++++++++---
 usr.sbin/lpr/common_source/lp.h    |    3 +--
 usr.sbin/lpr/common_source/rmjob.c |    3 +--
 usr.sbin/lpr/lpc/cmds.c            |   13 ++++++-------
 usr.sbin/makewhatis/makewhatis.c   |    5 ++---
 8 files changed, 32 insertions(+), 31 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/edacbda68e2b4fcf6f29f472d4c2720d202639dc


-- 
DragonFly BSD source repository





More information about the Commits mailing list