This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/14327] pthread uses mktemp(), causing link-time warning


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]