Bug 224299 - sys/msg.h improperly declares struct mymsg
Summary: sys/msg.h improperly declares struct mymsg
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on: 224443
Blocks:
  Show dependency treegraph
 
Reported: 2017-12-12 23:30 UTC by Brooks Davis
Modified: 2018-03-02 22:37 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brooks Davis freebsd_committer freebsd_triage 2017-12-12 23:30:40 UTC
sys/msg.h declares the struct mymsg from the example in the posix manpage.  The POSIX manpage is clear that this is user defined:

> The structure below is an example of what this user-defined buffer might look like:
> 
> struct mymsg {
>     long   mtype;       /* Message type. */
>     char   mtext[1];    /* Message text. */
> }

This should be removed and a ports exprun should be performed.
Comment 1 commit-hook freebsd_committer freebsd_triage 2018-03-02 22:13:50 UTC
A commit references this bug:

Author: brooks
Date: Fri Mar  2 22:13:30 UTC 2018
New revision: 330298
URL: https://svnweb.freebsd.org/changeset/base/330298

Log:
  Don't define struct mymsg.

  PR:		224299, 224443 (exp-run)
  Reviewed by:	kib, jhb
  Exp-run by:	antoine
  Sponsored by:	DARPA, AFRL
  Differential Revision:	https://reviews.freebsd.org/D14491

Changes:
  head/sys/sys/msg.h