Module Name: src Committed By: christos Date: Sun Jul 8 17:54:42 UTC 2018
Modified Files: src/sys/lib/libkern: Makefile.libkern libkern.h Log Message: provide memmem To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/sys/lib/libkern/Makefile.libkern cvs rdiff -u -r1.126 -r1.127 src/sys/lib/libkern/libkern.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/lib/libkern/Makefile.libkern diff -u src/sys/lib/libkern/Makefile.libkern:1.41 src/sys/lib/libkern/Makefile.libkern:1.42 --- src/sys/lib/libkern/Makefile.libkern:1.41 Fri Dec 8 16:51:07 2017 +++ src/sys/lib/libkern/Makefile.libkern Sun Jul 8 13:54:42 2018 @@ -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+= strlcpy.c strlcat.c 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.*) Index: src/sys/lib/libkern/libkern.h diff -u src/sys/lib/libkern/libkern.h:1.126 src/sys/lib/libkern/libkern.h:1.127 --- src/sys/lib/libkern/libkern.h:1.126 Fri Dec 8 19:51:52 2017 +++ src/sys/lib/libkern/libkern.h Sun Jul 8 13:54:42 2018 @@ -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 @@ struct mtprng_state { 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)