mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
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:
parent
6beff0d163
commit
8b5cc9cf52
@ -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_ */
|
|
@ -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 *memccpy(void *dest, const void *source, int stopByte, size_t length);
|
||||||
extern void *memmove(void *dest, const void *source, 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 *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
|
#ifdef _DEFAULT_SOURCE
|
||||||
extern void *memrchr(const void *source, int value, size_t length);
|
extern void *memrchr(const void *source, int value, size_t length);
|
||||||
|
@ -17,7 +17,6 @@ for architectureObject in [ MultiArchSubDirSetup ] {
|
|||||||
|
|
||||||
SharedLibrary [ MultiArchDefaultGristFiles libgnu.so ] :
|
SharedLibrary [ MultiArchDefaultGristFiles libgnu.so ] :
|
||||||
crypt.cpp
|
crypt.cpp
|
||||||
memmem.c
|
|
||||||
qsort.c
|
qsort.c
|
||||||
sched_affinity.cpp
|
sched_affinity.cpp
|
||||||
sched_getcpu.cpp
|
sched_getcpu.cpp
|
||||||
|
@ -23,6 +23,7 @@ for architectureObject in [ MultiArchSubDirSetup ] {
|
|||||||
memccpy.c
|
memccpy.c
|
||||||
memchr.c
|
memchr.c
|
||||||
memcmp.c
|
memcmp.c
|
||||||
|
memmem.c
|
||||||
memmove.c
|
memmove.c
|
||||||
stpcpy.c
|
stpcpy.c
|
||||||
strcasecmp.c
|
strcasecmp.c
|
||||||
|
Loading…
Reference in New Issue
Block a user