<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Kirk,<div><br></div><div>whoa, you're right; it looks like bzero() has been moved to the "Legacy Option" in the Single UNIX Specification as of v3 (<a href="http://publib.boulder.ibm.com/infocenter/zos/v1r10/index.jsp?topic=/com.ibm.zos.r10.bpxbd00/rbzero.htm">http://publib.boulder.ibm.com/infocenter/zos/v1r10/index.jsp?topic=/com.ibm.zos.r10.bpxbd00/rbzero.htm</a>) and might be deprecated one day.</div><div><br></div><div>memset() seems like a fine replacement to me.</div><div><br></div><div>Sean</div><div><br><div><div>On Feb 2, 2011, at 12:59 PM, <a href="mailto:kirk.beitz@nokia.com">kirk.beitz@nokia.com</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">in trying to port lldb to mingw as host, there is complaint about use of bzero.<div><br></div><div>i found this net reference to its obsolescence from 2004</div><div><a href="http://pubs.opengroup.org/onlinepubs/009695399/functions/bzero.html">http://pubs.opengroup.org/onlinepubs/009695399/functions/bzero.html</a></div><div><br></div><div><a href="http://pubs.opengroup.org/onlinepubs/009695399/functions/bzero.html"></a>i had been thinking of creating just such a #define and special-casing it to windows.</div><div><br></div><div>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.</div><div><br></div><div>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.<br><div>
<div style="font-size: 11px; font-family: Helvetica; "><font class="Apple-style-span" face="Monaco"><span class="Apple-style-span" style="font-family: Helvetica; "><font class="Apple-style-span" face="Monaco"><br class="Apple-interchange-newline">++ kirk beitz : nokia : austin + san diego </font><span class="Apple-style-span" style="font-family: Monaco; ">: <a href="mailto:kirk.beitz@nokia.com">kirk.beitz@nokia.com</a> ++</span></span></font></div><div style="font-family: Helvetica; "><br></div><br class="Apple-interchange-newline">
</div>
<br></div></div>_______________________________________________<br>lldb-dev mailing list<br><a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev<br></blockquote></div><br></div></body></html>