bug-gnulib
[Top][All Lists]
Advanced

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

Re: use of __gen_tempname


From: Eric Blake
Subject: Re: use of __gen_tempname
Date: Tue, 07 Nov 2006 07:05:39 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Bruno Haible on 11/7/2006 6:40 AM:
> Hi Eric,
> 
> Sorry for the late remark. (I haven't been able to follow the tempname
> thread.)
> 
> In lib/tempname.c you added code that uses the function __gen_tempname from
> libc if it is present. I assume this is for glibc? This __gen_tempname
> function is not part of the public ABI of glibc: it is not listed in any
> of the 'Versions' files in glibc-2.3.6 nor glibc-2.5. In fact, on a
> glibc-2.3.6 system where glibc was built with sufficiently recent gcc
> and binutils, the symbol is not exported:

Thanks for the information.  I knew glibc provided source for
__gen_tempname, but was unsure why even on Linux my configure snippet
wasn't detecting it.

> I think it is preferable to build a binary that is 1 KB bigger but
> continues working after an OS upgrade. Hence this proposed patch.
> 
> 2006-11-06  Bruno Haible  <address@hidden>
> 
>       * lib/tempname.c (gen_tempname): Remove variant that invokes
>       __gen_tempname.
>       * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for __gen_tempname.

Please apply.

- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFUJKz84KuGfSFAYARAuN9AKDF9mXxyKjzal25SltKAfR+G7IeiACgkCxs
D7RXzVWQ02Ru15rYVpBHx20=
=uhuR
-----END PGP SIGNATURE-----




reply via email to

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