CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2026/06/23 02:49:48

Modified files:
        regress/sys/kern/sysvmsg: msgtest.c 

Log message:
Fix transfer size in regress/sys/kern/sysvmsg/msgtest.c

According POSIX (see [1] and [2] EXAMPLES) the `msgsz' argument of
msgsnd() and msgrcv() should *NOT* include the size of msg.mtype, it
should be the size of msg.mtext only. Also msgrcv() return value does
*NOT* include the size of msg.mtype, but only the size of msg.mtext.
Our test expects the size of the whole msg.

1. https://pubs.opengroup.org/onlinepubs/000095399/functions/msgsnd.html
2. https://pubs.opengroup.org/onlinepubs/000095399/functions/msgrcv.html

ok millert

Reply via email to