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

Sean Callanan scallanan at apple.com
Wed Feb 2 13:05:03 PST 2011


Kirk,

whoa, you're right; it looks like bzero() has been moved to the "Legacy Option" in the Single UNIX Specification as of v3 (http://publib.boulder.ibm.com/infocenter/zos/v1r10/index.jsp?topic=/com.ibm.zos.r10.bpxbd00/rbzero.htm) and might be deprecated one day.

memset() seems like a fine replacement to me.

Sean

On Feb 2, 2011, at 12:59 PM, kirk.beitz at nokia.com wrote:

> 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
> 
> 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 ++
> 
> 
> 
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

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


More information about the lldb-dev mailing list