Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jul 2021 01:09:19 GMT
From:      Neel Chauhan <nc@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 7accb4a33579 - stable/13 - libkern: import strnstr from libc
Message-ID:  <202107180109.16I19J6R091004@gitrepo.freebsd.org>

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

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

commit 7accb4a33579ad18e83e1b93b89248370346649d
Author:     Greg V <greg@unrelenting.technology>
AuthorDate: 2021-07-15 00:52:32 +0000
Commit:     Neel Chauhan <nc@FreeBSD.org>
CommitDate: 2021-07-18 01:08:24 +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
    
    (cherry picked from commit f39d9c91318569a1ab7507d46e15147f5fef659e)
---
 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 161b70880309..0f5944c93c9c 100644
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -4090,6 +4090,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 3f8827de06c5..0c3489d4c206 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?202107180109.16I19J6R091004>