[LTP] [PATCH 1/1] msgrcv/msgrcv08.c: Use struct msgbuf defined in <sys/msg.h>
Thu Mar 21 10:51:23 CET 2019
> which requires to define _GNU_SOURCE.
> This fixes MUSL build.
> NOTE: char array from struct has usually length 1, the one from test had 16,
> but that's not a limitation.
> Fixes: eccd238da ("ipc/msgrcv: add new testcase msgrcv08")
It does not matter much here, but actually the structure is supposed to
be user defined, see the msgrcv manual page and you are supposed to pick
the message buffer length accordingly to your needs.
I guess that slightly better fix would be renaming the structure name,
the rest of the msgctl tests uses struct mbuf instead.
More information about the ltp