From nobody Fri Nov 13 18:41:18 2026 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 4jR5gg0mq3z714Jr for ; Fri, 13 Nov 2026 18:41:19 +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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jR5gf4nXTz4PC4 for ; Fri, 13 Nov 2026 18:41:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794595278; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=G6rQ0YgEyetG+BE6d7x4Bcikr4g5mBffZmKOT31/zwc=; b=XoqpKTLcMYZb9REb1uTzeygxp47JOIExGwRy45SVlbVRRZmMtk0jiZpfIqvPx5vJiIbQsV MGCMJ9GO3jwWjzvNadiatK3qQTitHGFEm0rLgmxKTIAaA4/UZ9qdSqMA44ATBe7BItMbzC qUukB3ROS2B7xaBuuHz/ZwInoHGG785rHBK2Oy03D6Y20w4WluotLQACAmxHQzpsOM36UX 7CtAynS2y0i0WIMOLbPPK7QRSNHF414lEIMZk/ijQMGQqw8bS5uTHf97YvJu7JB612u/H3 OzArrDaQbrqa7KvK4ixgtjB+oQVu6ccmQijggDHEArzbCjDHzl54KscRh7obIg== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1794595278; b=sH5SWgaN7UGvO7UlrMrn0pC5psa4WLTVG9exfxOmThR5Bu2yX4qDtQ6laekyaX1ea+H1Hz f9yyPxsRfkYjObAhmWUlHLXuPSB4APRiZa94pvxXop/gVaX2zxeUkflJ2O7cN2Rhe+kr6T 8G2UYdEo5AJq0oLFUKVZzwLlGbyukiczQjAfFSN+x5DcJTZk554SkXgf2Mh/mHj+6TBEyf hDLb6F+jWjWNKeOTVHzQsaar553aXex6+1mE5pjqol3b2rSMx+RXzPwMnR9i9jmwYreRPK OqBFIm+XWpta6qFOR8mHck4HqRQ2vpqKNBQZejiFwdXwv55dB1ofzybTFZyANA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794595278; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=G6rQ0YgEyetG+BE6d7x4Bcikr4g5mBffZmKOT31/zwc=; b=OlMfiXdCI/y27wueC4Inx1xJPWWpNPx9iUmYhIsOwUjr2+qWhnz30y42iwF95tKBV7a8q1 HQ7jKQOBlCC97yK0T0b2BiZNJYzw2kIXDD7bXkLjCL3OJeMszenl2dywbQWNP3G78MIxqf VCQ9tls6227jMBrEfRq6LyVBV82GwAMjysrRXHIIiokaHcMSSqntQRd9yb1ZvIa/0JZE60 0ejXHIyTU6e72QP22FkoOjfbzj9fjtpYB4CgwGOkf9zD9L/XwCZ2Hei5NfJO3IwEK8Otra HSmdALOedb98IKY+XyD/QHya8RbnvNffn9TS2j/lyLNF5RN3X3PvXOp9qIZF8Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jR5gf437ZznHC for ; Fri, 13 Nov 2026 18:41:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1f2ea by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 13 Nov 2026 18:41:18 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Kit Dallege From: Mitchell Horne Subject: git: c9e6bc37a9ca - stable/14 - mq_open(2): document sysctl limit EINVAL and ENFILE conditions List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org List-Id: Commit messages for all branches of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: c9e6bc37a9cae3f1e37f20ce023bc79d27a00527 Auto-Submitted: auto-generated Date: Fri, 13 Nov 2026 18:41:18 +0000 Message-Id: <6af759ce.1f2ea.362620d3@gitrepo.freebsd.org> The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=c9e6bc37a9cae3f1e37f20ce023bc79d27a00527 commit c9e6bc37a9cae3f1e37f20ce023bc79d27a00527 Author: Kit Dallege AuthorDate: 2026-04-02 17:37:49 +0000 Commit: Mitchell Horne CommitDate: 2026-11-13 18:41:02 +0000 mq_open(2): document sysctl limit EINVAL and ENFILE conditions Document two missing error conditions for mq_open(2): - EINVAL: returned when mq_maxmsg exceeds kern.mqueue.maxmsg or mq_msgsize exceeds kern.mqueue.maxmsgsize. - ENFILE: add kern.mqueue.maxmq sysctl name to the existing entry. PR: 243209 Reviewed by: mhorne MFC after: 1 week Signed-off-by: Kit Dallege Pull Request: https://github.com/freebsd/freebsd-src/pull/2098 (cherry picked from commit 3e9f4fd6fc50300d052d5619d82a14d3488483d5) --- lib/libc/sys/mq_open.2 | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/lib/libc/sys/mq_open.2 b/lib/libc/sys/mq_open.2 index e5e7808c9e26..51668e55d9f7 100644 --- a/lib/libc/sys/mq_open.2 +++ b/lib/libc/sys/mq_open.2 @@ -35,7 +35,7 @@ .\" the referee document. The original Standard can be obtained online at .\" http://www.opengroup.org/unix/online.html. .\" -.Dd September 28, 2019 +.Dd April 2, 2026 .Dt MQ_OPEN 2 .Os .Sh NAME @@ -270,6 +270,24 @@ and either or .Va mq_msgsize was less than or equal to zero. +.It Bq Er EINVAL +.Dv O_CREAT +was specified in +.Fa oflag , +the value of +.Fa attr +is not +.Dv NULL , +and either +.Va mq_maxmsg +exceeds the +.Va kern.mqueue.maxmsg +sysctl limit, +or +.Va mq_msgsize +exceeds the +.Va kern.mqueue.maxmsgsize +sysctl limit. .It Bq Er EMFILE Too many message queue descriptors or file descriptors are currently in use by this process. @@ -283,6 +301,9 @@ is longer than .Brq Dv NAME_MAX . .It Bq Er ENFILE Too many message queues are currently open in the system. +The system limit is controlled by the +.Va kern.mqueue.maxmq +sysctl. .It Bq Er ENOENT .Dv O_CREAT is not set and the named message queue does not exist.