Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libkern provide memmem
details: https://anonhg.NetBSD.org/src/rev/2de3c599ec48
branches: trunk
changeset: 320449:2de3c599ec48
user: christos <christos%NetBSD.org@localhost>
date: Sun Jul 08 17:54:42 2018 +0000
description:
provide memmem
diffstat:
sys/lib/libkern/Makefile.libkern | 4 ++--
sys/lib/libkern/libkern.h | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r 726ecbfb3a0e -r 2de3c599ec48 sys/lib/libkern/Makefile.libkern
--- a/sys/lib/libkern/Makefile.libkern Sun Jul 08 17:53:42 2018 +0000
+++ b/sys/lib/libkern/Makefile.libkern Sun Jul 08 17:54:42 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.libkern,v 1.41 2017/12/08 21:51:07 christos Exp $
+# $NetBSD: Makefile.libkern,v 1.42 2018/07/08 17:54:42 christos Exp $
#
# Variable definitions for libkern.
@@ -64,7 +64,7 @@
SRCS+= imax.c imin.c lmax.c lmin.c max.c min.c ulmax.c ulmin.c
SRCS+= memmove.c
SRCS+= strchr.c strrchr.c
-SRCS+= memcmp.c
+SRCS+= memcmp.c memmem.c
SRCS+= memcpy.c
.if empty(SRCS:Mmemset2.*)
diff -r 726ecbfb3a0e -r 2de3c599ec48 sys/lib/libkern/libkern.h
--- a/sys/lib/libkern/libkern.h Sun Jul 08 17:53:42 2018 +0000
+++ b/sys/lib/libkern/libkern.h Sun Jul 08 17:54:42 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: libkern.h,v 1.126 2017/12/09 00:51:52 christos Exp $ */
+/* $NetBSD: libkern.h,v 1.127 2018/07/08 17:54:42 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -366,6 +366,7 @@
void *memcpy(void *, const void *, size_t);
int memcmp(const void *, const void *, size_t);
void *memset(void *, int, size_t);
+void *memmem(const void *, size_t, const void *, size_t);
#if __GNUC_PREREQ__(2, 95) && !defined(_STANDALONE)
#define memcpy(d, s, l) __builtin_memcpy(d, s, l)
#define memcmp(a, b, l) __builtin_memcmp(a, b, l)
Home |
Main Index |
Thread Index |
Old Index