This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/14327] pthread uses mktemp(), causing link-time warning
- From: "nyh at math dot technion.ac.il" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Tue, 03 Jul 2012 14:16:23 +0000
- Subject: [Bug libc/14327] pthread uses mktemp(), causing link-time warning
- Auto-submitted: auto-generated
- References: <bug-14327-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14327
--- Comment #3 from Nadav Har'El <nyh at math dot technion.ac.il> 2012-07-03 14:16:23 UTC ---
I have another possible (even is twisted) workaround.
In glibc, rename the current function mktemp() to _mktemp(), and have mktemp()
call _mktemp(). Users that use mktemp() will be warned, as usual. But the
libpthread code, aware of _mktemp(), will "extern" it (it won't be in any
header file) and use it.
Another, cleaner, option is to invent a new function, say mkomstemp(), which is
like mkostemp() but adds a mode parameter, and then (?) libpthread could use
that (though I'm not sure - I don't know what is __libc_open).
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.