[Xapian-tickets] [Xapian] #665: Avoid C library functions not guaranteed to be thread-safe
Xapian
nobody at xapian.org
Fri Dec 19 06:00:25 GMT 2014
#665: Avoid C library functions not guaranteed to be thread-safe
-------------------------+--------------------------
Reporter: olly | Owner: olly
Type: defect | Status: new
Priority: normal | Milestone: 1.3.x
Component: Library API | Version: 1.3.2
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: | Operating System: All
-------------------------+--------------------------
Comment (by olly):
GCC supports "poisoning" identifiers, e.g. {{{#pragma GCC poison
inet_ntoa}}}:
https://gcc.gnu.org/onlinedocs/gcc-4.9.0/cpp/Pragmas.html
Less portable, but perhaps less likely to cause issues - if a bad function
is used as a method name or a variable, the pragma will at worst prevent
compilation, whereas the #define approach could, for example, break the
ABI of the built library.
--
Ticket URL: <http://trac.xapian.org/ticket/665#comment:2>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list