bug-gnulib
[Top][All Lists]
Advanced

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

Re: [Bug-gnulib] lib/setenv.c


From: Bruno Haible
Subject: Re: [Bug-gnulib] lib/setenv.c
Date: Thu, 28 Nov 2002 15:39:40 +0100 (CET)

Thanks for reporting this. But we are not done by taking setenv.c from
glibc: it does not work on AIX 4.3.3 because this platform has
setenv() but no unsetenv().

For gettext, I've taken glibc's setenv.c and made a few portability
fixes. What do you think, can I put this into gnulib? The files are
attached below.

    Bruno



2002-11-13  Bruno Haible  <address@hidden>

        * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
        function declarations.
        * unsetenv.c (unsetenv): Likewise.

2002-03-04  Bruno Haible  <address@hidden>

        Portability to AIX 4.3.3.
        * unsetenv.c: New file, extracted from setenv.c.
        * setenv.c: Move the unsetenv() function to unsetenv.c.
        * setenv.h: Cope with systems that have setenv() but not unsetenv().

2001-12-20  Bruno Haible  <address@hidden>

        * setenv.c (__add_to_environ): Don't call realloc(NULL,...), use
        malloc instead. For SunOS4.

2001-12-11  Bruno Haible  <address@hidden>

        * setenv.c: Declare alloca.
        (compar_fn_t): New typedef.
        (KNOWN_VALUE, STORE_VALUE): Use it.

2001-09-06  Bruno Haible  <address@hidden>

        * setenv.h: New file.
        * setenv.c: New file, from glibc-2.2.4.

Attachment: setenv.h
Description: setenv.h

Attachment: setenv.c
Description: setenv.c

Attachment: unsetenv.c
Description: unsetenv.c

Attachment: setenv.m4
Description: setenv.m4


reply via email to

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