Subject: Re: where is bzero?

From: [email-masked] (Gil Hauer - OpCom Consultant)
Date: Wed, 1 Sep 1993 14:01:12 GMT

In article <[email-masked]> [email-masked] (Richard Croucher) writes:

>   Has anybody found a easy way around the strings.h -> string.h migration?

>   Does anybody know what library bzero, bcmp etc are in?  

Their functionality has been replaced by the mem* routines. The man
page is memory(3c). For example you can use memset for bzero, memmove
for bcopy etc. Migration to these routines is pretty easy.

>   I have Solaris 2.2 with the SunPro C compiler and ld is not picking up bzero from
>   anywhere.  I know that its used within the kernel so it must be around somewhere.

The fact that a function is part of the kernel is irrelevant in
application-land. Applications link with libraries in order to resolve
symbol names. When a kernel function needs to be called a system call
is issued.

>   Thanks for you help.

	You're welcome.

	Gil

--
Gil Hauer                                      ,__@  
OPCOM: Solaris 2.x Migration Support         _-\_<,  
[email-masked]                    (*)/'(*) 
                                         =-=-=-=-=-=-=