Page MenuHomeFreeBSD

Document that fnctl.h is required for mq_open(2)
Needs ReviewPublic

Authored by felix.the.red_gmail.com on Jun 28 2025, 1:18 AM.
Tags
None
Referenced Files
F149095248: D51079.diff
Sun, Mar 22, 6:37 AM
Unknown Object (File)
Mon, Mar 16, 6:39 AM
Unknown Object (File)
Feb 8 2026, 8:22 PM
Unknown Object (File)
Jan 25 2026, 6:25 PM
Unknown Object (File)
Jan 21 2026, 2:07 PM
Unknown Object (File)
Dec 3 2025, 7:49 AM
Unknown Object (File)
Oct 22 2025, 1:35 AM
Unknown Object (File)
Oct 22 2025, 1:35 AM

Details

Reviewers
None
Group Reviewers
manpages
Summary

mqueue_open.2: Add an include line to show that fnctl.h is required.

From the original PR:
Users of the standard library mq_open() function will likely need to make
use of one or more of the O_* macros mentioned in the relevant man page,
e.g. O_CREAT.

Unfortunately, the man page for mq_open() only suggest inclusion of the
<mqueue.h> system-supplied header file.
It should also suggest inclusion of <fcntl.h> which is needed in order to
also drag in the various O_* macro definitions.

PR:243099

Test Plan

Try to compile test C file. It does not compile by default.
If the #include <fnctl.h> line is uncommented, test C file{F121620696} compiles.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped