Fix visibility of various functions in a number of headers.
authorSascha Wildner <saw@online.de>
Wed, 21 Oct 2015 16:41:01 +0000 (18:41 +0200)
committerSascha Wildner <saw@online.de>
Wed, 21 Oct 2015 16:41:13 +0000 (18:41 +0200)
commit8eb95a5667325ea7aa480f94b481cef09ab26d11
treeacb11522393025e245a21ccb78c217f480834e25
parent1524ffda9dcdd53ddb41a540e3171a5063b736a4
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.
include/dlfcn.h
include/iconv.h
include/langinfo.h
include/monetary.h
include/nl_types.h
include/stdlib.h
include/string.h
include/unistd.h
sys/sys/poll.h
sys/sys/termios.h