bug-gnulib
[Top][All Lists]
Advanced

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

explicit_bzero, memcmp, raise, strcspn, strpbrk: Make it possible to nam


From: Bruno Haible
Subject: explicit_bzero, memcmp, raise, strcspn, strpbrk: Make it possible to namespace the defined symbol
Date: Fri, 05 Oct 2018 22:10:50 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-137-generic; KDE/5.18.0; x86_64; ; )

> When compiling parts of gnulib into a shared library, it is useful
> to add a namespace-like prefix to the symbols that come from gnulib,
> in order to avoid conflicts with other shared libraries.
> 
> Gettext's libgettextpo does so, through macro definitions in config.h,
> such as
>   #define fcntl libgettextpo_fcntl
>   #define rpl_open libgettextpo_rpl_open
> etc.
> 
> This works fine with most gnulib modules.

But a couple of modules fail to support this so far. The attached patches
fixes this.


2018-10-05  Bruno Haible  <address@hidden>

        strpbrk: Make it possible to namespace the defined symbol.
        * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.

2018-10-05  Bruno Haible  <address@hidden>

        strcspn: Make it possible to namespace the defined symbol.
        * lib/strcspn.c (strcspn): Don't undefine outside of glibc.

2018-10-05  Bruno Haible  <address@hidden>

        raise: Make it possible to namespace the defined symbol.
        * lib/raise.c (raise): Undefine only after the replacement function has
        been defined.
        (raise): Renamed from rpl_raise.
        (raise_nothrow): Move to the end of the compilation unit.

2018-10-05  Bruno Haible  <address@hidden>

        memcmp: Make it possible to namespace the defined symbol.
        * lib/memcmp.c (memcmp): Don't undefine outside of glibc.

2018-10-05  Bruno Haible  <address@hidden>

        explicit_bzero: Make it possible to namespace the defined symbol.
        * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
        glibc.

Attachment: 0001-explicit_bzero-Make-it-possible-to-namespace-the-def.patch
Description: Text Data

Attachment: 0002-memcmp-Make-it-possible-to-namespace-the-defined-sym.patch
Description: Text Data

Attachment: 0003-raise-Make-it-possible-to-namespace-the-defined-symb.patch
Description: Text Data

Attachment: 0004-strcspn-Make-it-possible-to-namespace-the-defined-sy.patch
Description: Text Data

Attachment: 0005-strpbrk-Make-it-possible-to-namespace-the-defined-sy.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]