[EMAIL PROTECTED] wrote:

>       - you cannot mix 64 bit & 32 bit
>       - you cannot use code from libc in the kernel because there's
>         no guarantee that that code will work in kernel context(!)
>
>
> The kernel has a strstr() of its own, so you'll need to just call
> that.

Many of the libc functions have to repect the same rules as the kernel
and the kernel implementations may also fail, see bug 6489267 where
strncat() from the kernel caused a panic because of accessing a byte
bejond the permitted range. 

The difference is that we _exspect_ that the kernel implementation have been
coded carefully enough to avoid a e.g. kernel panic but the same bug in libc
would cause a core dump under similar conditions.

Of course all functions from libc that use malloc() or for other reasons
may need a lot of memory are in a different game.

Jörg

-- 
 EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
       [EMAIL PROTECTED]                (uni)  
       [EMAIL PROTECTED]     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to