search for: memchr

Displaying 20 results from an estimated 200 matches for "memchr".

2005 Jan 06
0
[PATCH] memchr and memrchr
- memchr() needs to increment pointer or it's just a busy loop (unless c matches the first character in s) - add memrchr.c --- klibc-0.194/klibc/memchr.c.orig 2005-01-06 23:08:33.703355840 -0700 +++ klibc-0.194/klibc/memchr.c 2005-01-06 23:04:26.436946048 -0700 @@ -12,6 +12,7 @@ while ( n-- ) {...
2016 Jun 30
6
[PATCH 0/6] lib: string: add function strtolower()
This series introduces a new generic function strtolower(), which converts strings to lowercase in-place, overwriting the original string. This kind of functionality is needed in several places in the kernel. Right now, everybody seems to be implementing their own copy of this function. So, we replace several custom "strtolower" implementations with this new library function. Another
2016 Jul 01
2
[PATCH 1/6] lib: string: add function strtolower()
...t; lib/string.c | 14 ++++++++++++++ > 2 files changed, 15 insertions(+) > > diff --git a/include/linux/string.h b/include/linux/string.h > index 26b6f6a..aad605e 100644 > --- a/include/linux/string.h > +++ b/include/linux/string.h > @@ -116,6 +116,7 @@ extern void * memchr(const void *,int,__kernel_size_t); > #endif > void *memchr_inv(const void *s, int c, size_t n); > char *strreplace(char *s, char old, char new); > +char *strtolower(char *s); > > extern void kfree_const(const void *x); > > diff --git a/lib/string.c b/lib/string.c &gt...
2011 Aug 29
0
[PATCH] Add mempcpy() as wrapper around memcpy
...sr/klibc/mempcpy.c | 7 +++++++ 3 files changed, 9 insertions(+), 1 deletions(-) create mode 100644 usr/klibc/mempcpy.c diff --git a/usr/include/string.h b/usr/include/string.h index 0c8c046..270fddd 100644 --- a/usr/include/string.h +++ b/usr/include/string.h @@ -13,6 +13,7 @@ __extern void *memchr(const void *, int, size_t); __extern void *memrchr(const void *, int, size_t); __extern int memcmp(const void *, const void *, size_t); __extern void *memcpy(void *, const void *, size_t); +__extern void *mempcpy(void *, const void *, size_t); __extern void *memmove(void *, const void *, size_t...
2016 Feb 07
3
[PATCH] strlen -> strnlen optimization
...e limit the optimization to cases where the constant is (for example) < 20, a small performance hit from the counter may not matter. > Additionally, I wouldn't be surprised if many systems don't consider > strnlen to be the fast path, so it would be even worse than using e.g. > memchr for this. The strnlen implementations I've looked at don't seem much different from their strlen counterparts in the common libc's I looked at. For example, glibc has asm implementations of both for common platforms. FreeBSD only has asm implementations of strlen, but those are only fo...
2016 Sep 06
2
i32 vs i32 signext for C int parameters to library functions
I'm trying to fix a longstanding bug with library function calls on platforms where int is passed sign-extended in a register (it badly affects SystemZ, and has a chance of affecting PowerPC64, SPARC64, MIPS64 as well). The problem is that, on these platforms, C int corresponds to a "i32 signext" parameter, but all LLVM passes inserting library calls currently use just
2010 Dec 14
8
builder-ubuntu febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...close fcntl fcntl-h fcntl-safer fdopendir filevercmp float fts full-write getcwd getdtablesize getopt-gnu getopt-posix gettext-h hash hash-pjw i-ring include_next inline intprops inttypes lchown lstat malloc-posix memchr mempcpy memrchr mkdir multiarch open openat openat-die openat-safer realloc-posix rmdir safe-read safe-write same-inode save-cwd size_max ssize_t stat stdarg stdbool stddef stdint stdio stdlib strdup-pos...
2011 Jan 14
7
builder-ubuntu febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...close fcntl fcntl-h fcntl-safer fdopendir filevercmp float fts full-write getcwd getdtablesize getopt-gnu getopt-posix gettext-h hash hash-pjw i-ring include_next inline intprops inttypes lchown lstat malloc-posix memchr mempcpy memrchr mkdir multiarch open openat openat-die openat-safer realloc-posix rmdir safe-read safe-write same-inode save-cwd size_max ssize_t stat stdarg stdbool stddef stdint stdio stdlib strdup-pos...
2011 Feb 15
7
builder-ubuntu febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...close fcntl fcntl-h fcntl-safer fdopendir filevercmp float fts full-write getcwd getdtablesize getopt-gnu getopt-posix gettext-h hash hash-pjw i-ring include_next inline intprops inttypes lchown lstat malloc-posix memchr mempcpy memrchr mkdir multiarch open openat openat-die openat-safer realloc-posix rmdir safe-read safe-write same-inode save-cwd size_max ssize_t stat stdarg stdbool stddef stdint stdio stdlib strdup-pos...
2011 Jan 14
7
builder-debian febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...close fcntl fcntl-h fcntl-safer fdopendir filevercmp float fts full-write getcwd getdtablesize getopt-gnu getopt-posix gettext-h hash hash-pjw i-ring include_next inline intprops inttypes lchown lstat malloc-posix memchr mempcpy memrchr mkdir multiarch open openat openat-die openat-safer realloc-posix rmdir safe-read safe-write same-inode save-cwd size_max ssize_t stat stdarg stdbool stddef stdint stdio stdlib strdup-pos...
2011 Feb 15
7
builder-debian febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...close fcntl fcntl-h fcntl-safer fdopendir filevercmp float fts full-write getcwd getdtablesize getopt-gnu getopt-posix gettext-h hash hash-pjw i-ring include_next inline intprops inttypes lchown lstat malloc-posix memchr mempcpy memrchr mkdir multiarch open openat openat-die openat-safer realloc-posix rmdir safe-read safe-write same-inode save-cwd size_max ssize_t stat stdarg stdbool stddef stdint stdio stdlib strdup-pos...
2010 Dec 14
7
builder-debian febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...close fcntl fcntl-h fcntl-safer fdopendir filevercmp float fts full-write getcwd getdtablesize getopt-gnu getopt-posix gettext-h hash hash-pjw i-ring include_next inline intprops inttypes lchown lstat malloc-posix memchr mempcpy memrchr mkdir multiarch open openat openat-die openat-safer realloc-posix rmdir safe-read safe-write same-inode save-cwd size_max ssize_t stat stdarg stdbool stddef stdint stdio stdlib strdup-pos...
2011 May 13
3
builder-debian febootstrap success 6ab9465001dfaa52edc5992ee71f2e9aecc2085d
...close fcntl fcntl-h fcntl-safer fdopendir filevercmp float fts full-write getcwd getdtablesize getopt-gnu getopt-posix gettext-h hash hash-pjw i-ring include_next inline intprops inttypes lchown lstat malloc-posix memchr mempcpy memrchr mkdir multiarch open openat openat-die openat-safer realloc-posix rmdir safe-read safe-write same-inode save-cwd size_max ssize_t stat stdarg stdbool stddef stdint stdio stdlib strdup-pos...
2010 Dec 07
0
builder-debian febootstrap FAILED configure step af9f9305a0a48829392a57d24aee30978b449d1d
...close fcntl fcntl-h fcntl-safer fdopendir filevercmp float fts full-write getcwd getdtablesize getopt-gnu getopt-posix gettext-h hash hash-pjw i-ring include_next inline intprops inttypes lchown lstat malloc-posix memchr mempcpy memrchr mkdir multiarch open openat openat-die openat-safer realloc-posix rmdir safe-read safe-write same-inode save-cwd size_max ssize_t stat stdarg stdbool stddef stdint stdio stdlib strdup-pos...
2011 Mar 22
1
builder-debian febootstrap success 6720ad28eddbcd671032c151f7219a35ba615b1b
...close fcntl fcntl-h fcntl-safer fdopendir filevercmp float fts full-write getcwd getdtablesize getopt-gnu getopt-posix gettext-h hash hash-pjw i-ring include_next inline intprops inttypes lchown lstat malloc-posix memchr mempcpy memrchr mkdir multiarch open openat openat-die openat-safer realloc-posix rmdir safe-read safe-write same-inode save-cwd size_max ssize_t stat stdarg stdbool stddef stdint stdio stdlib strdup-pos...
2010 Dec 07
0
builder-ubuntu febootstrap success 2dfc659c33c5ceb298e8027e219547416b286661
...close fcntl fcntl-h fcntl-safer fdopendir filevercmp float fts full-write getcwd getdtablesize getopt-gnu getopt-posix gettext-h hash hash-pjw i-ring include_next inline intprops inttypes lchown lstat malloc-posix memchr mempcpy memrchr mkdir multiarch open openat openat-die openat-safer realloc-posix rmdir safe-read safe-write same-inode save-cwd size_max ssize_t stat stdarg stdbool stddef stdint stdio stdlib strdup-pos...
2010 Dec 10
0
builder-ubuntu febootstrap success 27a911ca193ad5a56a7afac4f6100b3a3f732680
...close fcntl fcntl-h fcntl-safer fdopendir filevercmp float fts full-write getcwd getdtablesize getopt-gnu getopt-posix gettext-h hash hash-pjw i-ring include_next inline intprops inttypes lchown lstat malloc-posix memchr mempcpy memrchr mkdir multiarch open openat openat-die openat-safer realloc-posix rmdir safe-read safe-write same-inode save-cwd size_max ssize_t stat stdarg stdbool stddef stdint stdio stdlib strdup-pos...
2010 Dec 07
0
builder-debian febootstrap success af9f9305a0a48829392a57d24aee30978b449d1d
...close fcntl fcntl-h fcntl-safer fdopendir filevercmp float fts full-write getcwd getdtablesize getopt-gnu getopt-posix gettext-h hash hash-pjw i-ring include_next inline intprops inttypes lchown lstat malloc-posix memchr mempcpy memrchr mkdir multiarch open openat openat-die openat-safer realloc-posix rmdir safe-read safe-write same-inode save-cwd size_max ssize_t stat stdarg stdbool stddef stdint stdio stdlib strdup-pos...
2010 Dec 10
0
builder-debian febootstrap success 27a911ca193ad5a56a7afac4f6100b3a3f732680
...close fcntl fcntl-h fcntl-safer fdopendir filevercmp float fts full-write getcwd getdtablesize getopt-gnu getopt-posix gettext-h hash hash-pjw i-ring include_next inline intprops inttypes lchown lstat malloc-posix memchr mempcpy memrchr mkdir multiarch open openat openat-die openat-safer realloc-posix rmdir safe-read safe-write same-inode save-cwd size_max ssize_t stat stdarg stdbool stddef stdint stdio stdlib strdup-pos...
2011 Mar 15
0
builder-ubuntu febootstrap success 91819fa0e61ee0b41f2342fd5149b385146bb954
...close fcntl fcntl-h fcntl-safer fdopendir filevercmp float fts full-write getcwd getdtablesize getopt-gnu getopt-posix gettext-h hash hash-pjw i-ring include_next inline intprops inttypes lchown lstat malloc-posix memchr mempcpy memrchr mkdir multiarch open openat openat-die openat-safer realloc-posix rmdir safe-read safe-write same-inode save-cwd size_max ssize_t stat stdarg stdbool stddef stdint stdio stdlib strdup-pos...