From nobody Fri Sep 27 15:03:28 2024 X-Original-To: dev-commits-src-all@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 4XFYcw5k4pz5Y62d; Fri, 27 Sep 2024 15:03:28 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XFYcw35L5z58yD; Fri, 27 Sep 2024 15:03:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727449408; 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=55+ohgQj7GIRiUJfht5TVhRaEx9zcGmcm5F1xxtp0II=; b=bWF9qS0i4sCxS615uFjVdYrjm0sUEQnkCeZxIiVbEBzKVcxHaUjz9ZFp6yIwzRvLqhsstj 4EJeY+jFc71PcMV6XFkmKL8JPLHG6WnL+ifpGqOJuZUZW/QXfGmlo+4qOelm3lVcO/Occ2 nesZK3yNJgyPlHqru5osWgdXdl+7EBM+Sq/W0RLHoeK1Iavz0mPyT+74QG1PbViKGYz247 6ibAMX3uJYLkvSwcfL+5CL+CZKZm+iz9otbndITcgyzcizNQlpZo83+vHVN8xLGYPq4mjf IXJA1gTFGZjPnxLDmsJl75sXM4lFzAoGEAqc16C7l6JqHCiIEodG3t+2yy4LaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727449408; 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=55+ohgQj7GIRiUJfht5TVhRaEx9zcGmcm5F1xxtp0II=; b=ruhqZpybMrqzWhzx46oxKwzsu0T7dXOUTCI+p4Wh7tT2FL6nXlUeccblX0NegjnvHbyprx SceYvX896EeCd3kM2a2UvUvl8zDLB70Le1LSHiovxDpR01sg53sLjchZRlJdnQ5DR/9iY/ 0FN/Kc+3bf0Z+P5ion3NNCqD5bNROkDa+DAr0jWVr8/H7yB3G/ydVP9+80IF4fzGwL6RAh KwXwuN39QmY3Lz2Bp78gjDP6NS8sK87xz+0Fvw8nkgneFmemWJMVHRj32Oijqrkq2ygPIY rsh9KkUHeVVuNvAlXEmuJdX/zeENwdQz7p5HFom3SgZPFIsmB30aqXK0dAZLMQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727449408; a=rsa-sha256; cv=none; b=BLG9/wKKRFWCpmJm8+63dvR7G4gNVeXD4ofHe7FvzjaRgM+WiKW2kvurmRxzf4LqozmzKy 0KACHg2G/DioPqxxXwndAwAPuAyex3PTM+WtG+Cc2ksJlzJ92+rLqJmi9btbjqdxTDmvIg asLahVaU880dDkquJ1SRTZ8z2zD8eSma0xLa5KOEZXEsWuACFwNb/CgbbPWEfQ1ByGCdGq JlQ/A0HdaFOFql4L0gNTopR7i7ny9X6XHp19A8VmH+2hxyN5kOoK3Uxy9C5x16TFggBKk8 8Z8TN2LddqTamqkbDAuiWJVwNXBWtCguTson9YZoWMSqykx7YfqzjRhVbQrgnw== 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 4XFYcw2gBfzlrM; Fri, 27 Sep 2024 15:03:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48RF3SPe009176; Fri, 27 Sep 2024 15:03:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48RF3Svj009173; Fri, 27 Sep 2024 15:03:28 GMT (envelope-from git) Date: Fri, 27 Sep 2024 15:03:28 GMT Message-Id: <202409271503.48RF3Svj009173@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: 9b29fc89ae20 - main - Userspace enablement for getrlimitusage(2) List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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: 9b29fc89ae20a22516f54e146bfdfa0cfcd60b8b Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=9b29fc89ae20a22516f54e146bfdfa0cfcd60b8b commit 9b29fc89ae20a22516f54e146bfdfa0cfcd60b8b Author: Konstantin Belousov AuthorDate: 2024-09-20 15:22:57 +0000 Commit: Konstantin Belousov CommitDate: 2024-09-27 15:02:09 +0000 Userspace enablement for getrlimitusage(2) Reviewed by: markj, olce Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D46747 --- lib/libsys/Symbol.sys.map | 1 + sys/sys/resource.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/lib/libsys/Symbol.sys.map b/lib/libsys/Symbol.sys.map index 7f70e03a5c25..5a4e66baf3c4 100644 --- a/lib/libsys/Symbol.sys.map +++ b/lib/libsys/Symbol.sys.map @@ -379,6 +379,7 @@ FBSD_1.7 { }; FBSD_1.8 { + getrlimitusage; kcmp; }; diff --git a/sys/sys/resource.h b/sys/sys/resource.h index d2803cccf380..2725aa1ef646 100644 --- a/sys/sys/resource.h +++ b/sys/sys/resource.h @@ -190,6 +190,9 @@ int getrlimit(int, struct rlimit *); int getrusage(int, struct rusage *); int setpriority(int, int, int); int setrlimit(int, const struct rlimit *); +#if __BSD_VISIBLE +int getrlimitusage(unsigned which, int flags, rlim_t *res); +#endif __END_DECLS #endif /* _KERNEL */