From nobody Wed Jan 24 05:12:17 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TKXBp3Bsfz57T0q; Wed, 24 Jan 2024 05:12:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TKXBp1Db7z4ZWx; Wed, 24 Jan 2024 05:12:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706073138; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Gs5ffH5XXs3rTs0jk1zpUXsgYCH5kYB1ieI5Xq1iMhk=; b=JmZARLO0Z2ckMtyNykA2JpVL966KrcQbMQwglrBU3KS1APl+N+o33+ZdE4g2MLZSMVJM/n W7dlv2ah44MCa0T5sD04aZxfVs5zk8Jy87mVMJOHMmtRKqBhtxc7ibBhpF5IxxeQoIz7rW +wM7gM7xdGBaD5FVQShQWbFKqDUuVnBsS42dCPLkVGy+UJI38YO3kMq3j8cVyDWvIxqhjc N13CdGZUbLN9TOe09DJGnAVAXaqYBSXh69FeB7IHg/40mbzJhaRcHq9KNmPuO7vseedaU7 c4Xm65wDji+dQNgr96VZusyw6Wq/JJgtsNtTWKw/NysJG2MQQArXxRPuo6eLqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706073138; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Gs5ffH5XXs3rTs0jk1zpUXsgYCH5kYB1ieI5Xq1iMhk=; b=jrfS0iRA+gcYGQ072YZjstQhqMp81cqJt9oqPy4egqClmRiJxAaW95gMT/XPXgHUWlzn+o QohjX9cLDIJJdZ7fm9XcKeswLePu2bYJWWxfIVSZG2re9XhkhOElyb4A9JLtYBEqNo7Fjp vOSlr4qRWyAVSzjyeJ3p5xRW6nipuBkE0BGZouWOZrh071LSKSpcqYKQVM1G3otahoqz4R CI5CD70dDQoaFW0zoVt08R7h2JADZBxAV1vz4WwHUmd2PllKJXNfKFlWi8JIhorVPkebKm BFdg5sbX3zQQdKj5WIUgUAWPulrUhdZQlM8D9IrZbtrA7D9+uo5V8G/dZFjmbQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706073138; a=rsa-sha256; cv=none; b=HVyQlVhzJkDLna9doFmcZfXX2tPldi4vgOex/0b9BuvBXMJlH3XsNj/JO4lRmEayvBMe2f aW0dXff0jrm13f8tf8w3nZbed6bCW128gQSQJBylHQRJ5R7NX1GsDZgE3MZ6oBS2R/4aQn XkKqX8aa/KqCIuDg0ynaWstWXHUHw68q4yAARx3pTEb6qlayi+3iirfPsfGZN5j2yNx+i8 rvO5WCQPi4Fd8Ib4a0FfSSvAMlIZxjpB7ChO/Pvf/7CsS44cChjYr9pf3mBQLQfjIomLtW nRCrun5XEL1/IdJga/B98H7a0IlAyP3q5oRdr1X8WUOvbmXDTt0x6rr8LHp5QQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TKXBp0Lkxz1176; Wed, 24 Jan 2024 05:12:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40O5CHQE040103; Wed, 24 Jan 2024 05:12:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40O5CHFQ040100; Wed, 24 Jan 2024 05:12:17 GMT (envelope-from git) Date: Wed, 24 Jan 2024 05:12:17 GMT Message-Id: <202401240512.40O5CHFQ040100@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 211bdd601ee5 - main - Add kcmp(2) userspace bits List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 211bdd601ee51f90da9b123807ef68ac122116b9 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=211bdd601ee51f90da9b123807ef68ac122116b9 commit 211bdd601ee51f90da9b123807ef68ac122116b9 Author: Konstantin Belousov AuthorDate: 2024-01-19 19:55:11 +0000 Commit: Konstantin Belousov CommitDate: 2024-01-24 05:11:26 +0000 Add kcmp(2) userspace bits Unlike Linux, we do provide libc wrapper. All definitions and prototypes are available from Tested by: manu Reviewed by: brooks, markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D43518 --- 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 8a01d563fe99..e4e5c62fbb67 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -519,6 +519,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 e9e3c7151c2f..a49229ace995 100644 --- a/lib/libc/sys/Symbol.map +++ b/lib/libc/sys/Symbol.map @@ -424,6 +424,10 @@ FBSD_1.7 { timerfd_settime; }; +FBSD_1.8 { + kcmp; +}; + FBSDprivate_1.0 { /* System call stubs */ ___acl_aclcheck_fd;