git: Fix visibility of various functions in a number of headers.

Sascha Wildner swildner at crater.dragonflybsd.org
Wed Oct 21 09:42:35 PDT 2015


commit 8eb95a5667325ea7aa480f94b481cef09ab26d11
Author: Sascha Wildner <saw at online.de>
Date:   Wed Oct 21 18:41:01 2015 +0200

    Fix visibility of various functions in a number of headers.
    
    The following functions were moved from XSI into the base with
    POSIX 200809:
    
    catclose(), catgets(), catopen(), dlclose(), dlerror(), dlopen(),
    dlsym(), fchdir(), getpgid(), getsid(), getsubopt(), iconv(),
    iconv_close(), iconv_open(), lchown(), mkstemp(), nl_langinfo(),
    poll(), pread(), pwrite(), strdup(), strfmon(), tcgetsid(),
    truncate(), and waitid().
    
    This commit adjusts our headers to reflect that, i.e. specifying
    _POSIX_C_SOURCE=200809 is now enough to expose their prototypes.
    
    The checking of __XSI_VISIBLE's value (ranges) for XSI functions
    could certainly be better (generally in our headers).
    
    Also, we don't yet have waitid().
    
    This change was build tested with around 8000 ports (until the
    bulk build choked on a jdk7 memory leak (I suppose) while building
    textproc/fop). The glibc conformance test suite thinks this
    commit is correct, too.

Summary of changes:
 include/dlfcn.h    |  3 ++-
 include/iconv.h    |  2 ++
 include/langinfo.h |  2 ++
 include/monetary.h |  2 ++
 include/nl_types.h |  2 ++
 include/stdlib.h   |  6 ++++--
 include/string.h   |  2 +-
 include/unistd.h   | 16 ++++++++--------
 sys/sys/poll.h     |  3 ++-
 sys/sys/termios.h  |  5 ++---
 10 files changed, 27 insertions(+), 16 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8eb95a5667325ea7aa480f94b481cef09ab26d11


-- 
DragonFly BSD source repository



More information about the Commits mailing list