Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jul 2021 00:55:21 GMT
From:      Neel Chauhan <nc@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: f39d9c913185 - main - libkern: import strnstr from libc
Message-ID:  <202107150055.16F0tLud005769@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by nc (ports committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=f39d9c91318569a1ab7507d46e15147f5fef659e

commit f39d9c91318569a1ab7507d46e15147f5fef659e
Author:     Greg V <greg@unrelenting.technology>
AuthorDate: 2021-07-15 00:52:32 +0000
Commit:     Neel Chauhan <nc@FreeBSD.org>
CommitDate: 2021-07-15 00:55:08 +0000

    libkern: import strnstr from libc
    
    Required for drm-kmod 5.6 (amdgpu).
    
    Reviewed by:            bz, hselasky, nc
    Differential Revision:  https://reviews.freebsd.org/D31131
---
 sys/conf/files    | 1 +
 sys/sys/libkern.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/sys/conf/files b/sys/conf/files
index 245bbcb01374..ee1e356d9f61 100644
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -4099,6 +4099,7 @@ libkern/strncat.c		standard
 libkern/strncmp.c		standard
 libkern/strncpy.c		standard
 libkern/strnlen.c		standard
+libkern/strnstr.c		standard
 libkern/strrchr.c		standard
 libkern/strsep.c		standard
 libkern/strspn.c		standard
diff --git a/sys/sys/libkern.h b/sys/sys/libkern.h
index 37838c99ba0c..d8d3dce1b705 100644
--- a/sys/sys/libkern.h
+++ b/sys/sys/libkern.h
@@ -186,6 +186,7 @@ int	 strncasecmp(const char *, const char *, size_t);
 int	 strncmp(const char *, const char *, size_t);
 char	*strncpy(char * __restrict, const char * __restrict, size_t);
 size_t	 strnlen(const char *, size_t);
+char	*strnstr(const char *, const char *, size_t);
 char	*strrchr(const char *, int);
 char	*strsep(char **, const char *delim);
 size_t	 strspn(const char *, const char *);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107150055.16F0tLud005769>