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)
Sat, Sep 20, 7:51 PM
Unknown Object (File)
Wed, Sep 17, 5:50 AM
Unknown Object (File)
Mon, Sep 15, 12:18 PM
Unknown Object (File)
Thu, Sep 11, 4:42 AM
Unknown Object (File)
Tue, Sep 9, 6:22 PM
Unknown Object (File)
Sat, Sep 6, 3:38 AM
Unknown Object (File)
Aug 28 2025, 10:29 AM
Unknown Object (File)
Aug 28 2025, 4:46 AM
Subscribers

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