DragonFly BSD
DragonFly commits List (threaded) for 2010-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Sascha Wildner <swildner@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 4 Nov 2010 17:43:31 -0700 (PDT)

commit edacbda68e2b4fcf6f29f472d4c2720d202639dc
Author: Sascha Wildner <saw@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



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