git: 92cf602e3809 - main - Copy strcasestr.c from libc to libkern.

Vladimir Kondratyev vladimir at kondratyev.su
Thu Jan 7 23:33:41 UTC 2021


On 08.01.2021 02:27, Jessica Clarke wrote:
> On 7 Jan 2021, at 23:20, Vladimir Kondratyev <wulf at FreeBSD.org> wrote:
>> +#include <ctype.h>
>> +#include <string.h>
>> +#include "xlocale_private.h"
>> +
>> +/*
>> + * Find the first occurrence of find in s, ignore case.
>> + */
>> +char *
>> +strcasestr_l(const char *s, const char *find, locale_t locale)
> 
> Locales in the kernel? This feels wrong.
> 
> Jess
> 

strcasestr.c was copied from userland unmodified just to allow
"git log --follow" to work. Next commit removed locale support from this
file and connected it to build.


More information about the dev-commits-src-all mailing list