[Bug 276897] Introducing posixmqcontrol

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 08 Feb 2024 21:38:24 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276897

            Bug ID: 276897
           Summary: Introducing posixmqcontrol
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: unitrunker@gmail.com

Created attachment 248269
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=248269&action=edit
sources

This "bug" introduces a new utility - in the spirit of posixshmcontrol - for
managing POSIX message queues.

Included in tarball are - one C source file, one man-page, and several (sh)
test scripts from regression.

Summary of features:

1 create one or more new queues with the following in common:
* maximum message size.
* maximum queue depth.
* mode bits (rwx).
* group and user ownership (by ID or name).
* blocking or non-blocking I/O.

2. update all of the above attributes to existing queues.
3. inspect the above attributes on one or more existing queues.
4. send one or more messages to one or more named queues with optional
priority.
5. receive a message from a named queue.
6. remove one or more named queues.

This utility requires the mqueuefs kernel module to be loaded. It does NOT
require or make use of a mounted mqueuefs.

Justification

* Create all required queues following boot.
* De-couple queue administration from application code.
* Queue depthing monitoring.
* Access control management with or without a mounted mqueuefs file system.

More details can be found in the manual page.

Steps for a convenient way to view the manual page:

gzip -k posixmqcontrol.1
mkdir man1
mv -f posixmqcontrol.1.gz man1/
man -M . posixmqcontrol

-- 
You are receiving this mail because:
You are the assignee for the bug.