libroot: move memmem for POSIX.1/2024

Change-Id: I1b051586c993cd0e3d43abaa22a3722699f7134e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8517
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
Jérôme Duval 2024-10-31 20:34:19 +01:00 committed by waddlesplash
parent 6beff0d163
commit 8b5cc9cf52
5 changed files with 3 additions and 32 deletions

View File

@ -1,31 +0,0 @@
/*
* Copyright 2018 Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _GNU_STRING_H_
#define _GNU_STRING_H_
#include_next <string.h>
#include <features.h>
#ifdef _DEFAULT_SOURCE
#ifdef __cplusplus
extern "C" {
#endif
extern void *memmem(const void *source, size_t sourceLength,
const void *search, size_t searchLength);
#ifdef __cplusplus
}
#endif
#endif
#endif /* _GNU_STRING_H_ */

View File

@ -22,6 +22,8 @@ extern void *memcpy(void *dest, const void *source, size_t length);
extern void *memccpy(void *dest, const void *source, int stopByte, size_t length);
extern void *memmove(void *dest, const void *source, size_t length);
extern void *memset(void *dest, int value, size_t length);
extern void *memmem(const void *source, size_t sourceLength,
const void *search, size_t searchLength);
#ifdef _DEFAULT_SOURCE
extern void *memrchr(const void *source, int value, size_t length);

View File

@ -17,7 +17,6 @@ for architectureObject in [ MultiArchSubDirSetup ] {
SharedLibrary [ MultiArchDefaultGristFiles libgnu.so ] :
crypt.cpp
memmem.c
qsort.c
sched_affinity.cpp
sched_getcpu.cpp

View File

@ -23,6 +23,7 @@ for architectureObject in [ MultiArchSubDirSetup ] {
memccpy.c
memchr.c
memcmp.c
memmem.c
memmove.c
stpcpy.c
strcasecmp.c