git: 819c2372c16d - stable/13 - Add kcmp(2) userspace bits

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Sun, 11 Feb 2024 01:52:48 UTC
The branch stable/13 has been updated by kib:

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

commit 819c2372c16db6f2ec794a3c3a179f4d37b37951
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-01-19 19:55:11 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-02-11 01:40:29 +0000

    Add kcmp(2) userspace bits
    
    (cherry picked from commit 211bdd601ee51f90da9b123807ef68ac122116b9)
---
 include/unistd.h        | 1 +
 lib/libc/sys/Symbol.map | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/include/unistd.h b/include/unistd.h
index 337f6befd717..7d3aace103d0 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -521,6 +521,7 @@ int	 iruserok(unsigned long, int, const char *, const char *);
 int	 iruserok_sa(const void *, int, int, const char *, const char *);
 int	 issetugid(void);
 void	__FreeBSD_libc_enter_restricted_mode(void);
+int	 kcmp(pid_t pid1, pid_t pid2, int type, uintptr_t idx1, uintptr_t idx2);
 long	 lpathconf(const char *, int);
 #ifndef _MKDTEMP_DECLARED
 char	*mkdtemp(char *);
diff --git a/lib/libc/sys/Symbol.map b/lib/libc/sys/Symbol.map
index f9af2922ed3c..29aa0bc6ac99 100644
--- a/lib/libc/sys/Symbol.map
+++ b/lib/libc/sys/Symbol.map
@@ -422,6 +422,10 @@ FBSD_1.7 {
 	swapoff;
 };
 
+FBSD_1.8 {
+	 kcmp;
+};
+
 FBSDprivate_1.0 {
 	___acl_aclcheck_fd;
 	__sys___acl_aclcheck_fd;