Deleted Added
full compact
sysv_msg.c (109895) sysv_msg.c (109906)
1/* $FreeBSD: head/sys/kern/sysv_msg.c 109895 2003-01-26 20:09:34Z alfred $ */
1/* $FreeBSD: head/sys/kern/sysv_msg.c 109906 2003-01-26 23:25:00Z alfred $ */
2
3/*
4 * Implementation of SVID messages
5 *
6 * Author: Daniel Boulet
7 *
8 * Copyright 1993 Daniel Boulet and RTMX Inc.
9 *

--- 757 unchanged lines hidden (view full) ---

767 mtx_lock(&msq_mtx);
768 DPRINTF(("error %d copying the message type\n", error));
769 msg_freehdr(msghdr);
770 msqptr->msg_perm.mode &= ~MSG_LOCKED;
771 wakeup(msqptr);
772 goto done2;
773 }
774 mtx_lock(&msq_mtx);
2
3/*
4 * Implementation of SVID messages
5 *
6 * Author: Daniel Boulet
7 *
8 * Copyright 1993 Daniel Boulet and RTMX Inc.
9 *

--- 757 unchanged lines hidden (view full) ---

767 mtx_lock(&msq_mtx);
768 DPRINTF(("error %d copying the message type\n", error));
769 msg_freehdr(msghdr);
770 msqptr->msg_perm.mode &= ~MSG_LOCKED;
771 wakeup(msqptr);
772 goto done2;
773 }
774 mtx_lock(&msq_mtx);
775 user_msgp = (char *)user_msgp + sizeof(msghdr->msg_type);
775 user_msgp = (const char *)user_msgp + sizeof(msghdr->msg_type);
776
777 /*
778 * Validate the message type
779 */
780
781 if (msghdr->msg_type < 1) {
782 msg_freehdr(msghdr);
783 msqptr->msg_perm.mode &= ~MSG_LOCKED;

--- 26 unchanged lines hidden (view full) ---

810 error));
811 msg_freehdr(msghdr);
812 msqptr->msg_perm.mode &= ~MSG_LOCKED;
813 wakeup(msqptr);
814 goto done2;
815 }
816 mtx_lock(&msq_mtx);
817 msgsz -= tlen;
776
777 /*
778 * Validate the message type
779 */
780
781 if (msghdr->msg_type < 1) {
782 msg_freehdr(msghdr);
783 msqptr->msg_perm.mode &= ~MSG_LOCKED;

--- 26 unchanged lines hidden (view full) ---

810 error));
811 msg_freehdr(msghdr);
812 msqptr->msg_perm.mode &= ~MSG_LOCKED;
813 wakeup(msqptr);
814 goto done2;
815 }
816 mtx_lock(&msq_mtx);
817 msgsz -= tlen;
818 user_msgp = (char *)user_msgp + tlen;
818 user_msgp = (const char *)user_msgp + tlen;
819 next = msgmaps[next].next;
820 }
821 if (next != -1)
822 panic("didn't use all the msg segments");
823
824 /*
825 * We've got the message. Unlock the msqid_ds.
826 */

--- 323 unchanged lines hidden ---
819 next = msgmaps[next].next;
820 }
821 if (next != -1)
822 panic("didn't use all the msg segments");
823
824 /*
825 * We've got the message. Unlock the msqid_ds.
826 */

--- 323 unchanged lines hidden ---