tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: strnlen(3) in kernel



In article <4E5EA673.8030009%free.fr@localhost>,
Jean-Yves Migeon  <jeanyves.migeon%free.fr@localhost> wrote:
>-=-=-=-=-=-
>
>Hi list,
>
>Subject says it all. Anyone objects?
>
>Motivation behind:
>- we already have strlen(3), so having strnlen(3) in kernel is somehow
>natural.
>- avoids things like [1] (there are probably other possible consumers in
>kernel).
>
>http://nxr.netbsd.org/xref/src/sys/arch/usermode/usermode/copy.c#34
>
>Comments? If no-one objects, I'll commit this at the end of the week.
>
>-- 

Looks fine to me. Don't forget to remove the duplicate copy from
src/lib/libc/string

christos



Home | Main Index | Thread Index | Old Index