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
Unknown Object (File)
Mon, May 18, 10:06 AM
Unknown Object (File)
Sun, May 10, 11:32 AM
Unknown Object (File)
Wed, Apr 29, 9:04 AM
Unknown Object (File)
Wed, Apr 29, 9:01 AM
Unknown Object (File)
Tue, Apr 28, 6:23 AM
Unknown Object (File)
Sun, Apr 26, 1:25 PM
Unknown Object (File)
Wed, Apr 22, 8:57 AM
Unknown Object (File)
Apr 15 2026, 1:00 PM

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