[lldb-dev] ::bzero "obsolete", recommended to be replaced

kirk.beitz at nokia.com kirk.beitz at nokia.com
Wed Feb 2 12:59:32 PST 2011


in trying to port lldb to mingw as host, there is complaint about use of bzero.

i found this net reference to its obsolescence from 2004
http://pubs.opengroup.org/onlinepubs/009695399/functions/bzero.html

<http://pubs.opengroup.org/onlinepubs/009695399/functions/bzero.html>i had been thinking of creating just such a #define and special-casing it to windows.

but if there are no objections, it would seem cleaner to just replace all calls to bzero(...,...) with calls to memset(...,0,...) as suggested with their macro.

i will be working on a patch for this, and will submit it in the next couple of days to give a chance for objections to be heard.

++ kirk beitz : nokia : austin + san diego : kirk.beitz at nokia.com<mailto:kirk.beitz at nokia.com> ++



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20110202/34883692/attachment.html>


More information about the lldb-dev mailing list