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
F165194077: D51079.id157716.diff
Thu, Aug 6, 4:54 PM
F165148323: D51079.id157716.diff
Thu, Aug 6, 10:02 AM
Unknown Object (File)
Thu, Aug 6, 12:41 AM
Unknown Object (File)
Sun, Aug 2, 10:26 PM
Unknown Object (File)
Thu, Jul 23, 5:04 AM
Unknown Object (File)
Tue, Jul 21, 4:45 PM
Unknown Object (File)
Sat, Jul 18, 8:46 PM
Unknown Object (File)
Sun, Jul 12, 7:53 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