git: libc/locale: Limit visibility in private headers for tools.

Rimvydas Jasinskas zrj at
Wed Sep 11 10:29:38 PDT 2019

commit e3c51d6d209863c924c281569de45310c117cbdc
Author: zrj <rimvydas.jasinskas at>
Date:   Wed Sep 11 14:34:36 2019 +0300

    libc/locale: Limit visibility in private headers for tools.
     The localedef(1) requires just a few struct lc_*_t layouts from private
     lib/libc/locale/ headers in order to convert source definitions.
     It is desired that it uses as minimal as possible amount of internal
     header information, since localedef(1) is also in BTOOLS group.
     Same could be done to zic(8) and pwd_mkdb(8).
     * Use __LIBC guard to limit visibility in libc internal headers.
     * Poison xlocale_private.h to warn early that internals were used.
     Another issue is that localedef(1) and zic(8) are not recompiled on
     libc changes and require full BTOOLS recompile.  Converting both of
     them to hostprog would solve this, however there are invoke issues.
     No function change.

Summary of changes:
 lib/libc/locale/collate.h         | 4 ++++
 lib/libc/locale/lmessages.h       | 4 ++++
 lib/libc/locale/lmonetary.h       | 6 ++++++
 lib/libc/locale/lnumeric.h        | 6 ++++++
 lib/libc/locale/xlocale_private.h | 8 ++++++--
 lib/libc/stdtime/timelocal.h      | 5 +++++
 6 files changed, 31 insertions(+), 2 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list