Fwd: Re: patch for kurlcompletion.cpp

Stefan Teleman steleman at nyc.rr.com
Sun Oct 24 14:22:15 BST 2004


Dudes :-)

the b* functions are defined in SVID, as per Unix System V Release 4 
Programmer's Reference Manual, UNIX System Laboratories, Prentice 
Hall, ISBN 0-13-951-294-2, of which i own a copy. They are officially 
part of SVR4. There is a reason why FD_ZERO is implemented with 
bzero: bzero is not deprecated. :-)

And the reason i personally (emphasis on personally) use the b* 
instead of the mem* ones is: vendors usually implement the b* 
functions in hardware (this is the case for SPARC, HPPA/RISC or 
PowerPC). And then, unbeknownst to everyone, the mem* functions are 
usually implemented in terms of the b* functions, because noone wants 
to copy memory byte by byte.

So, it's most likely that you're using bzero and bcopy anyway, nicely 
wrapped in memcpy and memset. :-P

But i have no problem using the mem* ones if this is what you prefer.

--Stefan

-----

On Sunday 24 October 2004 09:10, Stephan Kulow wrote:
> Google is your friend, top hit for "gg:bzero portable"
> http://lists.samba.org/archive/samba-technical/2003-June/030015.htm
>
>
> Greetings, Stephan

-- 
Stefan Teleman          'Nobody Expects the Spanish Inquisition'
steleman at nyc.rr.com                          -Monty Python





More information about the kde-core-devel mailing list